PY-20377 Python dialect for annotations inside function type comments
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Sun, 24 Jul 2016 10:57:49 +0000 (12:57 +0200)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Mon, 24 Oct 2016 21:03:49 +0000 (00:03 +0300)
commit8c6c6563f3ba35fedce2eb0428bf20c101e538f3
tree40e1e6ebb2005d02986a448466fb62891e99deb7
parent75b54b79619838e1a4421f69e27c7569d382f52a
PY-20377 Python dialect for annotations inside function type comments

I also get rid of the legacy support of function type comments:
namely, removed PyFunctionTypeCommentReferenceContributor, and
PyTypingAnnotationInjector now handles type comments both for functions
and regular target expressions.
33 files changed:
python/src/META-INF/python-core-common.xml
python/src/com/jetbrains/python/codeInsight/PyFunctionTypeCommentReferenceContributor.java [deleted file]
python/src/com/jetbrains/python/codeInsight/PyTypingAnnotationInjector.java
python/src/com/jetbrains/python/codeInsight/functionTypeComments/PyFunctionTypeAnnotationDialect.java [new file with mode: 0644]
python/src/com/jetbrains/python/codeInsight/functionTypeComments/PyFunctionTypeAnnotationElementTypes.java [new file with mode: 0644]
python/src/com/jetbrains/python/codeInsight/functionTypeComments/PyFunctionTypeAnnotationFileElementType.java [new file with mode: 0644]
python/src/com/jetbrains/python/codeInsight/functionTypeComments/PyFunctionTypeAnnotationFileType.java [new file with mode: 0644]
python/src/com/jetbrains/python/codeInsight/functionTypeComments/PyFunctionTypeAnnotationParser.java [new file with mode: 0644]
python/src/com/jetbrains/python/codeInsight/functionTypeComments/PyFunctionTypeAnnotationParserDefinition.java [new file with mode: 0644]
python/src/com/jetbrains/python/codeInsight/functionTypeComments/psi/PyFunctionTypeAnnotation.java [new file with mode: 0644]
python/src/com/jetbrains/python/codeInsight/functionTypeComments/psi/PyFunctionTypeAnnotationFile.java [new file with mode: 0644]
python/src/com/jetbrains/python/codeInsight/functionTypeComments/psi/PyParameterTypeList.java [new file with mode: 0644]
python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java
python/src/com/jetbrains/python/validation/StarAnnotator.java
python/testData/functionTypeComment/parsing/DanglingComma.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/DefAsFirstType.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/Ellipsis.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/Empty.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/EmptyFunctionType.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/LambdaAsFirstType.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/NoArrowAndReturnType.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/NoClosingParenthesis.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/NoReturnType.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/NoTypeAfterStar.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/Simple.txt [new file with mode: 0644]
python/testData/functionTypeComment/parsing/Varargs.txt [new file with mode: 0644]
python/testData/resolve/FunctionTypeComment.py [deleted file]
python/testData/resolve/FunctionTypeCommentParamTypeReference.py [new file with mode: 0644]
python/testData/resolve/FunctionTypeCommentReturnTypeReference.py [new file with mode: 0644]
python/testSrc/com/jetbrains/python/PyFunctionTypeAnnotationParsingTest.java [new file with mode: 0644]
python/testSrc/com/jetbrains/python/PyInjectionResolveTest.java
python/testSrc/com/jetbrains/python/PyResolveTest.java
python/testSrc/com/jetbrains/python/inspections/PyUnresolvedReferencesInspectionTest.java