@@ -86,7 +86,7 @@ module Vue {
86
86
/**
87
87
* A class with a `@Component` decorator, making it usable as an "options" object in Vue.
88
88
*/
89
- private class ClassComponent extends DataFlow:: ClassNode {
89
+ class ClassComponent extends DataFlow:: ClassNode {
90
90
DataFlow:: Node decorator ;
91
91
92
92
ClassComponent ( ) {
@@ -102,12 +102,12 @@ module Vue {
102
102
}
103
103
104
104
/**
105
- * Gets an option passed to the `@Component` decorator.
105
+ * Gets the options object passed to the `@Component` decorator, if any .
106
106
*
107
107
* These options correspond to the options one would pass to `new Vue({...})` or similar.
108
108
*/
109
- DataFlow :: Node getDecoratorOption ( string name ) {
110
- result = decorator .( DataFlow :: CallNode ) .getOptionArgument ( 0 , name )
109
+ API :: Node getDecoratorOptions ( ) {
110
+ result = decorator .( API :: CallNode ) .getParameter ( 0 )
111
111
}
112
112
}
113
113
@@ -187,6 +187,8 @@ module Vue {
187
187
result = getOwnOptions ( ) .getMember ( [ "extends" , "mixins" ] ) .getAMember ( )
188
188
or
189
189
result = getABaseComponent ( ) .getOptions ( )
190
+ or
191
+ result = getAsClassComponent ( ) .getDecoratorOptions ( )
190
192
}
191
193
192
194
/**
@@ -219,9 +221,6 @@ module Vue {
219
221
*/
220
222
DataFlow:: Node getOption ( string name ) {
221
223
result = getOptions ( ) .getMember ( name ) .getARhs ( )
222
- or
223
- // not ported to API graphs yet
224
- result = getAsClassComponent ( ) .getDecoratorOption ( name )
225
224
}
226
225
227
226
/**
0 commit comments