1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 11:44:58 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Tests
Dan Klishch b74df136fe JSSpecCompiler: Always treat trailing MemberAccess as punctuation
Due to the way expression parser is written, we need to resolve the
ambiguity between member access operators and dots used for punctuation
during lexing. The lexer uses a (totally bulletproof) heuristic to do
that: whenever '.' is followed by ' ' or '\n', it is considered a dot
and member access otherwise. While it works fine for prettified test
cases, non-prettified files often lack enter after a trailing dot
character. Since MemberAccess will always be invalid at that position,
explicitly treat trailing dot as a part of punctuation.
2024-01-21 14:57:10 -07:00
..
simple.cpp JSSpecCompiler: Add our first test :^) 2023-12-07 10:13:21 -07:00
simple.cpp.expectation JSSpecCompiler: Store arguments in declaration instead of definition 2024-01-21 14:57:10 -07:00
spec-no-new-line-after-dot.xml JSSpecCompiler: Always treat trailing MemberAccess as punctuation 2024-01-21 14:57:10 -07:00
spec-no-new-line-after-dot.xml.expectation JSSpecCompiler: Always treat trailing MemberAccess as punctuation 2024-01-21 14:57:10 -07:00
spec-single-function-simple.xml JSSpecCompiler: Recurse into the correct subtrees in RecursiveASTVisitor 2024-01-21 14:57:10 -07:00
spec-single-function-simple.xml.expectation JSSpecCompiler: Recurse into the correct subtrees in RecursiveASTVisitor 2024-01-21 14:57:10 -07:00