mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Old Java parser deprecation
This commit is contained in:
@@ -25,7 +25,7 @@ import com.intellij.psi.impl.source.tree.TreeElement;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated old Java parser is deprecated in favor of PSI builder-based one (see com.intellij.lang.java.parser.*) (to remove in IDEA 11).
|
||||
*/
|
||||
public class ClassBodyParsing extends Parsing {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.psi.impl.source.parsing.ClassBodyParsing");
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated old Java parser is deprecated in favor of PSI builder-based one (see com.intellij.lang.java.parser.*) (to remove in IDEA 11).
|
||||
*/
|
||||
public class DeclarationParsing extends Parsing {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.psi.impl.source.parsing.DeclarationParsing");
|
||||
|
||||
@@ -34,6 +34,9 @@ import com.intellij.psi.tree.TokenSet;
|
||||
import com.intellij.util.CharTable;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @deprecated old Java parser is deprecated in favor of PSI builder-based one (see com.intellij.lang.java.parser.*) (to remove in IDEA 11).
|
||||
*/
|
||||
public class ExpressionParsing extends Parsing {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.psi.impl.source.parsing.ExpressionParsing");
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated old Java parser is deprecated in favor of PSI builder-based one (see com.intellij.lang.java.parser.*) (to remove in IDEA 11).
|
||||
*/
|
||||
public class FileTextParsing extends Parsing {
|
||||
public FileTextParsing(JavaParsingContext context) {
|
||||
|
||||
@@ -28,7 +28,7 @@ import com.intellij.psi.TokenType;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated old Java parser is deprecated in favor of PSI builder-based one (see com.intellij.lang.java.parser.*) (to remove in IDEA 11).
|
||||
*/
|
||||
public class ImportsTextParsing extends Parsing {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.psi.impl.source.parsing.ImportsTextParsing");
|
||||
|
||||
@@ -33,6 +33,9 @@ import com.intellij.psi.tree.IElementType;
|
||||
import com.intellij.psi.tree.TokenSet;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
/**
|
||||
* todo[r.sh] rewrite and deprecate
|
||||
*/
|
||||
public class JavadocParsing extends Parsing {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.psi.impl.source.parsing.JavadocParsing");
|
||||
|
||||
|
||||
@@ -33,6 +33,9 @@ import com.intellij.util.CharTable;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @deprecated old Java parser is deprecated in favor of PSI builder-based one (see com.intellij.lang.java.parser.*) (to remove in IDEA 11).
|
||||
*/
|
||||
public class Parsing {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.psi.impl.source.parsing.Parsing");
|
||||
protected static final boolean DEEP_PARSE_BLOCKS_IN_STATEMENTS = false;
|
||||
@@ -198,8 +201,8 @@ public class Parsing {
|
||||
return type;
|
||||
}
|
||||
|
||||
public CompositeElement parseTypeWithEllipsis(Lexer lexer, boolean eatLastDot, boolean allowWilcard) {
|
||||
CompositeElement type = parseType(lexer, eatLastDot, allowWilcard, false);
|
||||
public CompositeElement parseTypeWithEllipsis(Lexer lexer, boolean eatLastDot, boolean allowWildcard) {
|
||||
CompositeElement type = parseType(lexer, eatLastDot, allowWildcard, false);
|
||||
if (type == null) return null;
|
||||
if (lexer.getTokenType() == JavaTokenType.ELLIPSIS) {
|
||||
CompositeElement type1 = ASTFactory.composite(JavaElementType.TYPE);
|
||||
|
||||
@@ -33,6 +33,9 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @deprecated old Java parser is deprecated in favor of PSI builder-based one (see com.intellij.lang.java.parser.*) (to remove in IDEA 11).
|
||||
*/
|
||||
public class StatementParsing extends Parsing {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.psi.impl.source.parsing.StatementParsing");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user