* Fixed Support for absolute. Stored absolute location

git-svn-id: trunk@6030 -
This commit is contained in:
michael 2007-01-17 20:54:37 +00:00
parent 88b01f0fe0
commit 3ee2cef1b9
2 changed files with 12 additions and 1 deletions

View File

@ -313,6 +313,7 @@ type
VarType: TPasType;
Value: string;
Modifiers : string;
AbsoluteLocation : String;
end;
TPasConst = class(TPasVariable)

View File

@ -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;