1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: format long sum-types with a line for each type (#11461)

This commit is contained in:
Enzo
2021-09-10 19:56:55 +02:00
committed by GitHub
parent 5c4385a472
commit c8471528ce
8 changed files with 182 additions and 34 deletions

View File

@ -0,0 +1,13 @@
import v.ast
type ManyExpr = ast.AnonFn
| ast.ArrayDecompose
| ast.ArrayInit
| ast.AsCast
| ast.AtExpr
| ast.BoolLiteral
| ast.CTempVar
| ast.CallExpr
| ast.CastExpr
type SomeStmt = ast.AsmStmt | ast.AssertStmt

View File

@ -0,0 +1,6 @@
import v.ast
type ManyExpr = ast.AnonFn | ast.ArrayDecompose | ast.ArrayInit | ast.AsCast | ast.AtExpr | ast.BoolLiteral | ast.CTempVar | ast.CallExpr | ast.CastExpr
type SomeStmt = ast.AsmStmt
| ast.AssertStmt