Class TrivialTypeInferenceVisitor
java.lang.Object
org.sonar.plugins.python.api.tree.BaseTreeVisitor
org.sonar.python.semantic.v2.types.TrivialTypeInferenceVisitor
- All Implemented Interfaces:
TreeVisitor
-
Constructor Summary
ConstructorsConstructorDescriptionTrivialTypeInferenceVisitor(TypeTable projectLevelTypeTable, PythonFile pythonFile, String fullyQualifiedModuleName) -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitAnnotatedAssignment(AnnotatedAssignment assignmentStatement) voidvisitAssignmentStatement(AssignmentStatement assignmentStatement) voidvisitCallExpression(CallExpression callExpression) voidvisitClassDef(ClassDef classDef) voidvisitDictCompExpression(DictCompExpression dictCompExpression) voidvisitDictionaryLiteral(DictionaryLiteral dictionaryLiteral) voidvisitFileInput(FileInput fileInput) voidvisitFunctionDef(FunctionDef functionDef) voidvisitImportFrom(ImportFrom importFrom) voidvisitImportName(ImportName importName) voidvisitListLiteral(ListLiteral listLiteral) voidvoidvisitNone(NoneExpression noneExpression) voidvisitNumericLiteral(NumericLiteral numericLiteral) voidvisitParameter(Parameter parameter) voidvisitPyListOrSetCompExpression(ComprehensionExpression comprehensionExpression) voidvisitQualifiedExpression(QualifiedExpression qualifiedExpression) voidvisitSetLiteral(SetLiteral setLiteral) voidvisitStringLiteral(StringLiteral stringLiteral) voidvisitSubscriptionExpression(SubscriptionExpression subscriptionExpression) voidvisitTuple(Tuple tuple) Methods inherited from class org.sonar.plugins.python.api.tree.BaseTreeVisitor
scan, scan, visitAliasedName, visitArgumentList, visitAsPattern, visitAssertStatement, visitAssignmentExpression, visitAwaitExpression, visitBinaryExpression, visitBreakStatement, visitCapturePattern, visitCaseBlock, visitClassPattern, visitCompoundAssignment, visitComprehensionFor, visitComprehensionIf, visitConditionalExpression, visitContinueStatement, visitDecorator, visitDelStatement, visitDottedName, visitDoubleStarPattern, visitEllipsis, visitElseClause, visitExceptClause, visitExecStatement, visitExpressionList, visitExpressionStatement, visitFinallyClause, visitFormatSpecifier, visitFormattedExpression, visitForStatement, visitGlobalStatement, visitGroupPattern, visitGuard, visitIfStatement, visitKeyValuePair, visitKeyValuePattern, visitKeywordPattern, visitLambda, visitLiteralPattern, visitMappingPattern, visitMatchStatement, visitNonlocalStatement, visitOrPattern, visitParameterList, visitParenthesizedExpression, visitPassStatement, visitPrintStatement, visitRaiseStatement, visitRegularArgument, visitRepr, visitReturnStatement, visitSequencePattern, visitSliceExpression, visitSliceItem, visitSliceList, visitStarPattern, visitStatementList, visitStringElement, visitToken, visitTryStatement, visitTupleParameter, visitTypeAliasStatement, visitTypeAnnotation, visitTypeParam, visitTypeParams, visitUnaryExpression, visitUnpackingExpression, visitValuePattern, visitWhileStatement, visitWildcardPattern, visitWithItem, visitWithStatement, visitYieldExpression, visitYieldStatement
-
Constructor Details
-
TrivialTypeInferenceVisitor
public TrivialTypeInferenceVisitor(TypeTable projectLevelTypeTable, PythonFile pythonFile, String fullyQualifiedModuleName)
-
-
Method Details
-
importedModulesFQN
-
visitFileInput
- Specified by:
visitFileInputin interfaceTreeVisitor- Overrides:
visitFileInputin classBaseTreeVisitor
-
visitStringLiteral
- Specified by:
visitStringLiteralin interfaceTreeVisitor- Overrides:
visitStringLiteralin classBaseTreeVisitor
-
visitTuple
- Specified by:
visitTuplein interfaceTreeVisitor- Overrides:
visitTuplein classBaseTreeVisitor
-
visitDictionaryLiteral
- Specified by:
visitDictionaryLiteralin interfaceTreeVisitor- Overrides:
visitDictionaryLiteralin classBaseTreeVisitor
-
visitSetLiteral
- Specified by:
visitSetLiteralin interfaceTreeVisitor- Overrides:
visitSetLiteralin classBaseTreeVisitor
-
visitNumericLiteral
- Specified by:
visitNumericLiteralin interfaceTreeVisitor- Overrides:
visitNumericLiteralin classBaseTreeVisitor
-
visitNone
- Specified by:
visitNonein interfaceTreeVisitor- Overrides:
visitNonein classBaseTreeVisitor
-
visitListLiteral
- Specified by:
visitListLiteralin interfaceTreeVisitor- Overrides:
visitListLiteralin classBaseTreeVisitor
-
visitPyListOrSetCompExpression
- Specified by:
visitPyListOrSetCompExpressionin interfaceTreeVisitor- Overrides:
visitPyListOrSetCompExpressionin classBaseTreeVisitor
-
visitDictCompExpression
- Specified by:
visitDictCompExpressionin interfaceTreeVisitor- Overrides:
visitDictCompExpressionin classBaseTreeVisitor
-
visitClassDef
- Specified by:
visitClassDefin interfaceTreeVisitor- Overrides:
visitClassDefin classBaseTreeVisitor
-
visitFunctionDef
- Specified by:
visitFunctionDefin interfaceTreeVisitor- Overrides:
visitFunctionDefin classBaseTreeVisitor
-
visitImportName
- Specified by:
visitImportNamein interfaceTreeVisitor- Overrides:
visitImportNamein classBaseTreeVisitor
-
visitImportFrom
- Specified by:
visitImportFromin interfaceTreeVisitor- Overrides:
visitImportFromin classBaseTreeVisitor
-
visitAssignmentStatement
- Specified by:
visitAssignmentStatementin interfaceTreeVisitor- Overrides:
visitAssignmentStatementin classBaseTreeVisitor
-
visitAnnotatedAssignment
- Specified by:
visitAnnotatedAssignmentin interfaceTreeVisitor- Overrides:
visitAnnotatedAssignmentin classBaseTreeVisitor
-
visitCallExpression
- Specified by:
visitCallExpressionin interfaceTreeVisitor- Overrides:
visitCallExpressionin classBaseTreeVisitor
-
visitParameter
- Specified by:
visitParameterin interfaceTreeVisitor- Overrides:
visitParameterin classBaseTreeVisitor
-
visitQualifiedExpression
- Specified by:
visitQualifiedExpressionin interfaceTreeVisitor- Overrides:
visitQualifiedExpressionin classBaseTreeVisitor
-
visitSubscriptionExpression
- Specified by:
visitSubscriptionExpressionin interfaceTreeVisitor- Overrides:
visitSubscriptionExpressionin classBaseTreeVisitor
-
visitName
- Specified by:
visitNamein interfaceTreeVisitor- Overrides:
visitNamein classBaseTreeVisitor
-