---
source: crates/aiken-lang/src/parser/definition/function.rs
description: "Code:\n\nfn run() {\n  let x = 1 + 1\n}\n"
---
Fn(
    Function {
        arguments: [],
        body: Assignment {
            location: 13..26,
            value: BinOp {
                location: 21..26,
                name: AddInt,
                left: UInt {
                    location: 21..22,
                    value: "1",
                    base: Decimal {
                        numeric_underscore: false,
                    },
                },
                right: UInt {
                    location: 25..26,
                    value: "1",
                    base: Decimal {
                        numeric_underscore: false,
                    },
                },
            },
            patterns: [
                AssignmentPattern {
                    pattern: Var {
                        location: 17..18,
                        name: "x",
                    },
                    annotation: None,
                    location: 17..18,
                },
            ],
            kind: Let {
                backpassing: false,
            },
        },
        doc: None,
        location: 0..8,
        name: "run",
        public: false,
        return_annotation: None,
        return_type: (),
        end_position: 27,
        on_test_failure: FailImmediately,
    },
)
