Commit c6b98aa
authored
[WATParser] Do not clear earlier annotations when lexing annotations (#9143)
Lexer::takeAnnotation called takeKeyword and takeLParen, which are
public token methods that call advance(). Calling advance() executes
annotations.clear(), wiping out any earlier annotations already
collected during the same skipSpace() pass whenever a subsequent
annotation contains a keyword or nested parenthesis. Use peekKeyword() +
take() and takePrefix() instead.1 parent 1447734 commit c6b98aa
2 files changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
1116 | | - | |
1117 | | - | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1118 | 1124 | | |
1119 | 1125 | | |
1120 | 1126 | | |
| |||
1130 | 1136 | | |
1131 | 1137 | | |
1132 | 1138 | | |
1133 | | - | |
| 1139 | + | |
| 1140 | + | |
1134 | 1141 | | |
1135 | 1142 | | |
1136 | 1143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | | - | |
951 | | - | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
952 | 954 | | |
953 | 955 | | |
954 | 956 | | |
955 | | - | |
| 957 | + | |
956 | 958 | | |
957 | 959 | | |
| 960 | + | |
958 | 961 | | |
959 | 962 | | |
960 | 963 | | |
| |||
0 commit comments