Lines 117-123
Link Here
|
117 |
|
117 |
|
118 |
/** |
118 |
/** |
119 |
* This map is used to retrieve an old ast node using the new ast node. This is not an |
119 |
* This map is used to retrieve an old ast node using the new ast node. This is not an |
120 |
* identity map. |
120 |
* identity map, as several nested DOM nodes may be associated with the same "larger" |
|
|
121 |
* compiler AST node. |
122 |
* E.g., an ArrayAllocationExpression "new MyType[1]" will appear as the right-hand value |
123 |
* for the SimpleType "MyType", the ArrayType "MyType[1]", and the ArrayCreation "new MyType[1]". |
121 |
*/ |
124 |
*/ |
122 |
Map newAstToOldAst; |
125 |
Map newAstToOldAst; |
123 |
|
126 |
|
Lines 1528-1533
Link Here
|
1528 |
return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); |
1531 |
return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); |
1529 |
} |
1532 |
} |
1530 |
if (typeBinding.isArrayType()) { |
1533 |
if (typeBinding.isArrayType()) { |
|
|
1534 |
// 'binding' can still be an array type because 'node' may be "larger" than 'type' (see comment of newAstToOldAst). |
1531 |
typeBinding = ((ArrayBinding) typeBinding).leafComponentType; |
1535 |
typeBinding = ((ArrayBinding) typeBinding).leafComponentType; |
1532 |
} |
1536 |
} |
1533 |
int index; |
1537 |
int index; |
Lines 1568-1573
Link Here
|
1568 |
ArrayBinding arrayBinding = (ArrayBinding) binding; |
1572 |
ArrayBinding arrayBinding = (ArrayBinding) binding; |
1569 |
return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); |
1573 |
return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); |
1570 |
} else if (binding.isArrayType()) { |
1574 |
} else if (binding.isArrayType()) { |
|
|
1575 |
// 'binding' can still be an array type because 'node' may be "larger" than 'type' (see comment of newAstToOldAst). |
1571 |
ArrayBinding arrayBinding = (ArrayBinding) binding; |
1576 |
ArrayBinding arrayBinding = (ArrayBinding) binding; |
1572 |
return getTypeBinding(arrayBinding.leafComponentType); |
1577 |
return getTypeBinding(arrayBinding.leafComponentType); |
1573 |
} |
1578 |
} |