Browse Source

[PATCH 059/188] extending docomments with ofs paramter. Making the
method virtual

From 22f22415e5c5aa8b1315e7e14a3cfe5dffdb8e33 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Tue, 3 Mar 2020 10:18:50 -0500

git-svn-id: branches/wasm@46055 -

nickysn 5 years ago
parent
commit
22a229fa21
1 changed files with 3 additions and 3 deletions
  1. 3 3
      utils/wasmbin/watscanner.pas

+ 3 - 3
utils/wasmbin/watscanner.pas

@@ -28,7 +28,7 @@ type
 
 
   TWatScanner = class(TObject)
   TWatScanner = class(TObject)
   protected
   protected
-    procedure DoComment(const cmt: string);
+    procedure DoComment(ofs: Integer; const cmt: string); virtual;
     function CommentIsSymbol(const cmt: string): Boolean;
     function CommentIsSymbol(const cmt: string): Boolean;
   public
   public
     buf       : string;
     buf       : string;
@@ -142,7 +142,7 @@ end;
 
 
 { TWatScanner }
 { TWatScanner }
 
 
-procedure TWatScanner.DoComment(const cmt: string);
+procedure TWatScanner.DoComment(ofs: Integer; const cmt: string);
 begin
 begin
 
 
 end;
 end;
@@ -205,7 +205,7 @@ begin
         token:=weAsmSymbol;
         token:=weAsmSymbol;
         done:=true;
         done:=true;
       end else
       end else
-        DoComment(cmt);
+        DoComment(ofs, cmt);
     end else begin
     end else begin
       done:=true;
       done:=true;
       if buf[idx] = '(' then begin
       if buf[idx] = '(' then begin