mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
LibCpp: Move parser tests to Userland/Libraries/LibCpp/Tests/parser
This commit is contained in:
parent
fd864fbb74
commit
a38c330c68
16 changed files with 4 additions and 4 deletions
33
Userland/Libraries/LibCpp/Tests/parser/local-vars.ast
Normal file
33
Userland/Libraries/LibCpp/Tests/parser/local-vars.ast
Normal file
|
@ -0,0 +1,33 @@
|
|||
TranslationUnit[1:0->7:0]
|
||||
FunctionDeclaration[1:0->7:0]
|
||||
NamedType[1:0->1:4]
|
||||
int
|
||||
foo
|
||||
(
|
||||
)
|
||||
FunctionDefinition[2:0->7:0]
|
||||
{
|
||||
VariableDeclaration[3:4->3:9]
|
||||
NamedType[3:4->3:8]
|
||||
int
|
||||
x
|
||||
VariableDeclaration[4:4->4:16]
|
||||
NamedType[4:4->4:11]
|
||||
double
|
||||
y
|
||||
NumericLiteral[4:15->4:15]
|
||||
2
|
||||
VariableDeclaration[5:4->5:20]
|
||||
NamedType[5:4->5:11]
|
||||
double
|
||||
z
|
||||
BinaryExpression[5:15->5:20]
|
||||
Name[5:15->5:17]
|
||||
x
|
||||
+
|
||||
Name[5:19->5:20]
|
||||
y
|
||||
ReturnStatement[6:4->6:12]
|
||||
Name[6:11->6:12]
|
||||
z
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue