import net.sourceforge.phpdt.internal.compiler.lookup.MethodBinding;
import net.sourceforge.phpdt.internal.compiler.lookup.ProblemMethodBinding;
import net.sourceforge.phpdt.internal.compiler.lookup.ProblemReasons;
-import net.sourceforge.phpdt.internal.compiler.lookup.ProblemReferenceBinding;
import net.sourceforge.phpdt.internal.compiler.lookup.ReferenceBinding;
import net.sourceforge.phpdt.internal.compiler.lookup.SourceTypeBinding;
import net.sourceforge.phpdt.internal.compiler.lookup.SyntheticArgumentBinding;
import net.sourceforge.phpeclipse.internal.compiler.ast.Expression;
import net.sourceforge.phpeclipse.internal.compiler.ast.FieldDeclaration;
import net.sourceforge.phpeclipse.internal.compiler.ast.FieldReference;
-import net.sourceforge.phpeclipse.internal.compiler.ast.ImportReference;
import net.sourceforge.phpeclipse.internal.compiler.ast.InstanceOfExpression;
import net.sourceforge.phpeclipse.internal.compiler.ast.IntLiteral;
import net.sourceforge.phpeclipse.internal.compiler.ast.Literal;
switch(problemId){
case IProblem.PHPVarDeprecatedWarning :
return this.options.getSeverity(CompilerOptions.PHPVarDeprecatedWarning);
-
+ case IProblem.PHPBadStyleKeywordWarning :
+ return this.options.getSeverity(CompilerOptions.PHPBadStyleKeywordWarning);
+ case IProblem.PHPBadStyleUppercaseIdentifierWarning :
+ return this.options.getSeverity(CompilerOptions.PHPBadStyleUppercaseIdentifierWarning);
+
case IProblem.MaskedCatch :
return this.options.getSeverity(CompilerOptions.MaskedCatchBlock);
this.handle(IProblem.PHPVarDeprecatedWarning, NoArgument, new String[]{},
problemStartPosition, problemEndPosition, context, compilationResult);
}
+
+ public void phpKeywordWarning(String[] messageArguments,
+ int problemStartPosition, int problemEndPosition,
+ ReferenceContext context, CompilationResult compilationResult) {
+ if (computeSeverity(IProblem.PHPBadStyleKeywordWarning) == Ignore)
+ return;
+ this.handle(IProblem.PHPBadStyleKeywordWarning, NoArgument, messageArguments,
+ problemStartPosition, problemEndPosition, context, compilationResult);
+ }
+
+ public void phpUppercaseIdentifierWarning(
+ int problemStartPosition, int problemEndPosition,
+ ReferenceContext context, CompilationResult compilationResult) {
+ if (computeSeverity(IProblem.PHPBadStyleUppercaseIdentifierWarning) == Ignore)
+ return;
+ this.handle(IProblem.PHPBadStyleUppercaseIdentifierWarning, NoArgument, new String[]{},
+ problemStartPosition, problemEndPosition, context, compilationResult);
+ }
}