@@ -60,10 +60,10 @@ module Vue {
60
60
/** A component created by an explicit or implicit call to `Vue.extend`. */
61
61
private newtype TComponent =
62
62
MkComponentExtension ( VueExtendCall extend ) or
63
- MkComponentInstantiation ( API:: NewNode sub ) {
64
- sub = component ( ) .getAnInstantiation ( )
63
+ MkComponentInstantiation ( API:: NewNode sub ) { sub = component ( ) .getAnInstantiation ( ) } or
64
+ MkComponentRegistration ( API:: CallNode def ) {
65
+ def = vueLibrary ( ) .getMember ( "component" ) .getACall ( )
65
66
} or
66
- MkComponentRegistration ( API:: CallNode def ) { def = vueLibrary ( ) .getMember ( "component" ) .getACall ( ) } or
67
67
MkSingleFileComponent ( VueFile file )
68
68
69
69
/** Gets the name of a lifecycle hook method. */
@@ -106,9 +106,7 @@ module Vue {
106
106
*
107
107
* These options correspond to the options one would pass to `new Vue({...})` or similar.
108
108
*/
109
- API:: Node getDecoratorOptions ( ) {
110
- result = decorator .( API:: CallNode ) .getParameter ( 0 )
111
- }
109
+ API:: Node getDecoratorOptions ( ) { result = decorator .( API:: CallNode ) .getParameter ( 0 ) }
112
110
}
113
111
114
112
private string memberKindVerb ( DataFlow:: MemberKind kind ) {
@@ -174,7 +172,8 @@ module Vue {
174
172
175
173
/** Gets a component which is extended by this one. */
176
174
Component getABaseComponent ( ) {
177
- result .getComponentRef ( ) .getAUse ( ) = getOwnOptions ( ) .getMember ( [ "extends" , "mixins" ] ) .getARhs ( )
175
+ result .getComponentRef ( ) .getAUse ( ) =
176
+ getOwnOptions ( ) .getMember ( [ "extends" , "mixins" ] ) .getARhs ( )
178
177
}
179
178
180
179
/**
@@ -211,17 +210,13 @@ module Vue {
211
210
* Gets the node for option `name` for this component, not including
212
211
* those from extended objects and mixins.
213
212
*/
214
- DataFlow:: Node getOwnOption ( string name ) {
215
- result = getOwnOptions ( ) .getMember ( name ) .getARhs ( )
216
- }
213
+ DataFlow:: Node getOwnOption ( string name ) { result = getOwnOptions ( ) .getMember ( name ) .getARhs ( ) }
217
214
218
215
/**
219
216
* Gets the node for option `name` for this component, including those from
220
217
* extended objects and mixins.
221
218
*/
222
- DataFlow:: Node getOption ( string name ) {
223
- result = getOptions ( ) .getMember ( name ) .getARhs ( )
224
- }
219
+ DataFlow:: Node getOption ( string name ) { result = getOptions ( ) .getMember ( name ) .getARhs ( ) }
225
220
226
221
/**
227
222
* Gets a source node flowing into the option `name` of this component, including those from
@@ -331,9 +326,7 @@ module Vue {
331
326
/**
332
327
* Gets a reference to `this` inside the component, referring to an instance of the component.
333
328
*/
334
- DataFlow:: SourceNode getASelfRef ( ) {
335
- result = getABoundFunction ( ) .getReceiver ( )
336
- }
329
+ DataFlow:: SourceNode getASelfRef ( ) { result = getABoundFunction ( ) .getReceiver ( ) }
337
330
338
331
pragma [ noinline]
339
332
private DataFlow:: PropWrite getAPropertyValueWrite ( string name ) {
@@ -439,7 +432,8 @@ module Vue {
439
432
deprecated class ExtendedInstance extends Component {
440
433
ExtendedInstance ( ) {
441
434
// restrict charpred to match original behavior
442
- this = MkComponentInstantiation ( vueLibrary ( ) .getMember ( "extend" ) .getReturn ( ) .getAnInstantiation ( ) )
435
+ this =
436
+ MkComponentInstantiation ( vueLibrary ( ) .getMember ( "extend" ) .getReturn ( ) .getAnInstantiation ( ) )
443
437
}
444
438
}
445
439
@@ -486,9 +480,7 @@ module Vue {
486
480
)
487
481
}
488
482
489
- override DataFlow:: Node getARhs ( ) {
490
- none ( )
491
- }
483
+ override DataFlow:: Node getARhs ( ) { none ( ) }
492
484
}
493
485
494
486
/**
0 commit comments