This repository was archived by the owner on Mar 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,27 @@ var casesToNode = []struct {
71
71
KeyEnd : expPos (4 , 2 , 2 ),
72
72
},
73
73
},
74
+ {
75
+ name : "Bool" ,
76
+ obj : Bool {
77
+ GenNode : GenNode {
78
+ Positions : Positions {
79
+ KeyStart : {Offset : 3 , Line : 2 , Col : 1 },
80
+ KeyEnd : {Offset : 8 , Line : 2 , Col : 6 },
81
+ },
82
+ },
83
+ Value : true ,
84
+ },
85
+ exp : nodes.Object {
86
+ KeyType : nodes .String ("uast:Bool" ),
87
+ KeyPos : nodes.Object {
88
+ KeyType : nodes .String (TypePositions ),
89
+ KeyStart : expPos (3 , 2 , 1 ),
90
+ KeyEnd : expPos (8 , 2 , 6 ),
91
+ },
92
+ "Value" : nodes .Bool (true ),
93
+ },
94
+ },
74
95
{
75
96
name : "Alias" ,
76
97
obj : Alias {
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ func init() {
31
31
GenNode {},
32
32
Identifier {},
33
33
String {},
34
+ Bool {},
34
35
QualifiedIdentifier {},
35
36
Comment {},
36
37
Group {},
@@ -584,3 +585,9 @@ type Function struct {
584
585
// TODO: we don't have return statements yet
585
586
Body * Block `json:"Body"`
586
587
}
588
+
589
+ // Bool is a boolean literal.
590
+ type Bool struct {
591
+ GenNode
592
+ Value bool `json:"Value"`
593
+ }
You can’t perform that action at this time.
0 commit comments