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


The following commit(s) were added to refs/heads/develop by this push:
     new 5fd4420  IdentifierNode: fixed caching issue with resolve() when using 
compiler for code intelligence for IDEs
5fd4420 is described below

commit 5fd4420abff5a68b5fc3ab0e128c5d84889188d8
Author: Josh Tynjala <[email protected]>
AuthorDate: Thu Jun 13 13:17:04 2019 -0700

    IdentifierNode: fixed caching issue with resolve() when using compiler for 
code intelligence for IDEs
    
    Caching for identifiers was added in commit 
32f49799ceec971631904d37b6d107a74e93f95d
---
 .../org/apache/royale/compiler/internal/tree/as/IdentifierNode.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/IdentifierNode.java
 
b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/IdentifierNode.java
index 3ee2730..3ba32a1 100644
--- 
a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/IdentifierNode.java
+++ 
b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/IdentifierNode.java
@@ -315,7 +315,7 @@ public class IdentifierNode extends ExpressionNodeBase 
implements IIdentifierNod
     @Override
     public IDefinition resolve(ICompilerProject project)
     {
-       if (idDef != null)
+       if (DefinitionBase.getPerformanceCachingEnabled() && idDef != null)
                return idDef;
        
         ASScope asScope = getASScope();

Reply via email to