浏览代码

pastojs: not using TSelfExpr

git-svn-id: trunk@41152 -
Mattias Gaertner 6 年之前
父节点
当前提交
74b897b875
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      packages/pastojs/src/fppas2js.pp

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

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