Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Generator/uProtoBufParserClasses.pas
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ TProtoFile = class(TAbstractProtoBufParserItem)

FInImportCounter: integer;
FFileName: string;
FImports: TStrings;
FImports: TStringList;
FProtoSyntaxVersion: TProtoSyntaxVersion;

procedure ImportFromProtoFile(const AFileName: string);
Expand All @@ -137,7 +137,7 @@ TProtoFile = class(TAbstractProtoBufParserItem)

procedure ParseFromProto(const Proto: string; var iPos: integer); override;

property Imports: TStrings read FImports;
property Imports: TStringList read FImports;
property ProtoBufEnums: TProtoBufEnumList read FProtoBufEnums;
property ProtoBufMessages: TProtoBufMessageList read FProtoBufMessages;

Expand Down Expand Up @@ -687,6 +687,8 @@ constructor TProtoFile.Create(ARoot: TAbstractProtoBufParserItem);
begin
inherited;
FImports := TStringList.Create;
FImports.Sorted := True;
FImports.Duplicates := dupIgnore;
FProtoBufMessages := TProtoBufMessageList.Create;
FProtoBufEnums := TProtoBufEnumList.Create;
end;
Expand Down