mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 11:00:28 +02:00
* Fixed Support for absolute. Stored absolute location
git-svn-id: trunk@6030 -
This commit is contained in:
parent
88b01f0fe0
commit
3ee2cef1b9
@ -313,6 +313,7 @@ type
|
||||
VarType: TPasType;
|
||||
Value: string;
|
||||
Modifiers : string;
|
||||
AbsoluteLocation : String;
|
||||
end;
|
||||
|
||||
TPasConst = class(TPasVariable)
|
||||
|
@ -1200,8 +1200,18 @@ begin
|
||||
NextToken;
|
||||
if CurToken = tkAbsolute then
|
||||
begin
|
||||
// !!!: Store this information
|
||||
ExpectIdentifier;
|
||||
S:=CurTokenText;
|
||||
NextToken;
|
||||
if CurToken=tkDot then
|
||||
begin
|
||||
ExpectIdentifier;
|
||||
S:=S+'.'+CurTokenText;
|
||||
end
|
||||
else
|
||||
UnGetToken;
|
||||
For I:=0 to List.Count-1 do
|
||||
TPasVariable(List[i]).AbsoluteLocation:=S;
|
||||
end else
|
||||
UngetToken;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user