|
35 | 35 | import org.sonar.plugins.python.api.tree.Parameter; |
36 | 36 | import org.sonar.plugins.python.api.tree.StatementList; |
37 | 37 | import org.sonar.plugins.python.api.tree.Tree; |
| 38 | +import org.sonar.plugins.python.api.types.v2.ModuleType; |
| 39 | +import org.sonar.plugins.python.api.types.v2.PythonType; |
| 40 | +import org.sonar.plugins.python.api.types.v2.TypeWrapper; |
| 41 | +import org.sonar.plugins.python.api.types.v2.UnionType; |
38 | 42 | import org.sonar.python.semantic.SymbolUtils; |
39 | 43 | import org.sonar.python.semantic.v2.types.AstBasedTypeInference; |
40 | 44 | import org.sonar.python.semantic.v2.types.FlowSensitiveTypeInference; |
41 | 45 | import org.sonar.python.semantic.v2.types.Propagation; |
42 | 46 | import org.sonar.python.semantic.v2.types.PropagationVisitor; |
43 | 47 | import org.sonar.python.semantic.v2.types.TrivialTypeInferenceVisitor; |
44 | | -import org.sonar.python.semantic.v2.types.TrivialTypePropagationVisitor; |
45 | 48 | import org.sonar.python.semantic.v2.types.TryStatementVisitor; |
46 | 49 | import org.sonar.python.semantic.v2.typetable.TypeTable; |
47 | 50 | import org.sonar.python.tree.TreeUtils; |
48 | | -import org.sonar.plugins.python.api.types.v2.ModuleType; |
49 | | -import org.sonar.plugins.python.api.types.v2.PythonType; |
50 | | -import org.sonar.plugins.python.api.types.v2.TypeWrapper; |
51 | | -import org.sonar.plugins.python.api.types.v2.UnionType; |
52 | 51 |
|
53 | 52 | public class TypeInferenceV2 { |
54 | 53 |
|
@@ -107,7 +106,6 @@ public Map<SymbolV2, Set<PythonType>> inferTopLevelTypes(FileInput fileInput) { |
107 | 106 | var trivialTypeInferenceVisitor = new TrivialTypeInferenceVisitor(projectLevelTypeTable, pythonFile, fullyQualifiedModuleName); |
108 | 107 | this.importedModulesFQN = trivialTypeInferenceVisitor.importedModulesFQN(); |
109 | 108 | fileInput.accept(trivialTypeInferenceVisitor); |
110 | | - fileInput.accept(new TrivialTypePropagationVisitor(projectLevelTypeTable)); |
111 | 109 | return inferTypesAndMemberAccessSymbols(fileInput); |
112 | 110 | } |
113 | 111 |
|
|
0 commit comments