File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ extension PrecedenceGroup {
23
23
switch attr {
24
24
// Relation (lowerThan, higherThan)
25
25
case . precedenceGroupRelation( let relation) :
26
- let isLowerThan = relation. higherThanOrLowerThanLabel. text == " lowerThan "
26
+ let isLowerThan = relation. higherThanOrLowerThanLabel. tokenKind == . keyword ( . lowerThan)
27
27
for otherGroup in relation. precedenceGroups {
28
28
let otherGroupName = otherGroup. name. text
29
29
let relationKind : PrecedenceRelation . Kind =
@@ -40,18 +40,18 @@ extension PrecedenceGroup {
40
40
41
41
// Assignment
42
42
case . precedenceGroupAssignment( let assignment) :
43
- self . assignment = assignment. value. text == " true "
43
+ self . assignment = assignment. value. tokenKind == . keyword ( . true )
44
44
45
45
// Associativity
46
46
case . precedenceGroupAssociativity( let associativity) :
47
- switch associativity. value. text {
48
- case " left " :
47
+ switch associativity. value. tokenKind {
48
+ case . keyword ( . left) :
49
49
self . associativity = . left
50
50
51
- case " right " :
51
+ case . keyword ( . right) :
52
52
self . associativity = . right
53
53
54
- case " none " :
54
+ case . keyword ( . none) :
55
55
self . associativity = . none
56
56
57
57
default :
You can’t perform that action at this time.
0 commit comments