Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/lookup/LocalVariableBinding.java')
-rw-r--r--bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/lookup/LocalVariableBinding.java25
1 files changed, 18 insertions, 7 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/lookup/LocalVariableBinding.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/lookup/LocalVariableBinding.java
index 8b4dd299..c88a5b2c 100644
--- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/lookup/LocalVariableBinding.java
+++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/lookup/LocalVariableBinding.java
@@ -70,28 +70,38 @@ public class LocalVariableBinding extends VariableBinding {
if (scope instanceof CompilationUnitScope) {
CompilationUnitScope compilationUnitScope = (CompilationUnitScope) scope;
- buffer.append(compilationUnitScope.referenceContext.compilationUnitBinding.computeUniqueKey(false));
+ buffer.append(compilationUnitScope.referenceContext.compilationUnitBinding
+ .computeUniqueKey(false));
} else {
ReferenceContext referenceContext = null;
- MethodScope methodScope = scope instanceof MethodScope ? (MethodScope) scope : scope.enclosingMethodScope();
+ MethodScope methodScope = scope instanceof MethodScope ? (MethodScope) scope
+ : scope.enclosingMethodScope();
if (methodScope != null) {
referenceContext = methodScope.referenceContext;
} else
- referenceContext = scope.enclosingCompilationUnit().scope.referenceCompilationUnit();
+ referenceContext = scope.enclosingCompilationUnit().scope
+ .referenceCompilationUnit();
if (referenceContext instanceof AbstractMethodDeclaration) {
- MethodBinding methodBinding = ((AbstractMethodDeclaration) referenceContext).binding;
+ MethodBinding methodBinding = ((AbstractMethodDeclaration) referenceContext).getBinding();
if (methodBinding != null) {
- buffer.append(methodBinding.computeUniqueKey(false/*not a leaf*/));
+ buffer.append(methodBinding.computeUniqueKey(false/*
+ * not a
+ * leaf
+ */));
}
} else if (referenceContext instanceof TypeDeclaration) {
TypeBinding typeBinding = ((TypeDeclaration) referenceContext).binding;
if (typeBinding != null) {
- buffer.append(typeBinding.computeUniqueKey(false/*not a leaf*/));
+ buffer.append(typeBinding.computeUniqueKey(false/*
+ * not a
+ * leaf
+ */));
}
} else if (referenceContext instanceof CompilationUnitDeclaration) {
CompilationUnitBinding compilationUnitBinding = ((CompilationUnitDeclaration) referenceContext).compilationUnitBinding;
if (compilationUnitBinding != null) {
- buffer.append(compilationUnitBinding.computeUniqueKey(false/*not a leaf*/));
+ buffer.append(compilationUnitBinding
+ .computeUniqueKey(false/* not a leaf */));
}
}
}
@@ -99,6 +109,7 @@ public class LocalVariableBinding extends VariableBinding {
getScopeKey(scope, buffer);
}
+
// variable name
buffer.append('#');
buffer.append(this.name);

Back to the top