use of org.eclipse.jdt.internal.compiler.flow.ExceptionInferenceFlowContext in project bazel-jdt-java-toolchain by salesforce.
the class LambdaExpression method analyzeExceptions.
private void analyzeExceptions() {
ExceptionHandlingFlowContext ehfc;
CompilerOptions compilerOptions = this.scope.compilerOptions();
boolean oldAnalyseResources = compilerOptions.analyseResourceLeaks;
compilerOptions.analyseResourceLeaks = false;
try {
this.body.analyseCode(this.scope, ehfc = new ExceptionInferenceFlowContext(null, this, Binding.NO_EXCEPTIONS, null, this.scope, FlowInfo.DEAD_END), UnconditionalFlowInfo.fakeInitializedFlowInfo(this.scope.outerMostMethodScope().analysisIndex, this.scope.referenceType().maxFieldCount));
this.thrownExceptions = ehfc.extendedExceptions == null ? Collections.emptySet() : new HashSet<TypeBinding>(ehfc.extendedExceptions);
} catch (Exception e) {
// drop silently.
} finally {
compilerOptions.analyseResourceLeaks = oldAnalyseResources;
}
}
Aggregations