Skip to content

Commit b1ea29c

Browse files
token, ast: remove @[minify] from structs with enum fields (#26661)
1 parent 345b29d commit b1ea29c

4 files changed

Lines changed: 0 additions & 54 deletions

File tree

‎vlib/v/ast/ast.v‎

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ pub:
250250
pos token.Pos
251251
}
252252

253-
@[minify]
254253
pub struct StringLiteral {
255254
pub:
256255
val string
@@ -302,7 +301,6 @@ pub enum GenericKindField {
302301
}
303302

304303
// `foo.bar`
305-
@[minify]
306304
pub struct SelectorExpr {
307305
pub:
308306
pos token.Pos
@@ -353,7 +351,6 @@ pub:
353351
pos token.Pos
354352
}
355353

356-
@[minify]
357354
pub struct StructField {
358355
pub:
359356
pos token.Pos
@@ -416,7 +413,6 @@ pub mut:
416413
}
417414

418415
// const declaration
419-
@[minify]
420416
pub struct ConstDecl {
421417
pub:
422418
is_pub bool
@@ -428,7 +424,6 @@ pub mut:
428424
is_block bool // const() block
429425
}
430426

431-
@[minify]
432427
pub struct StructDecl {
433428
pub:
434429
pos token.Pos
@@ -472,7 +467,6 @@ pub:
472467
comments []Comment
473468
}
474469

475-
@[minify]
476470
pub struct InterfaceDecl {
477471
pub:
478472
name string
@@ -516,7 +510,6 @@ pub mut:
516510
// ...a
517511
// field1: 'hello'
518512
// }`
519-
@[minify]
520513
pub struct StructInit {
521514
pub:
522515
pos token.Pos
@@ -581,7 +574,6 @@ pub mut:
581574
}
582575

583576
// function or method declaration
584-
@[minify]
585577
pub struct FnDecl {
586578
pub:
587579
name string // 'math.bits.normalize'
@@ -675,7 +667,6 @@ pub fn (f &FnDecl) new_method_with_receiver_type(new_type_ Type) FnDecl {
675667
}
676668
}
677669

678-
@[minify]
679670
pub struct FnTrace {
680671
pub mut:
681672
name string
@@ -687,7 +678,6 @@ pub:
687678
is_fn_var bool
688679
}
689680

690-
@[minify]
691681
pub struct Fn {
692682
pub:
693683
is_variadic bool
@@ -739,7 +729,6 @@ fn (f &Fn) method_equals(o &Fn) bool {
739729
&& f.name == o.name
740730
}
741731

742-
@[minify]
743732
pub struct Param {
744733
pub:
745734
pos token.Pos
@@ -805,7 +794,6 @@ fn (p []Param) equals(o []Param) bool {
805794
}
806795

807796
// break, continue
808-
@[minify]
809797
pub struct BranchStmt {
810798
pub:
811799
kind token.Kind
@@ -881,7 +869,6 @@ pub enum CallKind {
881869
}
882870

883871
// function or method call expr
884-
@[minify]
885872
pub struct CallExpr {
886873
pub:
887874
pos token.Pos
@@ -939,7 +926,6 @@ pub struct AutofreeArgVar {
939926
*/
940927

941928
// function call argument: `f(callarg)`
942-
@[minify]
943929
pub struct CallArg {
944930
pub:
945931
is_mut bool
@@ -977,7 +963,6 @@ pub enum ComptimeVarKind {
977963
aggregate // aggregate var
978964
}
979965

980-
@[minify]
981966
pub struct Var {
982967
pub:
983968
name string
@@ -1016,7 +1001,6 @@ pub mut:
10161001

10171002
// used for smartcasting only
10181003
// struct fields change type in scopes
1019-
@[minify]
10201004
pub struct ScopeStructField {
10211005
pub:
10221006
struct_type Type // type of struct
@@ -1031,7 +1015,6 @@ pub:
10311015
// 12 <- the current casted type (typ)
10321016
}
10331017

1034-
@[minify]
10351018
pub struct GlobalField {
10361019
pub:
10371020
name string
@@ -1066,7 +1049,6 @@ pub mut:
10661049
end_comments []Comment
10671050
}
10681051

1069-
@[minify]
10701052
pub struct EmbeddedFile {
10711053
pub:
10721054
compression_type string
@@ -1154,7 +1136,6 @@ pub mut:
11541136

11551137
// TODO: (joe) remove completely, use ident.obj
11561138
// instead which points to the scope object
1157-
@[minify]
11581139
pub struct IdentVar {
11591140
pub mut:
11601141
typ Type
@@ -1177,7 +1158,6 @@ pub enum IdentKind {
11771158
}
11781159

11791160
// A single identifier
1180-
@[minify]
11811161
pub struct Ident {
11821162
pub:
11831163
language Language
@@ -1239,7 +1219,6 @@ pub fn (i &Ident) var_info() IdentVar {
12391219

12401220
// left op right
12411221
// See: token.Kind.is_infix
1242-
@[minify]
12431222
pub struct InfixExpr {
12441223
pub:
12451224
op token.Kind
@@ -1278,7 +1257,6 @@ pub mut:
12781257
}
12791258

12801259
// See: token.Kind.is_prefix
1281-
@[minify]
12821260
pub struct PrefixExpr {
12831261
pub:
12841262
op token.Kind
@@ -1290,7 +1268,6 @@ pub mut:
12901268
is_option bool // IfGuard
12911269
}
12921270

1293-
@[minify]
12941271
pub struct IndexExpr {
12951272
pub:
12961273
pos token.Pos
@@ -1309,7 +1286,6 @@ pub mut:
13091286
typ Type
13101287
}
13111288

1312-
@[minify]
13131289
pub struct IfExpr {
13141290
pub:
13151291
is_comptime bool
@@ -1357,7 +1333,6 @@ pub mut:
13571333
scope &Scope = unsafe { nil }
13581334
}
13591335

1360-
@[minify]
13611336
pub struct MatchExpr {
13621337
pub:
13631338
is_comptime bool
@@ -1399,7 +1374,6 @@ pub mut:
13991374
expected_type Type // for debugging only
14001375
}
14011376

1402-
@[minify]
14031377
pub struct SelectBranch {
14041378
pub:
14051379
pos token.Pos
@@ -1447,7 +1421,6 @@ pub mut:
14471421
scope &Scope = unsafe { nil }
14481422
}
14491423

1450-
@[minify]
14511424
pub struct ForInStmt {
14521425
pub:
14531426
key_var string
@@ -1509,7 +1482,6 @@ pub mut:
15091482
}
15101483

15111484
// variable assign statement
1512-
@[minify]
15131485
pub struct AssignStmt {
15141486
pub:
15151487
op token.Kind // include: =,:=,+=,-=,*=,/= and so on; for a list of all the assign operators, see vlib/token/token.v
@@ -1566,7 +1538,6 @@ pub mut:
15661538
}
15671539

15681540
// enum declaration
1569-
@[minify]
15701541
pub struct EnumDecl {
15711542
pub:
15721543
name string
@@ -1636,7 +1607,6 @@ pub enum DeferMode {
16361607
// TODO: handle this differently
16371608
// v1 excludes non current os ifdefs so
16381609
// the defer's never get added in the first place
1639-
@[minify]
16401610
pub struct DeferStmt {
16411611
pub:
16421612
pos token.Pos
@@ -1658,7 +1628,6 @@ pub mut:
16581628
comments []Comment
16591629
}
16601630

1661-
@[minify]
16621631
pub struct GoExpr {
16631632
pub:
16641633
pos token.Pos
@@ -1667,7 +1636,6 @@ pub mut:
16671636
is_expr bool
16681637
}
16691638

1670-
@[minify]
16711639
pub struct SpawnExpr {
16721640
pub:
16731641
pos token.Pos
@@ -1690,7 +1658,6 @@ pub:
16901658
pos token.Pos
16911659
}
16921660

1693-
@[minify]
16941661
pub struct ArrayInit {
16951662
pub:
16961663
pos token.Pos // `[]` in []Type{} position
@@ -1738,7 +1705,6 @@ pub mut:
17381705
elem_type Type
17391706
}
17401707

1741-
@[minify]
17421708
pub struct MapInit {
17431709
pub:
17441710
pos token.Pos
@@ -1758,7 +1724,6 @@ pub mut:
17581724
}
17591725

17601726
// s[10..20]
1761-
@[minify]
17621727
pub struct RangeExpr {
17631728
pub:
17641729
has_high bool
@@ -1771,7 +1736,6 @@ pub mut:
17711736
typ Type // filled in by checker; the type of `0...1` is `int` for example, while `a`...`z` is `rune` etc
17721737
}
17731738

1774-
@[minify]
17751739
pub struct CastExpr {
17761740
pub mut:
17771741
arg Expr // `n` in `string(buf, n)`
@@ -1783,7 +1747,6 @@ pub mut:
17831747
pos token.Pos
17841748
}
17851749

1786-
@[minify]
17871750
pub struct AsmStmt {
17881751
pub:
17891752
arch pref.Arch
@@ -1801,7 +1764,6 @@ pub mut:
18011764
local_labels []string // local to the assembly block
18021765
}
18031766

1804-
@[minify]
18051767
pub struct AsmTemplate {
18061768
pub mut:
18071769
name string
@@ -1989,7 +1951,6 @@ pub:
19891951
}
19901952

19911953
// `assert a == 0, 'a is zero'`
1992-
@[minify]
19931954
pub struct AssertStmt {
19941955
pub:
19951956
pos token.Pos
@@ -2046,7 +2007,6 @@ pub:
20462007
*/
20472008

20482009
// deprecated
2049-
@[minify]
20502010
pub struct Assoc {
20512011
pub:
20522012
var_name string
@@ -2078,7 +2038,6 @@ pub mut:
20782038
typ Type
20792039
}
20802040

2081-
@[minify]
20822041
pub struct OffsetOf {
20832042
pub:
20842043
struct_type Type
@@ -2109,7 +2068,6 @@ pub mut:
21092068
expr Expr
21102069
}
21112070

2112-
@[minify]
21132071
pub struct TypeOf {
21142072
pub:
21152073
is_type bool
@@ -2119,7 +2077,6 @@ pub mut:
21192077
typ Type
21202078
}
21212079

2122-
@[minify]
21232080
pub struct DumpExpr {
21242081
pub:
21252082
pos token.Pos
@@ -2154,7 +2111,6 @@ pub mut:
21542111
val string
21552112
}
21562113

2157-
@[minify]
21582114
pub struct ComptimeSelector {
21592115
pub:
21602116
has_parens bool // if $() is used, for vfmt
@@ -2183,7 +2139,6 @@ pub enum ComptimeCallKind {
21832139
compile_error
21842140
}
21852141

2186-
@[minify]
21872142
pub struct ComptimeCall {
21882143
pub:
21892144
pos token.Pos

‎vlib/v/ast/attr.v‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ pub enum AttrKind {
1414
}
1515

1616
// e.g. `@[unsafe]`
17-
@[minify]
1817
pub struct Attr {
1918
pub:
2019
name string // [name]

0 commit comments

Comments
 (0)