mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 13:10:53 +02:00
codetools: implemented file of identifier for parameters, bug #11025
git-svn-id: trunk@15879 -
This commit is contained in:
parent
34d463ad71
commit
1bc45f97db
@ -1276,6 +1276,7 @@ function TPascalParserTool.ReadParamType(ExceptionOnError, Extract: boolean;
|
||||
var
|
||||
copying: boolean;
|
||||
IsArrayType: Boolean;
|
||||
IsFileType: Boolean;
|
||||
begin
|
||||
copying:=[phpWithoutParamList,phpWithoutParamTypes]*Attr=[];
|
||||
Result:=false;
|
||||
@ -1307,6 +1308,19 @@ begin
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
IsFileType:=UpAtomIs('FILE');
|
||||
if IsFileType then begin
|
||||
if (phpCreateNodes in Attr) then begin
|
||||
CreateChildNode;
|
||||
CurNode.Desc:=ctnFileType;
|
||||
end;
|
||||
if not Extract then ReadNextAtom else ExtractNextAtom(copying,Attr);
|
||||
if not UpAtomIs('OF') then
|
||||
if ExceptionOnError then
|
||||
RaiseStringExpectedButAtomFound('"of"')
|
||||
else exit;
|
||||
if not Extract then ReadNextAtom else ExtractNextAtom(copying,Attr);
|
||||
end;
|
||||
if not AtomIsIdentifier(ExceptionOnError) then exit;
|
||||
if (phpCreateNodes in Attr) then begin
|
||||
CreateChildNode;
|
||||
@ -1331,6 +1345,8 @@ begin
|
||||
end;
|
||||
if (phpCreateNodes in Attr) then begin
|
||||
EndChildNode;
|
||||
if IsFileType then
|
||||
EndChildNode;
|
||||
if IsArrayType then
|
||||
EndChildNode;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user