fcl-passrc: resolver: check resourcestring expression

git-svn-id: trunk@37397 -
This commit is contained in:
Mattias Gaertner 2017-10-04 19:42:56 +00:00
parent a70a1989e5
commit fe27ec2a26
2 changed files with 3 additions and 0 deletions

View File

@ -9968,6 +9968,7 @@ begin
stTypeSection: FinishTypeSection(El as TPasDeclarations);
stTypeDef: FinishTypeDef(El as TPasType);
stConstDef: FinishConstDef(El as TPasConst);
stResourceString: FinishResourcestring(El as TPasResString);
stProcedure: FinishProcedure(El as TPasProcedure);
stProcedureHeader: FinishProcedureType(El as TPasProcedureType);
stExceptOnExpr: FinishExceptOnExpr;

View File

@ -144,6 +144,7 @@ type
stTypeSection,
stTypeDef, // e.g. a TPasType
stConstDef, // e.g. a TPasConst
stResourceString, // e.g. TPasResString
stProcedure, // also method, procedure, constructor, destructor, ...
stProcedureHeader,
stExceptOnExpr,
@ -3053,6 +3054,7 @@ begin
ResStrEl := ParseResourcestringDecl(Declarations);
Declarations.Declarations.Add(ResStrEl);
Declarations.ResStrings.Add(ResStrEl);
Engine.FinishScope(stResourceString,ResStrEl);
end;
declType:
begin