Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6014008

Browse filesBrowse files
committed
add VGenericExpression to ast.md
1 parent a2d5182 commit 6014008
Copy full SHA for 6014008

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎docs/ast.md

Copy file name to clipboardExpand all lines: docs/ast.md
+6Lines changed: 6 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.