mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 12:39:09 +02:00
* Dictionaries can be empty
git-svn-id: trunk@41823 -
This commit is contained in:
parent
478b918386
commit
1a5faf1cc3
@ -1001,12 +1001,13 @@ begin
|
|||||||
Result:=TIDLDictionaryDefinition(Context.Add(aParent,TIDLDictionaryDefinition,Name));
|
Result:=TIDLDictionaryDefinition(Context.Add(aParent,TIDLDictionaryDefinition,Name));
|
||||||
Result.ParentName:=ParentName;
|
Result.ParentName:=ParentName;
|
||||||
GetToken;
|
GetToken;
|
||||||
Repeat
|
While (CurrentToken<>tkCurlyBraceClose) do
|
||||||
|
begin
|
||||||
ParseDictionaryMember(Result.Members);
|
ParseDictionaryMember(Result.Members);
|
||||||
CheckCurrentTokens([tkSemicolon,tkCurlyBraceClose]);
|
CheckCurrentTokens([tkSemicolon,tkCurlyBraceClose]);
|
||||||
if (CurrentToken=tkSemicolon) then
|
if (CurrentToken=tkSemicolon) then
|
||||||
GetToken;
|
GetToken;
|
||||||
Until (CurrentToken=tkCurlyBraceClose);
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TWebIDLParser.ParseSequenceTypeDef(aParent : TIDLBaseObject): TIDLSequenceTypeDefDefinition;
|
function TWebIDLParser.ParseSequenceTypeDef(aParent : TIDLBaseObject): TIDLSequenceTypeDefDefinition;
|
||||||
|
Loading…
Reference in New Issue
Block a user