Examples of ReferenceContext


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext

      if(this.typePtr > -1) {
        length = this.typePtr + 1;
        foundTypes = new TypeDeclaration[length];
        System.arraycopy(this.types, 0, foundTypes, 0, length);
      }
      ReferenceContext oldContext = parser.referenceContext;
      parser.recoveryScanner.resetTo(methodDeclaration.bodyStart, methodDeclaration.bodyEnd);
      Scanner oldScanner = parser.scanner;
      parser.scanner = parser.recoveryScanner;
      parser.parseStatements(
          methodDeclaration,
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext

      if(this.typePtr > -1) {
        length = this.typePtr + 1;
        foundTypes = new TypeDeclaration[length];
        System.arraycopy(this.types, 0, foundTypes, 0, length);
      }
      ReferenceContext oldContext = parser.referenceContext;
      parser.recoveryScanner.resetTo(initializer.bodyStart, initializer.bodyEnd);
      Scanner oldScanner = parser.scanner;
      parser.scanner = parser.recoveryScanner;
      parser.parseStatements(
          this.enclosingType,
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext

            }
            proposedNames.add(name);
          }
        };
     
      ReferenceContext referenceContext = scope.referenceContext();
      if (referenceContext instanceof AbstractMethodDeclaration) {
        AbstractMethodDeclaration md = (AbstractMethodDeclaration)referenceContext;
       
        UnresolvedReferenceNameFinder nameFinder = new UnresolvedReferenceNameFinder(this);
        nameFinder.find(
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext

          CompletionEngine.this.acceptUnresolvedName(name);
          proposedNames.add(name);
        }
      };
   
    ReferenceContext referenceContext = scope.referenceContext();
    if (referenceContext instanceof AbstractMethodDeclaration) {
      AbstractMethodDeclaration md = (AbstractMethodDeclaration)referenceContext;
     
      UnresolvedReferenceNameFinder nameFinder = new UnresolvedReferenceNameFinder(this);
      nameFinder.findAfter(
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext

    BlockScope upperScope = scope;
    while (upperScope.enclosingMethodScope() != null) {
      upperScope = upperScope.enclosingMethodScope();
    }
   
    ReferenceContext referenceContext = upperScope.referenceContext();
    if (referenceContext instanceof AbstractMethodDeclaration) {
      AbstractMethodDeclaration md = (AbstractMethodDeclaration)referenceContext;
     
      UnresolvedReferenceNameFinder nameFinder = new UnresolvedReferenceNameFinder(this);
      nameFinder.findBefore(
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext

    // If the unused argument is in a pointcut, don't report the problem (for now... pr148219)
    if (localDecl instanceof Argument) {
      Argument arg = (Argument) localDecl;
      if (arg.binding != null && arg.binding.declaringScope != null) {
        ReferenceContext context = arg.binding.declaringScope.referenceContext();
        if (context != null && context instanceof PointcutDeclaration)
          return;
      }
    }
    if (new String(localDecl.name).startsWith("ajc$")) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext

  private AdviceDeclaration findEnclosingAround(Scope scope) {
    if (scope == null) return null;
       
    if (scope instanceof MethodScope) {
      MethodScope methodScope = (MethodScope)scope;
      ReferenceContext context = methodScope.referenceContext;
      if (context instanceof AdviceDeclaration) {
        AdviceDeclaration adviceDecl = (AdviceDeclaration)context;
        if (adviceDecl.kind == AdviceKind.Around) {
          // pr 53981 only match "bare" calls to proceed
          if((receiver != null) && (!receiver.isThis())) { return null; }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext

  */
  public final boolean isDefinedInMethod(MethodBinding method) {
    Scope scope = this;
    do {
      if (scope instanceof MethodScope) {
        ReferenceContext refContext = ((MethodScope) scope).referenceContext;
        if (refContext instanceof AbstractMethodDeclaration)
          if (((AbstractMethodDeclaration) refContext).binding == method)
            return true;
      }
      scope = scope.parent;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext

    // declaring method or type
    BlockScope scope = this.declaringScope;
    if (scope != null) {
      // the scope can be null. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=185129
      MethodScope methodScope = scope instanceof MethodScope ? (MethodScope) scope : scope.enclosingMethodScope();
      ReferenceContext referenceContext = methodScope.referenceContext;
      if (referenceContext instanceof AbstractMethodDeclaration) {
        MethodBinding methodBinding = ((AbstractMethodDeclaration) referenceContext).binding;
        if (methodBinding != null) {
          buffer.append(methodBinding.computeUniqueKey(false/*not a leaf*/));
        }
 
View Full Code Here

Examples of org.broadinstitute.gatk.engine.contexts.ReferenceContext

            alleles.add(Allele.create("A", true));
            alleles.add(Allele.create(Utils.dupString("A",Math.abs(indelSize)+1),false));

        }
        final GenomeLoc loc = genomeLocParser.createGenomeLoc(artificialContig,locStart+offset,locStart+offset);
        final ReferenceContext referenceContext = new ReferenceContext(genomeLocParser,loc,window,windowBases.getBytes());

        final VariantContext vc = new VariantContextBuilder("test", artificialContig, locStart+offset, locStart+offset+alleles.get(0).length()-1, alleles).make();
        final Pair<VariantContext,Integer> result = LeftAlignAndTrimVariants.alignAndWrite(vc,referenceContext);
        Assert.assertTrue(result.second == (offset>0?1:0));
        Assert.assertEquals(result.first.getStart(), locStart);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.