Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "config", default: None, }, ], }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 2, column: 3, }, end: Position { line: 2, column: 10, }, }, }, ), Raw( PartRaw { content: "foo", span: Span { start: Position { line: 2, column: 11, }, end: Position { line: 2, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 2, column: 17, }, end: Position { line: 2, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 2, column: 21, }, end: Position { line: 2, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 3, column: 5, }, end: Position { line: 3, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 12, }, end: Position { line: 3, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "types", span: Span { start: Position { line: 3, column: 16, }, end: Position { line: 3, column: 21, }, }, }, ), Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 3, column: 22, }, end: Position { line: 3, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 29, }, end: Position { line: 3, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "types", span: Span { start: Position { line: 3, column: 33, }, end: Position { line: 3, column: 38, }, }, }, ), Raw( PartRaw { content: "str", span: Span { start: Position { line: 3, column: 39, }, end: Position { line: 3, column: 42, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 4, column: 5, }, end: Position { line: 4, column: 12, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 4, column: 15, }, end: Position { line: 4, column: 19, }, }, }, ), }, ), ], span: Span { start: Position { line: 2, column: 30, }, end: Position { line: 5, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 9, }, }, }, ), Raw( PartRaw { content: "foo", span: Span { start: Position { line: 7, column: 10, }, end: Position { line: 7, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkIf", span: Span { start: Position { line: 7, column: 20, }, end: Position { line: 7, column: 24, }, }, }, ), ], default: None, }, ), arguments: [ HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 7, column: 26, }, end: Position { line: 7, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 7, column: 35, }, end: Position { line: 7, column: 40, }, }, }, ), ], }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 7, column: 42, }, end: Position { line: 7, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 7, column: 49, }, end: Position { line: 7, column: 54, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 1, column: 23, }, end: Position { line: 8, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 8, column: 2, }, }, }, )