Skip to content

Commit 6014008

Browse files
committed
add VGenericExpression to ast.md
1 parent a2d5182 commit 6014008

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: docs/ast.md

+6
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ interface VSlotScopeExpression <: Expression {
111111
params: [ Pattern | RestElement ]
112112
}
113113

114+
interface VGenericExpression <: Expression {
115+
type: "VGenericExpression"
116+
params: [ TSTypeParameter ]
117+
}
118+
114119
interface VFilterSequenceExpression <: Expression {
115120
type: "VFilterSequenceExpression"
116121
expression: Expression
@@ -132,6 +137,7 @@ interface VFilter <: Node {
132137
- `VForExpression` is an expression node like [ForInStatement] but it has an array as `left` property and does not have `body` property. This is the value of [`v-for` directives].
133138
- `VOnExpression` is an expression node like [BlockStatement] but it does not have braces. This is the value of [`v-on` directives] only if the `v-on` directive doesn't have that argument.
134139
- `VSlotScopeExpression` is an expression node like [VariableDeclarator]. This is the value of [`v-slot` directives], [`slot-scope` attributes], and `scope` attributes.
140+
- `VGenericExpression` is an expression node like typescript-eslint's TSTypeParameterDeclaration. This is the value of [the `generic` attributes on the `<script>` tag](https://vuejs.org/api/sfc-script-setup.html#generics).
135141
- `VFilterSequenceExpression` is an expression node for [Vue.js Filters](https://vuejs.org/v2/guide/filters.html) syntax.
136142

137143
> Note: `vue-eslint-parser` transforms `v-for="(x, i) in list"` to `for(let [x, i] in list);` then gives the configured parser (`espree` by default) it. This implies that it needs the capability to parse ES2015 destructuring in order to parse [`v-for` directives].

0 commit comments

Comments
 (0)