fix errors in python expression

This commit is contained in:
Gang ZHANG 2020-02-25 16:23:43 +08:00
parent 94e17e471f
commit ce4dfcf89e
1 changed files with 1 additions and 2 deletions

View File

@ -73,7 +73,6 @@ public class ExpressionUsage {
}
if (context.lastContainer().containsExpression(ctx)) return;
if (ctx.getParent() instanceof TrailerContext) return;
System.out.println("expr: "+ctx.getText() + " class:" + ctx.getClass().getSimpleName());
Expression parent = findParentInStack(ctx);
Expression expression = parent;
@ -122,7 +121,7 @@ public class ExpressionUsage {
private void makeSureVarExist(GenericName identifier) {
if (context.foundEntityWithName(identifier).equals(Inferer.externalType)) {
if (Inferer.externalType.equals(context.foundEntityWithName(identifier))) {
context.foundVarDefinition(context.lastContainer(), identifier.getName());
}
}