Browse Source

pastojs: not using TSelfExpr

git-svn-id: trunk@41152 -
Mattias Gaertner 6 năm trước cách đây
mục cha
commit
74b897b875
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      packages/pastojs/src/fppas2js.pp

+ 1 - 3
packages/pastojs/src/fppas2js.pp

@@ -7181,7 +7181,7 @@ begin
   RightEl:=El.right;
   RightRef:=nil;
   RightRefDecl:=nil;
-  if ((RightEl.ClassType=TPrimitiveExpr) or (RightEl.ClassType=TSelfExpr))
+  if (RightEl.ClassType=TPrimitiveExpr)
       and (RightEl.CustomData is TResolvedReference) then
     begin
     RightRef:=TResolvedReference(RightEl.CustomData);
@@ -11875,8 +11875,6 @@ begin
     Result:=ConvertNilExpr(TNilExpr(El),AContext)
   else if (El.ClassType=TInheritedExpr) then
     Result:=ConvertInheritedExpr(TInheritedExpr(El),AContext)
-  else if (El.ClassType=TSelfExpr) then
-    Result:=ConvertSelfExpression(TSelfExpr(El),AContext)
   else if (El.ClassType=TParamsExpr) then
     Result:=ConvertParamsExpr(TParamsExpr(El),AContext)
   else if (El.ClassType=TProcedureExpr) then