mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] unneeded parameter list elements in static import references
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -43,7 +43,7 @@ public interface PsiJavaCodeReferenceElement extends PsiJavaReference, PsiQualif
|
||||
/**
|
||||
* Returns the list of type arguments specified on the reference.
|
||||
*
|
||||
* @return the type argument list, or null if the reference does not have any type arguments.
|
||||
* @return the type argument list, or null if the reference may not have any type arguments (like PsiImportStaticReferenceElement).
|
||||
*/
|
||||
@Nullable
|
||||
PsiReferenceParameterList getParameterList();
|
||||
|
||||
@@ -214,7 +214,7 @@ public class ReferenceParser {
|
||||
if (parameterList) {
|
||||
typeInfo.isParameterized = parseReferenceParameterList(builder, true, diamonds);
|
||||
}
|
||||
else {
|
||||
else if (!isStaticImport) {
|
||||
emptyElement(builder, JavaElementType.REFERENCE_PARAMETER_LIST);
|
||||
}
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@ PsiJavaFile:StaticImport.java
|
||||
PsiJavaCodeReferenceElement:java.util
|
||||
PsiJavaCodeReferenceElement:java
|
||||
PsiIdentifier:java('java')
|
||||
PsiReferenceParameterList
|
||||
<empty list>
|
||||
PsiJavaToken:DOT('.')
|
||||
PsiIdentifier:util('util')
|
||||
PsiReferenceParameterList
|
||||
|
||||
@@ -10,8 +10,6 @@ PsiJavaFile:StaticImport1.java
|
||||
PsiJavaCodeReferenceElement:java.util
|
||||
PsiJavaCodeReferenceElement:java
|
||||
PsiIdentifier:java('java')
|
||||
PsiReferenceParameterList
|
||||
<empty list>
|
||||
PsiJavaToken:DOT('.')
|
||||
PsiIdentifier:util('util')
|
||||
PsiReferenceParameterList
|
||||
|
||||
@@ -9,8 +9,6 @@ PsiJavaFile:StaticImport0.java
|
||||
PsiJavaCodeReferenceElement:java.util
|
||||
PsiJavaCodeReferenceElement:java
|
||||
PsiIdentifier:java('java')
|
||||
PsiReferenceParameterList
|
||||
<empty list>
|
||||
PsiJavaToken:DOT('.')
|
||||
PsiIdentifier:util('util')
|
||||
PsiReferenceParameterList
|
||||
|
||||
@@ -10,8 +10,6 @@ PsiJavaFile:StaticImport1.java
|
||||
PsiJavaCodeReferenceElement:java.util
|
||||
PsiJavaCodeReferenceElement:java
|
||||
PsiIdentifier:java('java')
|
||||
PsiReferenceParameterList
|
||||
<empty list>
|
||||
PsiJavaToken:DOT('.')
|
||||
PsiIdentifier:util('util')
|
||||
PsiReferenceParameterList
|
||||
|
||||
@@ -7,7 +7,5 @@ PsiJavaFile:UnclosedImport3.java
|
||||
PsiWhiteSpace(' ')
|
||||
PsiImportStaticReferenceElement:a
|
||||
PsiIdentifier:a('a')
|
||||
PsiReferenceParameterList
|
||||
<empty list>
|
||||
PsiErrorElement:';' expected
|
||||
<empty list>
|
||||
Reference in New Issue
Block a user