mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 08:51:10 +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);
|
stTypeSection: FinishTypeSection(El as TPasDeclarations);
|
||||||
stTypeDef: FinishTypeDef(El as TPasType);
|
stTypeDef: FinishTypeDef(El as TPasType);
|
||||||
stConstDef: FinishConstDef(El as TPasConst);
|
stConstDef: FinishConstDef(El as TPasConst);
|
||||||
|
stResourceString: FinishResourcestring(El as TPasResString);
|
||||||
stProcedure: FinishProcedure(El as TPasProcedure);
|
stProcedure: FinishProcedure(El as TPasProcedure);
|
||||||
stProcedureHeader: FinishProcedureType(El as TPasProcedureType);
|
stProcedureHeader: FinishProcedureType(El as TPasProcedureType);
|
||||||
stExceptOnExpr: FinishExceptOnExpr;
|
stExceptOnExpr: FinishExceptOnExpr;
|
||||||
|
@ -144,6 +144,7 @@ type
|
|||||||
stTypeSection,
|
stTypeSection,
|
||||||
stTypeDef, // e.g. a TPasType
|
stTypeDef, // e.g. a TPasType
|
||||||
stConstDef, // e.g. a TPasConst
|
stConstDef, // e.g. a TPasConst
|
||||||
|
stResourceString, // e.g. TPasResString
|
||||||
stProcedure, // also method, procedure, constructor, destructor, ...
|
stProcedure, // also method, procedure, constructor, destructor, ...
|
||||||
stProcedureHeader,
|
stProcedureHeader,
|
||||||
stExceptOnExpr,
|
stExceptOnExpr,
|
||||||
@ -3053,6 +3054,7 @@ begin
|
|||||||
ResStrEl := ParseResourcestringDecl(Declarations);
|
ResStrEl := ParseResourcestringDecl(Declarations);
|
||||||
Declarations.Declarations.Add(ResStrEl);
|
Declarations.Declarations.Add(ResStrEl);
|
||||||
Declarations.ResStrings.Add(ResStrEl);
|
Declarations.ResStrings.Add(ResStrEl);
|
||||||
|
Engine.FinishScope(stResourceString,ResStrEl);
|
||||||
end;
|
end;
|
||||||
declType:
|
declType:
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user