File tree Expand file tree Collapse file tree 1 file changed +2
-32
lines changed
javascript/ql/lib/semmle/javascript/frameworks Expand file tree Collapse file tree 1 file changed +2
-32
lines changed Original file line number Diff line number Diff line change @@ -298,30 +298,6 @@ module Vue {
298
298
)
299
299
}
300
300
301
- /**
302
- * Gets a node for a member of the `methods` option of this component.
303
- */
304
- pragma [ nomagic]
305
- private DataFlow:: SourceNode getAMethod ( ) {
306
- result = getMethods ( ) .getAPropertySource ( )
307
- or
308
- result = getAsClassComponent ( ) .getAnInstanceMethod ( ) and
309
- not result = getAsClassComponent ( ) .getInstanceMethod ( [ lifecycleHookName ( ) , "render" , "data" ] )
310
- }
311
-
312
- /**
313
- * Gets a node for a member of the `computed` option of this component that matches `kind`.
314
- */
315
- pragma [ nomagic]
316
- private DataFlow:: SourceNode getAnAccessor ( DataFlow:: MemberKind kind ) {
317
- result = getComputed ( ) .getAPropertySource ( ) and kind = DataFlow:: MemberKind:: getter ( )
318
- or
319
- result = getComputed ( ) .getAPropertySource ( ) .getAPropertySource ( memberKindVerb ( kind ) )
320
- or
321
- result = getAsClassComponent ( ) .getAnInstanceMember ( kind ) and
322
- kind .isAccessor ( )
323
- }
324
-
325
301
/**
326
302
* Gets a node for a member `name` of the `computed` option of this component that matches `kind`.
327
303
*/
@@ -351,15 +327,9 @@ module Vue {
351
327
* Gets a node for a function that will be invoked with `this` bound to this component.
352
328
*/
353
329
DataFlow:: FunctionNode getABoundFunction ( ) {
354
- result = getAMethod ( )
355
- or
356
- result = getAnAccessor ( _)
357
- or
358
- result = getALifecycleHook ( _)
359
- or
360
- result = getOptionSource ( _)
330
+ result = getOptions ( ) .getAMember + ( ) .getAValueReachingRhs ( )
361
331
or
362
- result = getOptionSource ( _ ) . getAPropertySource ( )
332
+ result = getAsClassComponent ( ) . getAnInstanceMember ( )
363
333
}
364
334
365
335
pragma [ noinline]
You can’t perform that action at this time.
0 commit comments