Browse Source

sql parser: change Functions to Properties for better debugging

git-svn-id: trunk@46420 -
ondrej 5 years ago
parent
commit
49f1d08467
1 changed files with 2 additions and 12 deletions
  1. 2 12
      packages/fcl-db/src/sql/fpsqlparser.pas

+ 2 - 12
packages/fcl-db/src/sql/fpsqlparser.pas

@@ -169,8 +169,8 @@ Type
     Function ParseScript(AllowPartial : Boolean) : TSQLElementList; deprecated 'use options';
     Function ParseScript(AllowPartial : Boolean) : TSQLElementList; deprecated 'use options';
     Function ParseScript(aOptions : TParserOptions = []) : TSQLElementList;
     Function ParseScript(aOptions : TParserOptions = []) : TSQLElementList;
     // Auxiliary stuff
     // Auxiliary stuff
-    Function CurrentToken : TSQLToken;
-    Function CurrentTokenString : String;
+    Property CurrentToken : TSQLToken read FCurrent;
+    Property CurrentTokenString : String read FCurrentString;
     // Gets next token; also updates current token
     // Gets next token; also updates current token
     Function GetNextToken : TSQLToken;
     Function GetNextToken : TSQLToken;
     // Looks at next token without changing current token
     // Looks at next token without changing current token
@@ -4062,16 +4062,6 @@ begin
   end;
   end;
 end;
 end;
 
 
-function TSQLParser.CurrentToken: TSQLToken;
-begin
-  Result:=FCurrent;
-end;
-
-function TSQLParser.CurrentTokenString: String;
-begin
-  Result:=FCurrentString;
-end;
-
 function TSQLParser.GetNextToken: TSQLToken;
 function TSQLParser.GetNextToken: TSQLToken;
 begin
 begin
   FPrevious:=FCurrent;
   FPrevious:=FCurrent;