tsl-devkit/lsp-server/test/test_tree_sitter/test/test_other.tsf

40 lines
616 B
Plaintext

function(arr, i);
begin
end
function(arr, i);
begin
echo "123";
end;
pf := function(arr, i);
begin
echo "123";
end
pf := function(arr, i);
begin
echo "123";
end;;
abc(var a, out b, const c, in d, e);
def(var a, out b, const c, in d, e);
echo c;
function a123(a, b, c, d, e); // simple parameter
begin
end;
function b456(a = true, c = false);
begin
end;
function abc(const a, b, c, d, e); // only first can use [const/var/in/out]
begin
end;
function def(var a; out b; const c; in d; e); // no type
begin
c := 134;
end;
function hij(var a: string = "123"; const c: boolean = true);
begin
end;