Changeset 9625
- Timestamp:
- Feb 8, 2017 12:38:07 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/ModelicaFrontEnd/src/jastadd/instance/InstLookupClasses.jrag
r9612 r9625 118 118 inh InstLookupResult<InstClassDecl> InstReplacingExtendsShortClass.lookupInstClassInChain(String name); 119 119 120 /* 121 * Default to using normal lookup. 122 */ 123 eq List.getChild(int index).lookupInstClassInChain(String name) { 124 InstLookupResult<InstClassDecl> result = null; 125 for (ASTNode child : this) { 126 result = ((InstNode) child).lookupInstClass(name); 127 if (result.successful()) { 128 return result; 129 } 130 } 131 return result; 132 } 133 eq InstNode.getChild(int index).lookupInstClassInChain(String name) { 134 return ((InstNode) getChild(index)).lookupInstClass(name); 135 } 120 eq InstNode.getInstClassDecl(int index).lookupInstClassInChain(String name) = 121 getInstClassDecl(index).lookupInstClass(name); 122 eq InstNode.getInstExtends(int index).lookupInstClassInChain(String name) = 123 getInstExtends(index).lookupInstClass(name); 124 eq InstNode.getRedeclaredInstClassDecl(int index).lookupInstClassInChain(String name) = 125 getRedeclaredInstClassDecl(index).lookupInstClass(name); 126 eq InstNode.getInstComponentDecl(int index).lookupInstClassInChain(String name) = 127 getInstComponentDecl(index).lookupInstClass(name); 128 136 129 eq InstRecordConstructor.getInstComponentDecl().lookupInstClassInChain(String name) = 137 130 myInstClassDecl().genericLookupInstClass(name);
Note: See TracChangeset
for help on using the changeset viewer.