You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/01/11 06:45:00 UTC
[royale-compiler] 01/10: if we can't find a definition,
report an error. We got here when window.Event was used without
importing it
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit 87c44bc9ca0a7260e45b2def9187f8fa8371792b
Author: Alex Harui <ah...@apache.org>
AuthorDate: Mon Jan 7 22:17:45 2019 -0800
if we can't find a definition, report an error. We got here when window.Event was used without importing it
---
.../royale/compiler/internal/semantics/MethodBodySemanticChecker.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java b/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java
index 321c6d3..5b14145 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java
@@ -2033,6 +2033,10 @@ public class MethodBodySemanticChecker
break;
}
}
+ else if (def == null)
+ {
+ addProblem(new UnresolvedClassReferenceProblem(call_node, func_name.getDisplayString()));
+ }
}
}