Changeset 20 for trunk/Compiler/Analyze/UAnalyzer.pas
- Timestamp:
- Nov 9, 2010, 12:21:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Analyze/UAnalyzer.pas
r12 r20 29 29 end; 30 30 31 TGetSourceEvent = function (Name: string; Source: TStringList): Boolean of object;31 TGetSourceEvent = function (Name: string; var SourceCode: string): Boolean of object; 32 32 33 33 { TAnalyzer } … … 51 51 CodeStreamPosition: Integer; 52 52 CodePosition: TPoint; 53 SourceCode Text: TStringList;53 SourceCode: string; 54 54 Tokens: TObjectList; // TObjectList<TToken> 55 55 TokenIndex: Integer; … … 225 225 Tokens.Clear; 226 226 TokenIndex := 0; 227 while CodeStreamPosition < Length(SourceCode Text.Text) do begin227 while CodeStreamPosition < Length(SourceCode) do begin 228 228 NewToken := TToken.Create; 229 229 GetNextToken; … … 255 255 FNextTokenType := ttNone; 256 256 FParserState := psNone; 257 with SourceCodeText do 257 258 258 while True do begin 259 if CodeStreamPosition < Length( Text) then begin260 CurrentChar := Text[CodeStreamPosition];259 if CodeStreamPosition < Length(SourceCode) then begin 260 CurrentChar := SourceCode[CodeStreamPosition]; 261 261 end else begin 262 262 FNextToken := '';
Note:
See TracChangeset
for help on using the changeset viewer.