summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCpp/Tests/parser/local-vars.ast
blob: c8d0fbaf07c6ea2170d3084140c248338d01030d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
TranslationUnit[1:0->7:0]
  FunctionDeclaration[1:0->7:0]
    NamedType[1:0->1:2]
      int
    foo
    (
    )
    FunctionDefinition[2:0->7:0]
    {
      VariableDeclaration[3:4->3:9]
        NamedType[3:4->3:6]
          int
        x
      VariableDeclaration[4:4->4:16]
        NamedType[4:4->4:9]
          double
        y
        NumericLiteral[4:15->4:15]
        2
      VariableDeclaration[5:4->5:20]
        NamedType[5:4->5:9]
          double
        z
        BinaryExpression[5:15->5:19]
          Name[5:15->5:15]
          x
          +
          Name[5:19->5:19]
          y
      ReturnStatement[6:4->6:12]
        Name[6:11->6:11]
        z
    }