Skip to content

Commit 4a1fb5d

Browse files
committed
JS: De-abstractify Vue::Instance class
1 parent 40ae13a commit 4a1fb5d

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ module Vue {
9595
* - `Vue.component("my-component", {...})`
9696
* - single file components in .vue files
9797
*/
98-
abstract class Instance extends TInstance {
98+
class Instance extends TInstance {
9999
/** Gets a textual representation of this element. */
100-
abstract string toString();
100+
string toString() { none() } // overridden in subclasses
101101

102102
/**
103103
* Holds if this element is at the specified location.
@@ -120,7 +120,7 @@ module Vue {
120120
* Gets the options passed to the Vue object, such as the object literal `{...}` in `new Vue{{...})`
121121
* or the default export of a single-file component.
122122
*/
123-
abstract DataFlow::Node getOwnOptionsObject();
123+
DataFlow::Node getOwnOptionsObject() { none() } // overridden in subclasses
124124

125125
/**
126126
* Gets the class component implementing this Vue instance, if any.
@@ -173,7 +173,7 @@ module Vue {
173173
/**
174174
* Gets the template element used by this instance, if any.
175175
*/
176-
abstract Template::Element getTemplateElement();
176+
Template::Element getTemplateElement() { none() } // overridden in subclasses
177177

178178
/**
179179
* Gets the node for the `data` option object of this instance.

0 commit comments

Comments
 (0)