Skip to content

Commit 40ae13a

Browse files
committed
JS: Rename Vue::{Component -> ComponentRegistration}
1 parent 21d03cd commit 40ae13a

File tree

1 file changed

+3
-3
lines changed
  • javascript/ql/src/semmle/javascript/frameworks

1 file changed

+3
-3
lines changed

javascript/ql/src/semmle/javascript/frameworks/Vue.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module Vue {
2727
MkExtendedInstance(VueExtend extend, DataFlow::NewNode sub) {
2828
sub = extend.getAnInstantiation()
2929
} or
30-
MkComponent(DataFlow::CallNode def) { def = vue().getAMemberCall("component") } or
30+
MkComponentRegistration(DataFlow::CallNode def) { def = vue().getAMemberCall("component") } or
3131
MkSingleFileComponent(VueFile file)
3232

3333
/** Gets the name of a lifecycle hook method. */
@@ -402,10 +402,10 @@ module Vue {
402402
/**
403403
* A Vue component from `Vue.component("my-component", { ... })`.
404404
*/
405-
class Component extends Instance, MkComponent {
405+
class ComponentRegistration extends Instance, MkComponentRegistration {
406406
DataFlow::CallNode def;
407407

408-
Component() { this = MkComponent(def) }
408+
ComponentRegistration() { this = MkComponentRegistration(def) }
409409

410410
override string toString() { result = def.toString() }
411411

0 commit comments

Comments
 (0)