@@ -132,23 +132,23 @@ module Vue {
132
132
DataFlow:: Node getOwnOptionsObject ( ) { none ( ) } // overridden in subclasses
133
133
134
134
/**
135
- * Gets the class component implementing this Vue instance , if any.
135
+ * Gets the class implementing this Vue component , if any.
136
136
*
137
137
* Specifically, this is a class annotated with `@Component` which flows to the options
138
- * object of this Vue instance .
138
+ * object of this Vue component .
139
139
*/
140
140
ClassComponent getAsClassComponent ( ) { result .flowsTo ( getOwnOptionsObject ( ) ) }
141
141
142
142
/**
143
- * Gets the node for option `name` for this instance, this does not include
143
+ * Gets the node for option `name` for this component, not including
144
144
* those from extended objects and mixins.
145
145
*/
146
146
DataFlow:: Node getOwnOption ( string name ) {
147
147
result = getOwnOptionsObject ( ) .getALocalSource ( ) .getAPropertyWrite ( name ) .getRhs ( )
148
148
}
149
149
150
150
/**
151
- * Gets the node for option `name` for this instance , including those from
151
+ * Gets the node for option `name` for this component , including those from
152
152
* extended objects and mixins.
153
153
*/
154
154
DataFlow:: Node getOption ( string name ) {
@@ -173,25 +173,25 @@ module Vue {
173
173
}
174
174
175
175
/**
176
- * Gets a source node flowing into the option `name` of this instance , including those from
176
+ * Gets a source node flowing into the option `name` of this component , including those from
177
177
* extended objects and mixins.
178
178
*/
179
179
pragma [ nomagic]
180
180
DataFlow:: SourceNode getOptionSource ( string name ) { result = getOption ( name ) .getALocalSource ( ) }
181
181
182
182
/**
183
- * Gets the template element used by this instance , if any.
183
+ * Gets the template element used by this component , if any.
184
184
*/
185
185
Template:: Element getTemplateElement ( ) { none ( ) } // overridden in subclasses
186
186
187
187
/**
188
- * Gets the node for the `data` option object of this instance .
188
+ * Gets the node for the `data` option object of this component .
189
189
*/
190
190
DataFlow:: Node getData ( ) {
191
191
exists ( DataFlow:: Node data | data = getOption ( "data" ) |
192
192
result = data
193
193
or
194
- // a constructor variant is available for all instance definitions
194
+ // a constructor variant is available for all component definitions
195
195
exists ( DataFlow:: FunctionNode f |
196
196
f .flowsTo ( data ) and
197
197
result = f .getAReturn ( )
@@ -204,13 +204,13 @@ module Vue {
204
204
}
205
205
206
206
/**
207
- * Gets the node for the `template` option of this instance .
207
+ * Gets the node for the `template` option of this component .
208
208
*/
209
209
pragma [ nomagic]
210
210
DataFlow:: SourceNode getTemplate ( ) { result = getOptionSource ( "template" ) }
211
211
212
212
/**
213
- * Gets the node for the `render` option of this instance .
213
+ * Gets the node for the `render` option of this component .
214
214
*/
215
215
pragma [ nomagic]
216
216
DataFlow:: SourceNode getRender ( ) {
@@ -220,19 +220,19 @@ module Vue {
220
220
}
221
221
222
222
/**
223
- * Gets the node for the `methods` option of this instance .
223
+ * Gets the node for the `methods` option of this component .
224
224
*/
225
225
pragma [ nomagic]
226
226
DataFlow:: SourceNode getMethods ( ) { result = getOptionSource ( "methods" ) }
227
227
228
228
/**
229
- * Gets the node for the `computed` option of this instance .
229
+ * Gets the node for the `computed` option of this component .
230
230
*/
231
231
pragma [ nomagic]
232
232
DataFlow:: SourceNode getComputed ( ) { result = getOptionSource ( "computed" ) }
233
233
234
234
/**
235
- * Gets the node for the `watch` option of this instance .
235
+ * Gets the node for the `watch` option of this component .
236
236
*/
237
237
pragma [ nomagic]
238
238
DataFlow:: SourceNode getWatch ( ) { result = getOptionSource ( "watch" ) }
@@ -249,7 +249,7 @@ module Vue {
249
249
}
250
250
251
251
/**
252
- * Gets a node for a member of the `methods` option of this instance .
252
+ * Gets a node for a member of the `methods` option of this component .
253
253
*/
254
254
pragma [ nomagic]
255
255
private DataFlow:: SourceNode getAMethod ( ) {
@@ -260,7 +260,7 @@ module Vue {
260
260
}
261
261
262
262
/**
263
- * Gets a node for a member of the `computed` option of this instance that matches `kind`.
263
+ * Gets a node for a member of the `computed` option of this component that matches `kind`.
264
264
*/
265
265
pragma [ nomagic]
266
266
private DataFlow:: SourceNode getAnAccessor ( DataFlow:: MemberKind kind ) {
@@ -273,7 +273,7 @@ module Vue {
273
273
}
274
274
275
275
/**
276
- * Gets a node for a member `name` of the `computed` option of this instance that matches `kind`.
276
+ * Gets a node for a member `name` of the `computed` option of this component that matches `kind`.
277
277
*/
278
278
private DataFlow:: SourceNode getAccessor ( string name , DataFlow:: MemberKind kind ) {
279
279
result = getComputed ( ) .getAPropertySource ( name ) and kind = DataFlow:: MemberKind:: getter ( )
@@ -285,7 +285,7 @@ module Vue {
285
285
}
286
286
287
287
/**
288
- * Gets the node for the life cycle hook of the `hookName` option of this instance .
288
+ * Gets the node for the life cycle hook of the `hookName` option of this component .
289
289
*/
290
290
pragma [ nomagic]
291
291
DataFlow:: SourceNode getALifecycleHook ( string hookName ) {
@@ -298,7 +298,7 @@ module Vue {
298
298
}
299
299
300
300
/**
301
- * Gets a node for a function that will be invoked with `this` bound to this instance .
301
+ * Gets a node for a function that will be invoked with `this` bound to this component .
302
302
*/
303
303
DataFlow:: FunctionNode getABoundFunction ( ) {
304
304
result = getAMethod ( )
@@ -325,7 +325,7 @@ module Vue {
325
325
}
326
326
327
327
/**
328
- * Gets the data flow node that flows into the property `name` of this instance , or is
328
+ * Gets the data flow node that flows into the property `name` of this component , or is
329
329
* returned form a getter defining that property.
330
330
*/
331
331
DataFlow:: Node getAPropertyValue ( string name ) {
@@ -339,7 +339,7 @@ module Vue {
339
339
}
340
340
341
341
/**
342
- * A Vue instance from `new Vue({...})`.
342
+ * A Vue component from `new Vue({...})`.
343
343
*/
344
344
class VueInstance extends Component , MkVueInstance {
345
345
DataFlow:: NewNode def ;
0 commit comments