Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: Map( Map { recursive: true, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "addMetaAttrs", span: Span { start: Position { line: 15, column: 3, }, end: Position { line: 15, column: 15, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "newAttrs", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "drv", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 8, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 16, column: 14, }, end: Position { line: 16, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 16, column: 22, }, end: Position { line: 16, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 16, column: 26, }, end: Position { line: 16, column: 30, }, }, }, ), ], default: Some( Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 16, column: 34, }, end: Position { line: 16, column: 36, }, }, }, ), ), }, ), operator: Update, right: Identifier( Identifier { id: "newAttrs", span: Span { start: Position { line: 16, column: 41, }, end: Position { line: 16, column: 49, }, }, }, ), }, ), }, ), ], span: Span { start: Position { line: 16, column: 12, }, end: Position { line: 16, column: 52, }, }, }, ), }, ), span: Span { start: Position { line: 15, column: 28, }, end: Position { line: 16, column: 52, }, }, }, ), span: Span { start: Position { line: 15, column: 18, }, end: Position { line: 16, column: 52, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dontDistribute", span: Span { start: Position { line: 21, column: 3, }, end: Position { line: 21, column: 17, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "drv", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "addMetaAttrs", span: Span { start: Position { line: 21, column: 25, }, end: Position { line: 21, column: 37, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hydraPlatforms", span: Span { start: Position { line: 21, column: 40, }, end: Position { line: 21, column: 54, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 21, column: 57, }, end: Position { line: 21, column: 59, }, }, }, ), }, ), ], span: Span { start: Position { line: 21, column: 38, }, end: Position { line: 21, column: 62, }, }, }, ), Identifier( Identifier { id: "drv", span: Span { start: Position { line: 21, column: 63, }, end: Position { line: 21, column: 66, }, }, }, ), ], }, ), span: Span { start: Position { line: 21, column: 20, }, end: Position { line: 21, column: 66, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "setName", span: Span { start: Position { line: 27, column: 3, }, end: Position { line: 27, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "drv", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 27, column: 24, }, end: Position { line: 27, column: 27, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 27, column: 40, }, end: Position { line: 27, column: 44, }, }, }, ), ], span: Span { start: Position { line: 27, column: 32, }, end: Position { line: 27, column: 45, }, }, }, ), ], span: Span { start: Position { line: 27, column: 31, }, end: Position { line: 27, column: 46, }, }, }, ), }, ), span: Span { start: Position { line: 27, column: 19, }, end: Position { line: 27, column: 46, }, }, }, ), span: Span { start: Position { line: 27, column: 13, }, end: Position { line: 27, column: 46, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "updateName", span: Span { start: Position { line: 35, column: 3, }, end: Position { line: 35, column: 13, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "updater", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "drv", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 35, column: 30, }, end: Position { line: 35, column: 33, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 35, column: 38, }, end: Position { line: 35, column: 42, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "updater", span: Span { start: Position { line: 35, column: 45, }, end: Position { line: 35, column: 52, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 35, column: 54, }, end: Position { line: 35, column: 57, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 35, column: 58, }, end: Position { line: 35, column: 62, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 35, column: 37, }, end: Position { line: 35, column: 65, }, }, }, ), }, ), span: Span { start: Position { line: 35, column: 25, }, end: Position { line: 35, column: 65, }, }, }, ), span: Span { start: Position { line: 35, column: 16, }, end: Position { line: 35, column: 65, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "appendToName", span: Span { start: Position { line: 40, column: 3, }, end: Position { line: 40, column: 15, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "suffix", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "updateName", span: Span { start: Position { line: 40, column: 26, }, end: Position { line: 40, column: 36, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "x", span: Span { start: Position { line: 41, column: 9, }, end: Position { line: 41, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 41, column: 13, }, end: Position { line: 41, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "parseDrvName", span: Span { start: Position { line: 41, column: 22, }, end: Position { line: 41, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 41, column: 35, }, end: Position { line: 41, column: 39, }, }, }, ), ], }, ), }, ), ], target: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 41, column: 47, }, end: Position { line: 41, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 41, column: 49, }, end: Position { line: 41, column: 53, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "-", span: Span { start: Position { line: 41, column: 45, }, end: Position { line: 41, column: 55, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "suffix", span: Span { start: Position { line: 41, column: 57, }, end: Position { line: 41, column: 63, }, }, }, ), }, ), Raw( PartRaw { content: "-", span: Span { start: Position { line: 41, column: 45, }, end: Position { line: 41, column: 65, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 41, column: 67, }, end: Position { line: 41, column: 68, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "version", span: Span { start: Position { line: 41, column: 69, }, end: Position { line: 41, column: 76, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 41, column: 44, }, end: Position { line: 41, column: 78, }, }, }, ), span: Span { start: Position { line: 41, column: 5, }, end: Position { line: 41, column: 78, }, }, }, ), span: Span { start: Position { line: 40, column: 38, }, end: Position { line: 41, column: 78, }, }, }, ), ], }, ), span: Span { start: Position { line: 40, column: 18, }, end: Position { line: 41, column: 79, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mapDerivationAttrset", span: Span { start: Position { line: 46, column: 3, }, end: Position { line: 46, column: 23, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "set", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 46, column: 34, }, end: Position { line: 46, column: 37, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mapAttrs", span: Span { start: Position { line: 46, column: 38, }, end: Position { line: 46, column: 46, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pkg", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 46, column: 62, }, end: Position { line: 46, column: 65, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isDerivation", span: Span { start: Position { line: 46, column: 66, }, end: Position { line: 46, column: 78, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 46, column: 79, }, end: Position { line: 46, column: 82, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 46, column: 89, }, end: Position { line: 46, column: 90, }, }, }, ), arguments: [ Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 46, column: 91, }, end: Position { line: 46, column: 94, }, }, }, ), ], }, ), else_: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 46, column: 101, }, end: Position { line: 46, column: 104, }, }, }, ), span: Span { start: Position { line: 46, column: 59, }, end: Position { line: 46, column: 104, }, }, }, ), span: Span { start: Position { line: 46, column: 54, }, end: Position { line: 46, column: 104, }, }, }, ), span: Span { start: Position { line: 46, column: 48, }, end: Position { line: 46, column: 104, }, }, }, ), Identifier( Identifier { id: "set", span: Span { start: Position { line: 46, column: 106, }, end: Position { line: 46, column: 109, }, }, }, ), ], }, ), span: Span { start: Position { line: 46, column: 29, }, end: Position { line: 46, column: 109, }, }, }, ), span: Span { start: Position { line: 46, column: 26, }, end: Position { line: 46, column: 109, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "setPrio", span: Span { start: Position { line: 50, column: 3, }, end: Position { line: 50, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "priority", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "addMetaAttrs", span: Span { start: Position { line: 50, column: 23, }, end: Position { line: 50, column: 35, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 50, column: 46, }, end: Position { line: 50, column: 54, }, }, }, ), ], span: Span { start: Position { line: 50, column: 37, }, end: Position { line: 50, column: 55, }, }, }, ), ], span: Span { start: Position { line: 50, column: 36, }, end: Position { line: 50, column: 57, }, }, }, ), ], }, ), span: Span { start: Position { line: 50, column: 13, }, end: Position { line: 50, column: 57, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "lowPrio", span: Span { start: Position { line: 55, column: 3, }, end: Position { line: 55, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "setPrio", span: Span { start: Position { line: 55, column: 13, }, end: Position { line: 55, column: 20, }, }, }, ), arguments: [ Integer( Integer { value: "10", span: Span { start: Position { line: 55, column: 21, }, end: Position { line: 55, column: 23, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "lowPrioSet", span: Span { start: Position { line: 59, column: 3, }, end: Position { line: 59, column: 13, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "set", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapDerivationAttrset", span: Span { start: Position { line: 59, column: 21, }, end: Position { line: 59, column: 41, }, }, }, ), arguments: [ Identifier( Identifier { id: "lowPrio", span: Span { start: Position { line: 59, column: 42, }, end: Position { line: 59, column: 49, }, }, }, ), Identifier( Identifier { id: "set", span: Span { start: Position { line: 59, column: 50, }, end: Position { line: 59, column: 53, }, }, }, ), ], }, ), span: Span { start: Position { line: 59, column: 16, }, end: Position { line: 59, column: 53, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hiPrio", span: Span { start: Position { line: 65, column: 3, }, end: Position { line: 65, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "setPrio", span: Span { start: Position { line: 65, column: 12, }, end: Position { line: 65, column: 19, }, }, }, ), arguments: [ UnaryOperation( UnaryOperation { operator: Negate, operand: Integer( Integer { value: "10", span: Span { start: Position { line: 65, column: 22, }, end: Position { line: 65, column: 24, }, }, }, ), span: Span { start: Position { line: 65, column: 21, }, end: Position { line: 65, column: 24, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hiPrioSet", span: Span { start: Position { line: 69, column: 3, }, end: Position { line: 69, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "set", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapDerivationAttrset", span: Span { start: Position { line: 69, column: 20, }, end: Position { line: 69, column: 40, }, }, }, ), arguments: [ Identifier( Identifier { id: "hiPrio", span: Span { start: Position { line: 69, column: 41, }, end: Position { line: 69, column: 47, }, }, }, ), Identifier( Identifier { id: "set", span: Span { start: Position { line: 69, column: 48, }, end: Position { line: 69, column: 51, }, }, }, ), ], }, ), span: Span { start: Position { line: 69, column: 15, }, end: Position { line: 69, column: 51, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "platformMatch", span: Span { start: Position { line: 84, column: 3, }, end: Position { line: 84, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "platform", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "elem", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pattern", span: Span { start: Position { line: 85, column: 7, }, end: Position { line: 85, column: 14, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 86, column: 12, }, end: Position { line: 86, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isString", span: Span { start: Position { line: 86, column: 21, }, end: Position { line: 86, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "elem", span: Span { start: Position { line: 86, column: 30, }, end: Position { line: 86, column: 34, }, }, }, ), ], }, ), then: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 87, column: 16, }, end: Position { line: 87, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "elem", span: Span { start: Position { line: 87, column: 25, }, end: Position { line: 87, column: 29, }, }, }, ), }, ), ], span: Span { start: Position { line: 87, column: 14, }, end: Position { line: 87, column: 32, }, }, }, ), else_: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "parsed", span: Span { start: Position { line: 88, column: 16, }, end: Position { line: 88, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "elem", span: Span { start: Position { line: 88, column: 25, }, end: Position { line: 88, column: 29, }, }, }, ), }, ), ], span: Span { start: Position { line: 88, column: 14, }, end: Position { line: 88, column: 32, }, }, }, ), span: Span { start: Position { line: 86, column: 9, }, end: Position { line: 88, column: 32, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 89, column: 8, }, end: Position { line: 89, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "matchAttrs", span: Span { start: Position { line: 89, column: 12, }, end: Position { line: 89, column: 22, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "pattern", span: Span { start: Position { line: 89, column: 23, }, end: Position { line: 89, column: 30, }, }, }, ), Identifier( Identifier { id: "platform", span: Span { start: Position { line: 89, column: 31, }, end: Position { line: 89, column: 39, }, }, }, ), ], }, ), span: Span { start: Position { line: 84, column: 35, }, end: Position { line: 89, column: 39, }, }, }, ), span: Span { start: Position { line: 84, column: 29, }, end: Position { line: 89, column: 39, }, }, }, ), span: Span { start: Position { line: 84, column: 19, }, end: Position { line: 89, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "availableOn", span: Span { start: Position { line: 99, column: 3, }, end: Position { line: 99, column: 14, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "platform", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pkg", }, ), body: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 100, column: 5, }, end: Position { line: 100, column: 8, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "any", span: Span { start: Position { line: 100, column: 9, }, end: Position { line: 100, column: 12, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "platformMatch", span: Span { start: Position { line: 100, column: 14, }, end: Position { line: 100, column: 27, }, }, }, ), arguments: [ Identifier( Identifier { id: "platform", span: Span { start: Position { line: 100, column: 28, }, end: Position { line: 100, column: 36, }, }, }, ), ], }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 100, column: 38, }, end: Position { line: 100, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 100, column: 42, }, end: Position { line: 100, column: 46, }, }, }, ), Raw( PartRaw { content: "platforms", span: Span { start: Position { line: 100, column: 47, }, end: Position { line: 100, column: 56, }, }, }, ), ], default: None, }, ), ], }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 101, column: 5, }, end: Position { line: 101, column: 8, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "all", span: Span { start: Position { line: 101, column: 9, }, end: Position { line: 101, column: 12, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "elem", }, ), body: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "platformMatch", span: Span { start: Position { line: 101, column: 21, }, end: Position { line: 101, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "platform", span: Span { start: Position { line: 101, column: 35, }, end: Position { line: 101, column: 43, }, }, }, ), Identifier( Identifier { id: "elem", span: Span { start: Position { line: 101, column: 44, }, end: Position { line: 101, column: 48, }, }, }, ), ], }, ), span: Span { start: Position { line: 101, column: 20, }, end: Position { line: 101, column: 48, }, }, }, ), span: Span { start: Position { line: 101, column: 14, }, end: Position { line: 101, column: 48, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 101, column: 51, }, end: Position { line: 101, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 101, column: 55, }, end: Position { line: 101, column: 59, }, }, }, ), Raw( PartRaw { content: "badPlatforms", span: Span { start: Position { line: 101, column: 60, }, end: Position { line: 101, column: 72, }, }, }, ), ], default: Some( List( List { elements: [], span: Span { start: Position { line: 101, column: 76, }, end: Position { line: 101, column: 78, }, }, }, ), ), }, ), ], }, ), }, ), span: Span { start: Position { line: 99, column: 27, }, end: Position { line: 101, column: 79, }, }, }, ), span: Span { start: Position { line: 99, column: 17, }, end: Position { line: 101, column: 79, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getLicenseFromSpdxId", span: Span { start: Position { line: 120, column: 3, }, end: Position { line: 120, column: 23, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "spdxLicenses", span: Span { start: Position { line: 122, column: 7, }, end: Position { line: 122, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 122, column: 22, }, end: Position { line: 122, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mapAttrs", span: Span { start: Position { line: 122, column: 26, }, end: Position { line: 122, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "id", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "ls", }, ), body: Assert( Assert { expression: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 122, column: 51, }, end: Position { line: 122, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "length", span: Span { start: Position { line: 122, column: 55, }, end: Position { line: 122, column: 61, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "ls", span: Span { start: Position { line: 122, column: 62, }, end: Position { line: 122, column: 64, }, }, }, ), ], }, ), operator: EqualTo, right: Integer( Integer { value: "1", span: Span { start: Position { line: 122, column: 68, }, end: Position { line: 122, column: 69, }, }, }, ), }, ), target: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 122, column: 71, }, end: Position { line: 122, column: 79, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "head", span: Span { start: Position { line: 122, column: 80, }, end: Position { line: 122, column: 84, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "ls", span: Span { start: Position { line: 122, column: 85, }, end: Position { line: 122, column: 87, }, }, }, ), ], }, ), span: Span { start: Position { line: 122, column: 44, }, end: Position { line: 122, column: 87, }, }, }, ), span: Span { start: Position { line: 122, column: 40, }, end: Position { line: 122, column: 87, }, }, }, ), span: Span { start: Position { line: 122, column: 36, }, end: Position { line: 122, column: 87, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 123, column: 10, }, end: Position { line: 123, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "groupBy", span: Span { start: Position { line: 123, column: 14, }, end: Position { line: 123, column: 21, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "l", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 123, column: 26, }, end: Position { line: 123, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "toLower", span: Span { start: Position { line: 123, column: 30, }, end: Position { line: 123, column: 37, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "l", span: Span { start: Position { line: 123, column: 38, }, end: Position { line: 123, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "spdxId", span: Span { start: Position { line: 123, column: 40, }, end: Position { line: 123, column: 46, }, }, }, ), ], default: None, }, ), ], }, ), span: Span { start: Position { line: 123, column: 23, }, end: Position { line: 123, column: 46, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 123, column: 49, }, end: Position { line: 123, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 123, column: 53, }, end: Position { line: 123, column: 59, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "l", }, ), body: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "l", span: Span { start: Position { line: 123, column: 64, }, end: Position { line: 123, column: 65, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "spdxId", span: Span { start: Position { line: 123, column: 68, }, end: Position { line: 123, column: 74, }, }, }, ), ], }, ), span: Span { start: Position { line: 123, column: 61, }, end: Position { line: 123, column: 74, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 123, column: 77, }, end: Position { line: 123, column: 80, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrValues", span: Span { start: Position { line: 123, column: 81, }, end: Position { line: 123, column: 91, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 123, column: 92, }, end: Position { line: 123, column: 95, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "licenses", span: Span { start: Position { line: 123, column: 96, }, end: Position { line: 123, column: 104, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), ], }, ), ], }, ), }, ), ], target: Function( Function { head: Simple( FunctionHeadSimple { identifier: "licstr", }, ), body: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "spdxLicenses", span: Span { start: Position { line: 125, column: 7, }, end: Position { line: 125, column: 19, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 125, column: 23, }, end: Position { line: 125, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "toLower", span: Span { start: Position { line: 125, column: 27, }, end: Position { line: 125, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "licstr", span: Span { start: Position { line: 125, column: 35, }, end: Position { line: 125, column: 41, }, }, }, ), ], }, ), }, ), ], default: Some( FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 126, column: 9, }, end: Position { line: 126, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "warn", span: Span { start: Position { line: 126, column: 13, }, end: Position { line: 126, column: 17, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "getLicenseFromSpdxId: No license matches the given SPDX ID: ", span: Span { start: Position { line: 126, column: 19, }, end: Position { line: 126, column: 88, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "licstr", span: Span { start: Position { line: 126, column: 81, }, end: Position { line: 126, column: 87, }, }, }, ), }, ), ], span: Span { start: Position { line: 126, column: 18, }, end: Position { line: 126, column: 89, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "shortName", span: Span { start: Position { line: 127, column: 11, }, end: Position { line: 127, column: 20, }, }, }, ), ], to: Identifier( Identifier { id: "licstr", span: Span { start: Position { line: 127, column: 23, }, end: Position { line: 127, column: 29, }, }, }, ), }, ), ], span: Span { start: Position { line: 127, column: 9, }, end: Position { line: 127, column: 32, }, }, }, ), ], }, ), ), }, ), span: Span { start: Position { line: 124, column: 8, }, end: Position { line: 128, column: 8, }, }, }, ), span: Span { start: Position { line: 121, column: 5, }, end: Position { line: 128, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "getExe", span: Span { start: Position { line: 141, column: 3, }, end: Position { line: 141, column: 9, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: String( String_ { parts: [ Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 142, column: 8, }, end: Position { line: 142, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "getBin", span: Span { start: Position { line: 142, column: 12, }, end: Position { line: 142, column: 18, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 142, column: 19, }, end: Position { line: 142, column: 20, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "/bin/", span: Span { start: Position { line: 142, column: 6, }, end: Position { line: 142, column: 26, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 142, column: 28, }, end: Position { line: 142, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 142, column: 30, }, end: Position { line: 142, column: 34, }, }, }, ), Raw( PartRaw { content: "mainProgram", span: Span { start: Position { line: 142, column: 35, }, end: Position { line: 142, column: 46, }, }, }, ), ], default: Some( FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 142, column: 51, }, end: Position { line: 142, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "getName", span: Span { start: Position { line: 142, column: 55, }, end: Position { line: 142, column: 62, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 142, column: 63, }, end: Position { line: 142, column: 64, }, }, }, ), ], }, ), ), }, ), }, ), ], span: Span { start: Position { line: 142, column: 5, }, end: Position { line: 142, column: 67, }, }, }, ), span: Span { start: Position { line: 141, column: 12, }, end: Position { line: 142, column: 67, }, }, }, ), }, ), ], span: Span { start: Position { line: 6, column: 1, }, end: Position { line: 143, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 143, column: 2, }, }, }, )