List of usage examples for org.eclipse.jdt.internal.compiler.lookup ExtraCompilerModifiers AccAlternateModifierProblem
int AccAlternateModifierProblem
To view the source code for org.eclipse.jdt.internal.compiler.lookup ExtraCompilerModifiers AccAlternateModifierProblem.
Click Source Link
From source file:org.eclipse.jdt.internal.compiler.parser.Parser.java
License:Open Source License
protected void checkAndSetModifiers(int flag) { /*modify the current modifiers buffer. When the startPosition of the modifiers is 0 it means that the modifier being parsed is the first of a list of several modifiers. The startPosition is zeroed when a copy of modifiers-buffer is push onto the this.astStack. *//*from w w w .j a v a2 s . co m*/ if ((this.modifiers & flag) != 0) { // duplicate modifier this.modifiers |= ExtraCompilerModifiers.AccAlternateModifierProblem; } this.modifiers |= flag; if (this.modifiersSourceStart < 0) this.modifiersSourceStart = this.scanner.startPosition; if (this.currentElement != null && this.annotationRecoveryActivated) { this.currentElement.addModifier(flag, this.modifiersSourceStart); } }