Stub tests: test for parameters with fq name

This commit is contained in:
Pavel V. Talanov
2014-03-21 14:03:39 +04:00
parent cbaa515a00
commit 5bc8cc1f9a
3 changed files with 16 additions and 0 deletions
@@ -0,0 +1,7 @@
PsiJetFileStubImpl[package=test]
CLASS:PsiJetClassStubImpl[name=A fqn=test.A superNames=[]]
VALUE_PARAMETER_LIST:PsiJetParameterListStubImpl
VALUE_PARAMETER:PsiJetParameterStubImpl[val name=b fqName=test.A.b typeText=Int defaultValue=null]
VALUE_PARAMETER:PsiJetParameterStubImpl[var name=c fqName=test.A.c typeText=String defaultValue=null]
VALUE_PARAMETER:PsiJetParameterStubImpl[val name=justParam typeText=Int defaultValue=null]
CLASS_BODY:PsiJetClassBodyStubImpl
@@ -0,0 +1,4 @@
package test
class A(val b: Int, var c: String, justParam: Int) {
}
@@ -141,6 +141,11 @@ public class StubBuilderTestGenerated extends AbstractStubBuilderTest {
doTest("idea/testData/stubs/PackageProperty.kt");
}
@TestMetadata("ParametersWithFqName.kt")
public void testParametersWithFqName() throws Exception {
doTest("idea/testData/stubs/ParametersWithFqName.kt");
}
@TestMetadata("QualifiedAnnotationOnFunction.kt")
public void testQualifiedAnnotationOnFunction() throws Exception {
doTest("idea/testData/stubs/QualifiedAnnotationOnFunction.kt");