Package org.eclipse.jdt.internal.compiler.lookup

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceContext()


  // at this point we know we have something to report
  if (localBinding.declaration instanceof Argument) {
    // check compiler options to report against unused arguments
    MethodScope methodScope = currentScope.methodScope();
    if (methodScope != null) {
      MethodBinding method = ((AbstractMethodDeclaration)methodScope.referenceContext()).binding;
     
      boolean shouldReport = !method.isMain();
      if (method.isImplementing()) {
        shouldReport &= currentScope.compilerOptions().reportUnusedParameterWhenImplementingAbstract;
      } else if (method.isOverriding()) {
View Full Code Here


  // at this point we know we have something to report
  if (localBinding.declaration instanceof Argument) {
    // check compiler options to report against unused arguments
    MethodScope methodScope = currentScope.methodScope();
    if (methodScope != null) {
      MethodBinding method = ((AbstractMethodDeclaration)methodScope.referenceContext()).binding;
     
      boolean shouldReport = !method.isMain();
      if (method.isImplementing()) {
        shouldReport &= currentScope.compilerOptions().reportUnusedParameterWhenImplementingAbstract;
      } else if (method.isOverriding()) {
View Full Code Here

  // at this point we know we have something to report
  if (localBinding.declaration instanceof Argument) {
    // check compiler options to report against unused arguments
    MethodScope methodScope = currentScope.methodScope();
    if (methodScope != null && !methodScope.isLambdaScope()) { // lambda must be congruent with the descriptor.
      MethodBinding method = ((AbstractMethodDeclaration)methodScope.referenceContext()).binding;
     
      boolean shouldReport = !method.isMain();
      if (method.isImplementing()) {
        shouldReport &= currentScope.compilerOptions().reportUnusedParameterWhenImplementingAbstract;
      } else if (method.isOverriding()) {
View Full Code Here

  // at this point we know we have something to report
  if (localBinding.declaration instanceof Argument) {
    // check compiler options to report against unused arguments
    MethodScope methodScope = currentScope.methodScope();
    if (methodScope != null) {
      MethodBinding method = ((AbstractMethodDeclaration)methodScope.referenceContext()).binding;
     
      boolean shouldReport = !method.isMain();
      if (method.isImplementing()) {
        shouldReport &= currentScope.compilerOptions().reportUnusedParameterWhenImplementingAbstract;
      } else if (method.isOverriding()) {
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.