Browse Source

fcl-passrc: DotExprToName added pekString

git-svn-id: trunk@38478 -
Mattias Gaertner 7 years ago
parent
commit
b2e21f4c4a
1 changed files with 4 additions and 2 deletions
  1. 4 2
      packages/fcl-passrc/src/pasresolver.pp

+ 4 - 2
packages/fcl-passrc/src/pasresolver.pp

@@ -2121,8 +2121,10 @@ begin
     begin
     begin
     Prim:=TPrimitiveExpr(Expr);
     Prim:=TPrimitiveExpr(Expr);
     case Prim.Kind of
     case Prim.Kind of
-      pekIdent: Result:=Result+Prim.Value;
-      pekSelf: Result:=Result+'Self';
+      pekIdent,pekString: Result:=Prim.Value;
+      pekSelf: Result:='Self';
+    else
+      EPasResolve.Create('[20180309155400] DotExprToName '+GetObjName(Prim)+' '+ExprKindNames[Prim.Kind]);
     end;
     end;
     end
     end
   else if C=TBinaryExpr then
   else if C=TBinaryExpr then