mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 13:08:49 +02:00
fcl-passrc: resolver: check resourcestring expression
git-svn-id: trunk@37397 -
This commit is contained in:
parent
a70a1989e5
commit
fe27ec2a26
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user