Ignore:
Timestamp:
Nov 9, 2010, 12:21:56 PM (14 years ago)
Author:
george
Message:
  • Modified: Tokenizer was using slow Text property of TStringList. Replaced by fast native string variable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/Analyze/UAnalyzerPascal.pas

    r19 r20  
    9191  try
    9292    Parser := TAnalyzerPascal.Create;
    93     Parser.SourceCodeText := TStringList.Create;
    9493    Parser.OnDebugLog := OnDebugLog;
    9594    Parser.ProgramCode := ProgramCode;
    9695    Parser.OnGetSource := OnGetSource;
    9796    if Assigned(OnGetSource) then begin
    98       if OnGetSource(Name, Parser.SourceCodeText) then begin
     97      if OnGetSource(Name, Parser.SourceCode) then begin
    9998        Parser.Process;
    10099        Parser.FileName := Name;
     
    107106    end else Result := False;
    108107  finally
    109     Parser.SourceCodeText.Free;
    110108    Parser.Free;
    111109  end;
     
    560558  NewType: TType;
    561559begin
     560  Log('ParseCommonBlockInterface');
    562561  with SourceCode do begin
    563562    while (NextToken <> 'implementation') and (NextTokenType <> ttEndOfFile) do begin
Note: See TracChangeset for help on using the changeset viewer.