prevent diamonds in reference parameter list other than <> -> invalid PsiDiamondType in substitutors

(cherry picked from commit 4f7cc7a)
This commit is contained in:
anna
2013-03-27 19:02:35 +01:00
parent 6065eb1e6f
commit 09f4a50b16
5 changed files with 56 additions and 2 deletions
@@ -0,0 +1,23 @@
PsiJavaFile:New17.java
PsiNewExpression:new Map<String, >()
PsiKeyword:new('new')
PsiReferenceParameterList
<empty list>
PsiWhiteSpace(' ')
PsiJavaCodeReferenceElement:Map<String, >
PsiIdentifier:Map('Map')
PsiReferenceParameterList
PsiJavaToken:LT('<')
PsiTypeElement:String
PsiJavaCodeReferenceElement:String
PsiIdentifier:String('String')
PsiReferenceParameterList
<empty list>
PsiJavaToken:COMMA(',')
PsiErrorElement:Identifier expected
<empty list>
PsiWhiteSpace(' ')
PsiJavaToken:GT('>')
PsiExpressionList
PsiJavaToken:LPARENTH('(')
PsiJavaToken:RPARENTH(')')