CodeQL library for JavaScript
Search

Class Vue::Instance

A Vue instance definition.

This includes both explicit instantiations of Vue objects, and implicit instantiations in the form of components or Vue extensions that have not yet been instantiated to a Vue instance.

The following instances are recognized:

  • new Vue({...})
  • Vue.extend({...})
  • new ExtendedVue({...})
  • Vue.component("my-component", {...})
  • single file components in .vue files

Import path

import javascript

Direct supertypes

Known direct subtypes

Predicates

getABoundFunction

Gets a node for a function that will be invoked with this bound to this instance.

getAPropertyValue

Gets a node for the value for property name of this instance.

getAsClassComponent

Gets the class component implementing this Vue instance, if any.

getComputed

Gets the node for the computed option of this instance.

getData

Gets the node for the data option object of this instance.

getMethods

Gets the node for the methods option of this instance.

getOption

Gets the node for option name for this instance, including those from extended objects and mixins.

getOwnOption

Gets the node for option name for this instance, this does not include those from extended objects and mixins.

getOwnOptionsObject

Gets the options passed to the Vue object, such as the object literal {...} in new Vue{{...}) or the default export of a single-file component.

getRender

Gets the node for the render option of this instance.

getTemplate

Gets the node for the template option of this instance.

getTemplateElement

Gets the template element used by this instance, if any.

hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see locations.

toString

Gets a textual representation of this element.