This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit efae99eb7c3ba75c66ad05e42b4db7eaf6ed1763 Author: Josh Tynjala <[email protected]> AuthorDate: Thu Feb 18 10:14:34 2021 -0800 ASScope: improved assertion messages for incorrect qname as base name to show the qname --- .../java/org/apache/royale/compiler/internal/scopes/ASScope.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/scopes/ASScope.java b/compiler/src/main/java/org/apache/royale/compiler/internal/scopes/ASScope.java index faa68c3..33bcc66 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/internal/scopes/ASScope.java +++ b/compiler/src/main/java/org/apache/royale/compiler/internal/scopes/ASScope.java @@ -1141,7 +1141,7 @@ public abstract class ASScope extends ASScopeBase { assert accumulator.isEmpty() : "findProperty() should not be called with a non-empty collection"; - assert baseName.indexOf('.') == -1 : "baseName must not be any sort of qname"; + assert baseName.indexOf('.') == -1 : "baseName must not be any sort of qname " + baseName; // Walk the scope chain starting with this scope. // This loop may go as far as the file scope, whose containing scope is null. @@ -1462,7 +1462,7 @@ public abstract class ASScope extends ASScopeBase // which may have already computed and cached the result. return getContainingScope().findProperty(project, baseName, dt, canEscapeWith); } - assert baseName.indexOf('.') == -1 : "baseName must not be any sort of qname"; + assert baseName.indexOf('.') == -1 : "baseName must not be any sort of qname " + baseName; CompilerProject compilerProject = (CompilerProject)project; ASScopeCache scopeCache = compilerProject.getCacheForScope(this); return filterWith(scopeCache.findProperty(baseName, dt, canEscapeWith), canEscapeWith); @@ -1622,7 +1622,7 @@ public abstract class ASScope extends ASScopeBase */ public IDefinition findPropertyQualified(ICompilerProject project, INamespaceDefinition qual, String baseName, DependencyType dt, boolean canEscapeWith) { - assert baseName.indexOf('.') == -1 : "baseName must not be any sort of qname"; + assert baseName.indexOf('.') == -1 : "baseName must not be any sort of qname " + baseName; // Can't find a property if we don't know what its qualifier is if( qual == null )
