josh11b
b7d129b88c
Add PushState overload to combine Parse::State change with StateStackEntry ( #3485 )
...
Shortens a common `PushState` pattern
2023-12-08 23:58:30 +00:00
Geoff Romer and Richard Smith
6e65a30b5d
Rename ParamList to TuplePattern ( #3479 )
...
Co-authored-by: Richard Smith <richard@metafoo.co.uk >
2023-12-08 23:35:47 +00:00
Richard Smith
fe6f7b4330
Rename Name -> IdentifierName given that we have several other kinds of parse nodes that represent names. ( #3453 )
...
Factor out common checking handling for the different kinds of
unqualified names
2023-12-07 01:48:14 +00:00
Richard Smith
eae630a3db
Rename Lex::{Token,Line} -> Lex::{Token,Line}Index. ( #3433 )
...
As discussed [on
discord](https://discord.com/channels/655572317891461132/655578254970716160/1178878128714678282 )
and today's toolchain discussion.
2023-11-29 20:33:58 +00:00
Jon Ross-Perkins
3f208e27f9
Align on FileStart/FileEnd for naming. ( #3428 )
...
The lexer has been using EndOfFile form (stemming from EOF), parser went
to FileEnd form. This consolidates on FileEnd form.
2023-11-29 16:36:57 +00:00
Chandler Carruth
d3eae6d1f0
Fix a crash on invalid found by fuzzing. ( #3404 )
...
When a `namespace` keyword has no `;` following it, we recover by
building a parse tree `Namespace` node from the `Namespace` token (as
there isn't a `;` token). Allow this correspondence on errors.
Also teach the diagnostics in this case to avoid the end-of-file token
as that's almost always going to be a less meaningful location. Instead,
we can point at the introducer which should at least be in the code that
led to the error.
2023-11-16 18:26:39 +00:00
josh11b and Jon Ross-Perkins
c53b248800
Abbreviate "parameter" -> "param" ( #3392 )
...
Part of switching to the [abbreviations we've decided to
use](https://docs.google.com/document/d/1RRYMm42osyqhI2LyjrjockYCutQ5dOf8Abu50kTrkX0/edit?resourcekey=0-kHyqOESbOHmzZphUbtLrTw#heading=h.pph7i5m5un7q ).
I will rename files in a follow-up PR.
---------
Co-authored-by: Jon Ross-Perkins <jperkins@google.com >
2023-11-13 19:06:54 +00:00
josh11b
109e7889dd
Rename files to use abbreviations ( #3389 )
...
Reflects these recent PRs:
* #3375
* #3382
2023-11-11 00:25:40 +00:00