@@ -183,7 +183,9 @@ export interface DirectiveNode extends Node {
183
183
exp : ExpressionNode | undefined
184
184
arg : ExpressionNode | undefined
185
185
modifiers : string [ ]
186
- // optional property to cache the expression parse result for v-for
186
+ /**
187
+ * optional property to cache the expression parse result for v-for
188
+ */
187
189
parseResult ?: ForParseResult
188
190
}
189
191
@@ -192,11 +194,15 @@ export interface SimpleExpressionNode extends Node {
192
194
content : string
193
195
isStatic : boolean
194
196
isConstant : boolean
195
- // an expression parsed as the params of a function will track
196
- // the identifiers declared inside the function body.
197
+ /**
198
+ * an expression parsed as the params of a function will track
199
+ * the identifiers declared inside the function body.
200
+ */
197
201
identifiers ?: string [ ]
198
- // some expressions (e.g. transformAssetUrls import identifiers) are constant,
199
- // but cannot be stringified because they must be first evaluated at runtime.
202
+ /**
203
+ * some expressions (e.g. transformAssetUrls import identifiers) are constant,
204
+ * but cannot be stringified because they must be first evaluated at runtime.
205
+ */
200
206
isRuntimeConstant ?: boolean
201
207
}
202
208
@@ -214,8 +220,11 @@ export interface CompoundExpressionNode extends Node {
214
220
| TextNode
215
221
| string
216
222
| symbol ) [ ]
217
- // an expression parsed as the params of a function will track
218
- // the identifiers declared inside the function body.
223
+
224
+ /**
225
+ * an expression parsed as the params of a function will track
226
+ * the identifiers declared inside the function body.
227
+ */
219
228
identifiers ?: string [ ]
220
229
}
221
230
@@ -322,7 +331,10 @@ export interface FunctionExpression extends Node {
322
331
returns ?: TemplateChildNode | TemplateChildNode [ ] | JSChildNode
323
332
body ?: BlockStatement | IfStatement
324
333
newline : boolean
325
- // so that codegen knows it needs to generate ScopeId wrapper
334
+ /**
335
+ * This flag is for codegen to determine whether it needs to generate the
336
+ * withScopeId() wrapper
337
+ */
326
338
isSlot : boolean
327
339
}
328
340
0 commit comments