File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
javascript/ql/lib/semmle/javascript/dataflow Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -192,26 +192,6 @@ module DataFlow {
192192 FlowSteps:: identityFunctionStep ( result , this )
193193 }
194194
195- /**
196- * Gets the type annotation describing the type of this node,
197- * provided that a static type could not be found.
198- *
199- * Doesn't take field types and function return types into account.
200- */
201- private TypeAnnotation getFallbackTypeAnnotation ( ) {
202- exists ( BindingPattern pattern |
203- this = valueNode ( pattern ) and
204- result = pattern .getTypeAnnotation ( )
205- )
206- or
207- result = this .getAPredecessor ( ) .getFallbackTypeAnnotation ( )
208- or
209- exists ( DataFlow:: ClassNode cls , string fieldName |
210- this = cls .getAReceiverNode ( ) .getAPropertyRead ( fieldName ) and
211- result = cls .getFieldTypeAnnotation ( fieldName )
212- )
213- }
214-
215195 private NameResolution:: Node getNameResolutionNode ( ) {
216196 this = valueNode ( result )
217197 or
You can’t perform that action at this time.
0 commit comments