incubator-imperius-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daw...@apache.org
Subject svn commit: r945354 - /incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/PrimaryExpression.java
Date Mon, 17 May 2010 20:36:00 GMT
Author: dawood
Date: Mon May 17 20:35:59 2010
New Revision: 945354

URL: http://svn.apache.org/viewvc?rev=945354&view=rev
Log:
No substantive change, just added soe code which was tried and then commented out.

Modified:
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/PrimaryExpression.java

Modified: incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/PrimaryExpression.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/PrimaryExpression.java?rev=945354&r1=945353&r2=945354&view=diff
==============================================================================
--- incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/PrimaryExpression.java
(original)
+++ incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/PrimaryExpression.java
Mon May 17 20:35:59 2010
@@ -120,7 +120,25 @@ public class PrimaryExpression implement
         {
         	// _isArray = true;
         	this._dataType.setIsArray(true);
-        }
+        } 
+        
+        // dawood 3/24/2010 - added to handle references to import class instances, for which
there is no symbol.
+//        String name = sTab.getClassNameOfInstance(_classNameOrInstanceVariableName);
+//        if (name != null) {
+//        	_dataType.setReferenceTypeName(name);
+//        	this._referenceTypeName = name;
+//        	_dataType.setType(TypeConstants.referenceType);
+//        	
+//        }
+        
+//        boolean symbolExists = _symTab.symbolExists(_classNameOrInstanceVariableName, true);
+//        if( symbolExists )
+//        {
+//        	Symbol sym = (Symbol)_symTab.getSymbol(_classNameOrInstanceVariableName);
+//            _dataType.copy(sym.getType());
+//            _dataType.setReferenceTypeName(sym.getReferenceTypeName());
+//            _referenceTypeName = sym.getReferenceTypeName();
+//        }
         logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "PrimaryExpression");
     }
     



Mime
View raw message