Browse Source

* Refactory: remove current_module use from top-level parsing

Michaël Van Canneyt 1 năm trước cách đây
mục cha
commit
97f159e4b2
2 tập tin đã thay đổi với 195 bổ sung193 xóa
  1. 3 3
      compiler/parser.pas
  2. 192 190
      compiler/pmodules.pas

+ 3 - 3
compiler/parser.pas

@@ -406,15 +406,15 @@ implementation
              if (token=_UNIT) or (compile_level>1) then
                begin
                  current_module.is_unit:=true;
-                 finished:=proc_unit;
+                 finished:=proc_unit(current_module);
                end
              else if (token=_ID) and (idtoken=_PACKAGE) then
                begin
                  current_module.IsPackage:=true;
-                 proc_package;
+                 proc_package(current_module);
                end
              else
-               proc_program(token=_LIBRARY);
+               proc_program(current_module,token=_LIBRARY);
            except
              on ECompilerAbort do
                raise;

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 192 - 190
compiler/pmodules.pas


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác