public boolean visit(SingleNameReference name, BlockScope skope) { Binding local = skope.getBinding(name.getName(), ReferenceExpression.this); if (local instanceof LocalVariableBinding) { LocalVariableBinding localBinding = (LocalVariableBinding) local; if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { this.accessesnonFinalOuterLocals = true; } } return false; }
@Override public boolean visit(SingleNameReference name, BlockScope skope) { Binding local = skope.getBinding(name.getName(), ReferenceExpression.this); if (local instanceof LocalVariableBinding) { LocalVariableBinding localBinding = (LocalVariableBinding) local; if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { this.accessesnonFinalOuterLocals = true; } } return false; }
public boolean visit(SingleNameReference name, BlockScope skope) { Binding local = skope.getBinding(name.getName(), ReferenceExpression.this); if (local instanceof LocalVariableBinding) { LocalVariableBinding localBinding = (LocalVariableBinding) local; if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { this.accessesnonFinalOuterLocals = true; } } return false; }
public boolean visit(SingleNameReference name, BlockScope skope) { Binding local = skope.getBinding(name.getName(), ReferenceExpression.this); if (local instanceof LocalVariableBinding) { LocalVariableBinding localBinding = (LocalVariableBinding) local; if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { this.accessesnonFinalOuterLocals = true; } } return false; }
public boolean visit(SingleNameReference name, BlockScope skope) { Binding local = skope.getBinding(name.getName(), ReferenceExpression.this); if (local instanceof LocalVariableBinding) { LocalVariableBinding localBinding = (LocalVariableBinding) local; if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { this.accessesnonFinalOuterLocals = true; } } return false; }
protected void checkEffectiveFinality(LocalVariableBinding localBinding, Scope scope) { if ((this.bits & ASTNode.IsCapturedOuterLocal) != 0) { if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { scope.problemReporter().cannotReferToNonEffectivelyFinalOuterLocal(localBinding, this); throw new AbortMethod(scope.referenceCompilationUnit().compilationResult, null); } } } }
protected void checkEffectiveFinality(LocalVariableBinding localBinding, Scope scope) { if ((this.bits & ASTNode.IsCapturedOuterLocal) != 0) { if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { scope.problemReporter().cannotReferToNonEffectivelyFinalOuterLocal(localBinding, this); throw new AbortMethod(scope.referenceCompilationUnit().compilationResult, null); } } } }
protected void checkEffectiveFinality(LocalVariableBinding localBinding, Scope scope) { if ((this.bits & ASTNode.IsCapturedOuterLocal) != 0) { if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { scope.problemReporter().cannotReferToNonEffectivelyFinalOuterLocal(localBinding, this); throw new AbortMethod(scope.referenceCompilationUnit().compilationResult, null); } } } }
protected void checkEffectiveFinality(LocalVariableBinding localBinding, Scope scope) { if ((this.bits & ASTNode.IsCapturedOuterLocal) != 0) { if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { scope.problemReporter().cannotReferToNonEffectivelyFinalOuterLocal(localBinding, this); throw new AbortMethod(scope.referenceCompilationUnit().compilationResult, null); } } } }
protected void checkEffectiveFinality(LocalVariableBinding localBinding, Scope scope) { if ((this.bits & ASTNode.IsCapturedOuterLocal) != 0) { if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { scope.problemReporter().cannotReferToNonEffectivelyFinalOuterLocal(localBinding, this); throw new AbortMethod(scope.referenceCompilationUnit().compilationResult, null); } } } }
protected void checkEffectiveFinality(LocalVariableBinding localBinding, Scope scope) { if ((this.bits & ASTNode.IsCapturedOuterLocal) != 0) { if (!localBinding.isFinal() && !localBinding.isEffectivelyFinal()) { scope.problemReporter().cannotReferToNonEffectivelyFinalOuterLocal(localBinding, this); throw new AbortMethod(scope.referenceCompilationUnit().compilationResult, null); } } } }
LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding(); if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361 && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) { CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding; checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding(); if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361 && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) { CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding; checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding(); if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361 && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) { CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding; checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding(); if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361 && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) { CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding; checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding(); if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361 && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) { CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding; checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding(); if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361 && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) { CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding; checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding(); if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361 && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) { CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding; checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding(); if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361 && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) { CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding; checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding(); if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361 && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) { CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding; checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);