public void resolveJavadoc() { if (this.binding == null) return; if (this.javadoc != null) { this.javadoc.resolve(this.scope); return; } if (this.binding.declaringClass != null && !this.binding.declaringClass.isLocalType()) { // Set javadoc visibility int javadocVisibility = this.binding.modifiers & ExtraCompilerModifiers.AccVisibilityMASK; ClassScope classScope = this.scope.classScope(); ProblemReporter reporter = this.scope.problemReporter(); int severity = reporter.computeSeverity(IProblem.JavadocMissing); if (severity != ProblemSeverities.Ignore) { if (classScope != null) { javadocVisibility = Util.computeOuterMostVisibility(classScope.referenceType(), javadocVisibility); } int javadocModifiers = (this.binding.modifiers & ~ExtraCompilerModifiers.AccVisibilityMASK) | javadocVisibility; reporter.javadocMissing(this.sourceStart, this.sourceEnd, severity, javadocModifiers); } } }
public void resolve(MethodScope var1) { if ((this.field_446 & 16) == 0) { if (this.binding != null && this.binding.isValidBinding()) { this.field_446 |= 16; ClassScope var2 = var1.method_582(); if (var2 != null) { label338: { SourceTypeBinding var3 = var2.enclosingSourceType(); if (var3.superclass != null) { FieldBinding var4 = var2.findField(var3.superclass, this.name, this, false); if (var4 != null && var4.isValidBinding()) { label334: { if (var4 instanceof FieldBinding) { FieldBinding var5 = (FieldBinding) var4; if (var5.original() == this.binding || !var5.canBeSeenBy(var3, this, var1)) { break label334; } } var1.problemReporter().fieldHiding(this, var4); break label338; } } } Scope var13 = var2.parent; if (var13.kind != 4) { Binding var15 = var13.getBinding(this.name, 3, this, false); if (var15 != null && var15.isValidBinding() && var15 != this.binding) { label323: { if (var15 instanceof FieldBinding) { FieldBinding var6 = (FieldBinding) var15; if (var6.original() == this.binding || !var6.method_431() && var3.method_226()) { break label323; } } var1.problemReporter().fieldHiding(this, var15); } } } } } if (this.type != null) { this.type.resolvedType = this.binding.type; } FieldBinding var12 = var1.initializedField; int var14 = var1.field_407; try { var1.initializedField = this.binding; var1.field_407 = this.binding.field_304; method_761(var1, this.annotations, this.binding); if ((this.binding.getAnnotationTagBits() & 70368744177664L) == 0L && (this.binding.field_300 & 1048576) != 0 && var1.compilerOptions().field_1928 >= 3211264L) { var1.problemReporter().method_1675(this); } if (this.initialization == null) { this.binding.setConstant(Constant.NotAConstant); } else { this.binding.setConstant(Constant.NotAConstant); TypeBinding var17 = this.binding.type; this.initialization.setExpectedType(var17); TypeBinding var18; if (this.initialization instanceof ArrayInitializer) { if ((var18 = this.initialization.resolveTypeExpecting(var1, var17)) != null) { ((ArrayInitializer) this.initialization).binding = (ArrayBinding) var18; this.initialization.computeConversion(var1, var17, var18); } } else if ((var18 = this.initialization.resolveType(var1)) != null) { if (var17 != var18) { var1.compilationUnitScope().recordTypeConversion(var17, var18); } if (!this.initialization.isConstantValueOfTypeAssignableToType(var18, var17) && (!var17.method_148() || !BaseTypeBinding.method_185(var17.id, var18.id)) && !var18.isCompatibleWith(var17)) { if (!var1.isBoxingCompatibleWith(var18, var17) && (!var18.method_148() || var1.compilerOptions().field_1928 < 3211264L || var17.method_148() || !this.initialization.isConstantValueOfTypeAssignableToType( var18, var1.environment().method_486(var17)))) { if ((var17.tagBits & 128L) == 0L) { var1.problemReporter() .typeMismatchError(var18, var17, this.initialization, (ASTNode) null); } } else { this.initialization.computeConversion(var1, var17, var18); if (this.initialization instanceof CastExpression && (this.initialization.field_446 & 16384) == 0) { CastExpression.checkNeedForAssignedCast( var1, var17, (CastExpression) this.initialization); } } } else { this.initialization.computeConversion(var1, var17, var18); if (var18.method_174(var17)) { var1.problemReporter().method_1806(this.initialization, var18, var17); } if (this.initialization instanceof CastExpression && (this.initialization.field_446 & 16384) == 0) { CastExpression.checkNeedForAssignedCast( var1, var17, (CastExpression) this.initialization); } } if (this.binding.method_409()) { this.binding.setConstant( this.initialization.constant.castTo( (this.binding.type.id << 4) + this.initialization.constant.typeID())); } } else { this.binding.setConstant(Constant.NotAConstant); } if (this.binding == Assignment.method_944(this.initialization)) { var1.problemReporter().assignmentHasNoEffect(this, this.name); } } if (this.binding != null && this.binding.declaringClass != null && !this.binding.declaringClass.method_158()) { int var16 = this.binding.field_300 & 7; ProblemReporter var19 = var1.problemReporter(); int var7 = var19.computeSeverity(-1610612250); if (var7 != -1) { if (var2 != null) { var16 = Util.computeOuterMostVisibility(var2.referenceType(), var16); } int var8 = this.binding.field_300 & -8 | var16; } } } finally { var1.initializedField = var12; var1.field_407 = var14; if (this.binding.constant() == null) { this.binding.setConstant(Constant.NotAConstant); } } } } }