Java Code Examples for org.eclipse.jdt.internal.compiler.lookup.Scope#referenceCompilationUnit()
The following examples show how to use
org.eclipse.jdt.internal.compiler.lookup.Scope#referenceCompilationUnit() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TypeParameter.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public void resolveAnnotations(Scope scope) { BlockScope resolutionScope = Scope.typeAnnotationsResolutionScope(scope); if (resolutionScope != null) { AnnotationBinding [] annotationBindings = resolveAnnotations(resolutionScope, this.annotations, this.binding, false); if (annotationBindings != null && annotationBindings.length > 0) { this.binding.setTypeAnnotations(annotationBindings, scope.environment().globalOptions.isAnnotationBasedNullAnalysisEnabled); scope.referenceCompilationUnit().compilationResult.hasAnnotations = true; if (this.binding != null && this.binding.isValidBinding()) this.binding.evaluateNullAnnotations(scope, this); } } }
Example 2
Source File: StackMapFrameCodeStream.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public void generateOuterAccess(Object[] mappingSequence, ASTNode invocationSite, Binding target, Scope scope) { int currentPosition = this.position; super.generateOuterAccess(mappingSequence, invocationSite, target, scope); if (currentPosition == this.position) { // no code has been generate during outer access => no enclosing instance is available throw new AbortMethod(scope.referenceCompilationUnit().compilationResult, null); } }