Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- UseStmt {
- path: PathExpr {
- path: [
- "std",
- "fs",
- "File",
- ],
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 1,
- starting_line_offset: 4,
- starting_line_end_offset: 6,
- ending_line: 1,
- ending_line_offset: 17,
- ending_line_end_offset: 17,
- },
- },
- visibility: NotPub,
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 1,
- starting_line_offset: 0,
- starting_line_end_offset: 2,
- ending_line: 3,
- ending_line_offset: 0,
- ending_line_end_offset: 1,
- },
- },
- FnStmt {
- prototype: hello ([f: VariableExpr { name: "File", span: Span { file_name: "examples/simple.rig", starting_line: 3, starting_line_offset: 16, starting_line_end_offset: 16, ending_line: 3, ending_line_offset: 16, ending_line_end_offset: 16 } }]) -> None,
- body: BlockStmt {
- exprs: [
- LetStmt {
- name: "x",
- ty: Some(
- VariableExpr {
- name: "File",
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 16,
- starting_line_end_offset: 16,
- ending_line: 4,
- ending_line_offset: 16,
- ending_line_end_offset: 16,
- },
- },
- ),
- value: BinaryExpr {
- lhs: GroupingExpr {
- expr: BinaryExpr {
- lhs: IntegerLiteralExpr {
- value: 2,
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 19,
- starting_line_end_offset: 19,
- ending_line: 4,
- ending_line_offset: 19,
- ending_line_end_offset: 19,
- },
- },
- op: Multiply,
- rhs: IntegerLiteralExpr {
- value: 3,
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 21,
- starting_line_end_offset: 21,
- ending_line: 4,
- ending_line_offset: 21,
- ending_line_end_offset: 21,
- },
- },
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 19,
- starting_line_end_offset: 19,
- ending_line: 4,
- ending_line_offset: 21,
- ending_line_end_offset: 21,
- },
- },
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 22,
- starting_line_end_offset: 22,
- ending_line: 4,
- ending_line_offset: 22,
- ending_line_end_offset: 22,
- },
- },
- op: Multiply,
- rhs: AssignmentExpr {
- name: "x",
- value: BinaryExpr {
- lhs: IntegerLiteralExpr {
- value: 1,
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 30,
- starting_line_end_offset: 30,
- ending_line: 4,
- ending_line_offset: 30,
- ending_line_end_offset: 30,
- },
- },
- op: Multiply,
- rhs: IntegerLiteralExpr {
- value: 2,
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 34,
- starting_line_end_offset: 34,
- ending_line: 4,
- ending_line_offset: 34,
- ending_line_end_offset: 34,
- },
- },
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 30,
- starting_line_end_offset: 30,
- ending_line: 4,
- ending_line_offset: 34,
- ending_line_end_offset: 34,
- },
- },
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 28,
- starting_line_end_offset: 28,
- ending_line: 4,
- ending_line_offset: 34,
- ending_line_end_offset: 34,
- },
- },
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 18,
- starting_line_end_offset: 18,
- ending_line: 4,
- ending_line_offset: 34,
- ending_line_end_offset: 34,
- },
- },
- visibility: NotPub,
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 3,
- starting_line_offset: 18,
- starting_line_end_offset: 18,
- ending_line: 4,
- ending_line_offset: 35,
- ending_line_end_offset: 35,
- },
- },
- LetStmt {
- name: "y",
- ty: Some(
- VariableExpr {
- name: "YetAnotherType",
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 5,
- starting_line_offset: 26,
- starting_line_end_offset: 26,
- ending_line: 5,
- ending_line_offset: 26,
- ending_line_end_offset: 26,
- },
- },
- ),
- value: BinaryExpr {
- lhs: VariableExpr {
- name: "x",
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 5,
- starting_line_offset: 30,
- starting_line_end_offset: 30,
- ending_line: 5,
- ending_line_offset: 30,
- ending_line_end_offset: 30,
- },
- },
- op: Plus,
- rhs: IntegerLiteralExpr {
- value: 1,
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 5,
- starting_line_offset: 32,
- starting_line_end_offset: 32,
- ending_line: 5,
- ending_line_offset: 32,
- ending_line_end_offset: 32,
- },
- },
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 5,
- starting_line_offset: 28,
- starting_line_end_offset: 28,
- ending_line: 5,
- ending_line_offset: 32,
- ending_line_end_offset: 32,
- },
- },
- visibility: NotPub,
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 4,
- starting_line_offset: 35,
- starting_line_end_offset: 35,
- ending_line: 5,
- ending_line_offset: 33,
- ending_line_end_offset: 33,
- },
- },
- LetStmt {
- name: "NoTypeAnnotation",
- ty: None,
- value: AssignmentExpr {
- name: "y",
- value: VariableExpr {
- name: "x",
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 6,
- starting_line_offset: 32,
- starting_line_end_offset: 32,
- ending_line: 6,
- ending_line_offset: 32,
- ending_line_end_offset: 32,
- },
- },
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 6,
- starting_line_offset: 29,
- starting_line_end_offset: 29,
- ending_line: 6,
- ending_line_offset: 31,
- ending_line_end_offset: 31,
- },
- },
- visibility: NotPub,
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 5,
- starting_line_offset: 33,
- starting_line_end_offset: 33,
- ending_line: 6,
- ending_line_offset: 32,
- ending_line_end_offset: 32,
- },
- },
- ],
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 3,
- starting_line_offset: 18,
- starting_line_end_offset: 18,
- ending_line: 7,
- ending_line_offset: 0,
- ending_line_end_offset: 0,
- },
- },
- visibility: NotPub,
- span: Span {
- file_name: "examples/simple.rig",
- starting_line: 3,
- starting_line_offset: 0,
- starting_line_end_offset: 1,
- ending_line: 7,
- ending_line_offset: 0,
- ending_line_end_offset: 0,
- },
- },
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement