Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 6, column: 12, }, end: Position { line: 6, column: 20, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "match", span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 10, }, }, }, ), Raw( PartRaw { content: "readDir", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 12, }, }, }, ), Raw( PartRaw { content: "split", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 10, }, }, }, ), Raw( PartRaw { content: "storeDir", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 13, }, }, }, ), Raw( PartRaw { content: "tryEval", span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 12, }, }, }, ), ], span: Span { start: Position { line: 5, column: 4, }, end: Position { line: 12, column: 6, }, }, }, ), Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "lib", span: Span { start: Position { line: 13, column: 12, }, end: Position { line: 13, column: 15, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "boolToString", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 17, }, }, }, ), Raw( PartRaw { content: "filter", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 11, }, }, }, ), Raw( PartRaw { content: "getAttr", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 12, }, }, }, ), Raw( PartRaw { content: "isString", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 13, }, }, }, ), Raw( PartRaw { content: "pathExists", span: Span { start: Position { line: 18, column: 5, }, end: Position { line: 18, column: 15, }, }, }, ), Raw( PartRaw { content: "readFile", span: Span { start: Position { line: 19, column: 5, }, end: Position { line: 19, column: 13, }, }, }, ), ], span: Span { start: Position { line: 5, column: 4, }, end: Position { line: 20, column: 6, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pathType", span: Span { start: Position { line: 25, column: 3, }, end: Position { line: 25, column: 11, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "getAttr", span: Span { start: Position { line: 25, column: 20, }, end: Position { line: 25, column: 27, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "baseNameOf", span: Span { start: Position { line: 25, column: 29, }, end: Position { line: 25, column: 39, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 25, column: 40, }, end: Position { line: 25, column: 44, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "readDir", span: Span { start: Position { line: 25, column: 47, }, end: Position { line: 25, column: 54, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "dirOf", span: Span { start: Position { line: 25, column: 56, }, end: Position { line: 25, column: 61, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 25, column: 62, }, end: Position { line: 25, column: 66, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 25, column: 14, }, end: Position { line: 25, column: 68, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pathIsDirectory", span: Span { start: Position { line: 30, column: 3, }, end: Position { line: 30, column: 18, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pathExists", span: Span { start: Position { line: 30, column: 30, }, end: Position { line: 30, column: 40, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 30, column: 41, }, end: Position { line: 30, column: 45, }, }, }, ), ], }, ), then: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pathType", span: Span { start: Position { line: 30, column: 52, }, end: Position { line: 30, column: 60, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 30, column: 61, }, end: Position { line: 30, column: 65, }, }, }, ), ], }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "directory", span: Span { start: Position { line: 30, column: 71, }, end: Position { line: 30, column: 80, }, }, }, ), ], span: Span { start: Position { line: 30, column: 70, }, end: Position { line: 30, column: 81, }, }, }, ), }, ), else_: Identifier( Identifier { id: "false", span: Span { start: Position { line: 30, column: 87, }, end: Position { line: 30, column: 92, }, }, }, ), span: Span { start: Position { line: 30, column: 27, }, end: Position { line: 30, column: 92, }, }, }, ), span: Span { start: Position { line: 30, column: 21, }, end: Position { line: 30, column: 92, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pathIsRegularFile", span: Span { start: Position { line: 35, column: 3, }, end: Position { line: 35, column: 20, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pathExists", span: Span { start: Position { line: 35, column: 32, }, end: Position { line: 35, column: 42, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 35, column: 43, }, end: Position { line: 35, column: 47, }, }, }, ), ], }, ), then: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pathType", span: Span { start: Position { line: 35, column: 54, }, end: Position { line: 35, column: 62, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 35, column: 63, }, end: Position { line: 35, column: 67, }, }, }, ), ], }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "regular", span: Span { start: Position { line: 35, column: 73, }, end: Position { line: 35, column: 80, }, }, }, ), ], span: Span { start: Position { line: 35, column: 72, }, end: Position { line: 35, column: 81, }, }, }, ), }, ), else_: Identifier( Identifier { id: "false", span: Span { start: Position { line: 35, column: 87, }, end: Position { line: 35, column: 92, }, }, }, ), span: Span { start: Position { line: 35, column: 29, }, end: Position { line: 35, column: 92, }, }, }, ), span: Span { start: Position { line: 35, column: 23, }, end: Position { line: 35, column: 92, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cleanSourceFilter", span: Span { start: Position { line: 42, column: 3, }, end: Position { line: 42, column: 20, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "type", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "baseName", span: Span { start: Position { line: 42, column: 39, }, end: Position { line: 42, column: 47, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "baseNameOf", span: Span { start: Position { line: 42, column: 50, }, end: Position { line: 42, column: 60, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 42, column: 62, }, end: Position { line: 42, column: 70, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 42, column: 71, }, end: Position { line: 42, column: 75, }, }, }, ), ], }, ), ], }, ), }, ), ], target: UnaryOperation( UnaryOperation { operator: Not, operand: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "baseName", span: Span { start: Position { line: 44, column: 6, }, end: Position { line: 44, column: 14, }, }, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: ".git", span: Span { start: Position { line: 44, column: 19, }, end: Position { line: 44, column: 23, }, }, }, ), ], span: Span { start: Position { line: 44, column: 18, }, end: Position { line: 44, column: 24, }, }, }, ), }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "type", span: Span { start: Position { line: 44, column: 28, }, end: Position { line: 44, column: 32, }, }, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "directory", span: Span { start: Position { line: 44, column: 37, }, end: Position { line: 44, column: 46, }, }, }, ), ], span: Span { start: Position { line: 44, column: 36, }, end: Position { line: 44, column: 47, }, }, }, ), }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "baseName", span: Span { start: Position { line: 44, column: 52, }, end: Position { line: 44, column: 60, }, }, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: ".svn", span: Span { start: Position { line: 44, column: 65, }, end: Position { line: 44, column: 69, }, }, }, ), ], span: Span { start: Position { line: 44, column: 64, }, end: Position { line: 44, column: 70, }, }, }, ), }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "baseName", span: Span { start: Position { line: 44, column: 74, }, end: Position { line: 44, column: 82, }, }, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "CVS", span: Span { start: Position { line: 44, column: 87, }, end: Position { line: 44, column: 90, }, }, }, ), ], span: Span { start: Position { line: 44, column: 86, }, end: Position { line: 44, column: 91, }, }, }, ), }, ), }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "baseName", span: Span { start: Position { line: 44, column: 95, }, end: Position { line: 44, column: 103, }, }, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: ".hg", span: Span { start: Position { line: 44, column: 108, }, end: Position { line: 44, column: 111, }, }, }, ), ], span: Span { start: Position { line: 44, column: 107, }, end: Position { line: 44, column: 112, }, }, }, ), }, ), }, ), }, ), }, ), operator: LogicalOr, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 46, column: 5, }, end: Position { line: 46, column: 8, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasSuffix", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 18, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "~", span: Span { start: Position { line: 46, column: 20, }, end: Position { line: 46, column: 21, }, }, }, ), ], span: Span { start: Position { line: 46, column: 19, }, end: Position { line: 46, column: 22, }, }, }, ), Identifier( Identifier { id: "baseName", span: Span { start: Position { line: 46, column: 23, }, end: Position { line: 46, column: 31, }, }, }, ), ], }, ), }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "match", span: Span { start: Position { line: 47, column: 5, }, end: Position { line: 47, column: 10, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "^\\.sw[a-z]$", span: Span { start: Position { line: 47, column: 12, }, end: Position { line: 47, column: 24, }, }, }, ), ], span: Span { start: Position { line: 47, column: 11, }, end: Position { line: 47, column: 25, }, }, }, ), Identifier( Identifier { id: "baseName", span: Span { start: Position { line: 47, column: 26, }, end: Position { line: 47, column: 34, }, }, }, ), ], }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 47, column: 38, }, end: Position { line: 47, column: 42, }, }, }, ), }, ), }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "match", span: Span { start: Position { line: 48, column: 5, }, end: Position { line: 48, column: 10, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "^\\..*\\.sw[a-z]$", span: Span { start: Position { line: 48, column: 12, }, end: Position { line: 48, column: 29, }, }, }, ), ], span: Span { start: Position { line: 48, column: 11, }, end: Position { line: 48, column: 30, }, }, }, ), Identifier( Identifier { id: "baseName", span: Span { start: Position { line: 48, column: 31, }, end: Position { line: 48, column: 39, }, }, }, ), ], }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 48, column: 43, }, end: Position { line: 48, column: 47, }, }, }, ), }, ), }, ), operator: LogicalOr, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 51, column: 5, }, end: Position { line: 51, column: 8, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasSuffix", span: Span { start: Position { line: 51, column: 9, }, end: Position { line: 51, column: 18, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: ".o", span: Span { start: Position { line: 51, column: 20, }, end: Position { line: 51, column: 22, }, }, }, ), ], span: Span { start: Position { line: 51, column: 19, }, end: Position { line: 51, column: 23, }, }, }, ), Identifier( Identifier { id: "baseName", span: Span { start: Position { line: 51, column: 24, }, end: Position { line: 51, column: 32, }, }, }, ), ], }, ), }, ), operator: LogicalOr, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 52, column: 5, }, end: Position { line: 52, column: 8, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasSuffix", span: Span { start: Position { line: 52, column: 9, }, end: Position { line: 52, column: 18, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: ".so", span: Span { start: Position { line: 52, column: 20, }, end: Position { line: 52, column: 23, }, }, }, ), ], span: Span { start: Position { line: 52, column: 19, }, end: Position { line: 52, column: 24, }, }, }, ), Identifier( Identifier { id: "baseName", span: Span { start: Position { line: 52, column: 25, }, end: Position { line: 52, column: 33, }, }, }, ), ], }, ), }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "type", span: Span { start: Position { line: 54, column: 6, }, end: Position { line: 54, column: 10, }, }, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "symlink", span: Span { start: Position { line: 54, column: 15, }, end: Position { line: 54, column: 22, }, }, }, ), ], span: Span { start: Position { line: 54, column: 14, }, end: Position { line: 54, column: 23, }, }, }, ), }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 54, column: 27, }, end: Position { line: 54, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasPrefix", span: Span { start: Position { line: 54, column: 31, }, end: Position { line: 54, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "result", span: Span { start: Position { line: 54, column: 42, }, end: Position { line: 54, column: 48, }, }, }, ), ], span: Span { start: Position { line: 54, column: 41, }, end: Position { line: 54, column: 49, }, }, }, ), Identifier( Identifier { id: "baseName", span: Span { start: Position { line: 54, column: 50, }, end: Position { line: 54, column: 58, }, }, }, ), ], }, ), }, ), }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "type", span: Span { start: Position { line: 56, column: 6, }, end: Position { line: 56, column: 10, }, }, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "unknown", span: Span { start: Position { line: 56, column: 15, }, end: Position { line: 56, column: 22, }, }, }, ), ], span: Span { start: Position { line: 56, column: 14, }, end: Position { line: 56, column: 23, }, }, }, ), }, ), }, ), span: Span { start: Position { line: 42, column: 81, }, end: Position { line: 57, column: 4, }, }, }, ), span: Span { start: Position { line: 42, column: 35, }, end: Position { line: 57, column: 4, }, }, }, ), span: Span { start: Position { line: 42, column: 29, }, end: Position { line: 57, column: 4, }, }, }, ), span: Span { start: Position { line: 42, column: 23, }, end: Position { line: 57, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cleanSource", span: Span { start: Position { line: 65, column: 3, }, end: Position { line: 65, column: 14, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "src", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "cleanSourceWith", span: Span { start: Position { line: 65, column: 22, }, end: Position { line: 65, column: 37, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 65, column: 40, }, end: Position { line: 65, column: 46, }, }, }, ), ], to: Identifier( Identifier { id: "cleanSourceFilter", span: Span { start: Position { line: 65, column: 49, }, end: Position { line: 65, column: 66, }, }, }, ), }, ), Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "src", span: Span { start: Position { line: 65, column: 76, }, end: Position { line: 65, column: 79, }, }, }, ), ], span: Span { start: Position { line: 65, column: 39, }, end: Position { line: 65, column: 80, }, }, }, ), ], span: Span { start: Position { line: 65, column: 38, }, end: Position { line: 65, column: 82, }, }, }, ), ], }, ), span: Span { start: Position { line: 65, column: 17, }, end: Position { line: 65, column: 82, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cleanSourceWith", span: Span { start: Position { line: 86, column: 3, }, end: Position { line: 86, column: 18, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "src", default: None, }, FunctionHeadDestructuredArgument { identifier: "filter", default: Some( Function( Function { head: Simple( FunctionHeadSimple { identifier: "_path", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "_type", }, ), body: Identifier( Identifier { id: "true", span: Span { start: Position { line: 96, column: 30, }, end: Position { line: 96, column: 34, }, }, }, ), span: Span { start: Position { line: 96, column: 23, }, end: Position { line: 96, column: 34, }, }, }, ), span: Span { start: Position { line: 96, column: 16, }, end: Position { line: 96, column: 34, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "name", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 99, column: 14, }, end: Position { line: 99, column: 18, }, }, }, ), ), }, ], }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "orig", span: Span { start: Position { line: 102, column: 7, }, end: Position { line: 102, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toSourceAttributes", span: Span { start: Position { line: 102, column: 14, }, end: Position { line: 102, column: 32, }, }, }, ), arguments: [ Identifier( Identifier { id: "src", span: Span { start: Position { line: 102, column: 33, }, end: Position { line: 102, column: 36, }, }, }, ), ], }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "fromSourceAttributes", span: Span { start: Position { line: 103, column: 8, }, end: Position { line: 103, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "orig", span: Span { start: Position { line: 104, column: 16, }, end: Position { line: 104, column: 20, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "origSrc", span: Span { start: Position { line: 104, column: 22, }, end: Position { line: 104, column: 29, }, }, }, ), ], span: Span { start: Position { line: 103, column: 30, }, end: Position { line: 104, column: 30, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 105, column: 7, }, end: Position { line: 105, column: 13, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "type", }, ), body: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filter", span: Span { start: Position { line: 105, column: 28, }, end: Position { line: 105, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 105, column: 35, }, end: Position { line: 105, column: 39, }, }, }, ), Identifier( Identifier { id: "type", span: Span { start: Position { line: 105, column: 40, }, end: Position { line: 105, column: 44, }, }, }, ), ], }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "orig", span: Span { start: Position { line: 105, column: 48, }, end: Position { line: 105, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 105, column: 53, }, end: Position { line: 105, column: 59, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 105, column: 60, }, end: Position { line: 105, column: 64, }, }, }, ), Identifier( Identifier { id: "type", span: Span { start: Position { line: 105, column: 65, }, end: Position { line: 105, column: 69, }, }, }, ), ], }, ), }, ), span: Span { start: Position { line: 105, column: 22, }, end: Position { line: 105, column: 69, }, }, }, ), span: Span { start: Position { line: 105, column: 16, }, end: Position { line: 105, column: 69, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 106, column: 7, }, end: Position { line: 106, column: 11, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "name", span: Span { start: Position { line: 106, column: 17, }, end: Position { line: 106, column: 21, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 106, column: 25, }, end: Position { line: 106, column: 29, }, }, }, ), }, ), then: Identifier( Identifier { id: "name", span: Span { start: Position { line: 106, column: 35, }, end: Position { line: 106, column: 39, }, }, }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "orig", span: Span { start: Position { line: 106, column: 45, }, end: Position { line: 106, column: 49, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 106, column: 50, }, end: Position { line: 106, column: 54, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 106, column: 14, }, end: Position { line: 106, column: 54, }, }, }, ), }, ), ], span: Span { start: Position { line: 103, column: 29, }, end: Position { line: 107, column: 6, }, }, }, ), ], }, ), span: Span { start: Position { line: 101, column: 5, }, end: Position { line: 107, column: 6, }, }, }, ), span: Span { start: Position { line: 87, column: 5, }, end: Position { line: 107, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "trace", span: Span { start: Position { line: 114, column: 3, }, end: Position { line: 114, column: 8, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "src", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 118, column: 7, }, end: Position { line: 118, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toSourceAttributes", span: Span { start: Position { line: 118, column: 15, }, end: Position { line: 118, column: 33, }, }, }, ), arguments: [ Identifier( Identifier { id: "src", span: Span { start: Position { line: 118, column: 34, }, end: Position { line: 118, column: 37, }, }, }, ), ], }, ), }, ), ], target: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "fromSourceAttributes", span: Span { start: Position { line: 120, column: 7, }, end: Position { line: 120, column: 27, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 121, column: 9, }, end: Position { line: 121, column: 14, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 122, column: 11, }, end: Position { line: 122, column: 17, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "type", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "r", span: Span { start: Position { line: 124, column: 15, }, end: Position { line: 124, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 124, column: 19, }, end: Position { line: 124, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 124, column: 25, }, end: Position { line: 124, column: 31, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 124, column: 32, }, end: Position { line: 124, column: 36, }, }, }, ), Identifier( Identifier { id: "type", span: Span { start: Position { line: 124, column: 37, }, end: Position { line: 124, column: 41, }, }, }, ), ], }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 126, column: 15, }, end: Position { line: 126, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "trace", span: Span { start: Position { line: 126, column: 24, }, end: Position { line: 126, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "attrs", span: Span { start: Position { line: 126, column: 33, }, end: Position { line: 126, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 126, column: 39, }, end: Position { line: 126, column: 43, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: ".filter ", span: Span { start: Position { line: 126, column: 31, }, end: Position { line: 126, column: 52, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "path", span: Span { start: Position { line: 126, column: 54, }, end: Position { line: 126, column: 58, }, }, }, ), }, ), Raw( PartRaw { content: " = ", span: Span { start: Position { line: 126, column: 31, }, end: Position { line: 126, column: 62, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "boolToString", span: Span { start: Position { line: 126, column: 64, }, end: Position { line: 126, column: 76, }, }, }, ), arguments: [ Identifier( Identifier { id: "r", span: Span { start: Position { line: 126, column: 77, }, end: Position { line: 126, column: 78, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 126, column: 30, }, end: Position { line: 126, column: 80, }, }, }, ), Identifier( Identifier { id: "r", span: Span { start: Position { line: 126, column: 81, }, end: Position { line: 126, column: 82, }, }, }, ), ], }, ), span: Span { start: Position { line: 123, column: 13, }, end: Position { line: 126, column: 82, }, }, }, ), span: Span { start: Position { line: 122, column: 26, }, end: Position { line: 126, column: 82, }, }, }, ), span: Span { start: Position { line: 122, column: 20, }, end: Position { line: 126, column: 82, }, }, }, ), }, ), ], span: Span { start: Position { line: 121, column: 18, }, end: Position { line: 127, column: 10, }, }, }, ), }, ), ], }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "satisfiesSubpathInvariant", span: Span { start: Position { line: 129, column: 9, }, end: Position { line: 129, column: 34, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "src", span: Span { start: Position { line: 129, column: 37, }, end: Position { line: 129, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "satisfiesSubpathInvariant", span: Span { start: Position { line: 129, column: 43, }, end: Position { line: 129, column: 68, }, }, }, ), ], }, ), operator: LogicalAnd, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "src", span: Span { start: Position { line: 129, column: 72, }, end: Position { line: 129, column: 75, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "satisfiesSubpathInvariant", span: Span { start: Position { line: 129, column: 76, }, end: Position { line: 129, column: 101, }, }, }, ), ], default: None, }, ), }, ), }, ), ], span: Span { start: Position { line: 128, column: 12, }, end: Position { line: 130, column: 8, }, }, }, ), }, ), span: Span { start: Position { line: 117, column: 5, }, end: Position { line: 130, column: 8, }, }, }, ), span: Span { start: Position { line: 116, column: 5, }, end: Position { line: 130, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sourceByRegex", span: Span { start: Position { line: 137, column: 3, }, end: Position { line: 137, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "src", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "regexes", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isFiltered", span: Span { start: Position { line: 139, column: 7, }, end: Position { line: 139, column: 17, }, }, }, ), ], to: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "src", span: Span { start: Position { line: 139, column: 20, }, end: Position { line: 139, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "_isLibCleanSourceWith", span: Span { start: Position { line: 139, column: 26, }, end: Position { line: 139, column: 47, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "origSrc", span: Span { start: Position { line: 140, column: 7, }, end: Position { line: 140, column: 14, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: Identifier( Identifier { id: "isFiltered", span: Span { start: Position { line: 140, column: 20, }, end: Position { line: 140, column: 30, }, }, }, ), then: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "src", span: Span { start: Position { line: 140, column: 36, }, end: Position { line: 140, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "origSrc", span: Span { start: Position { line: 140, column: 40, }, end: Position { line: 140, column: 47, }, }, }, ), ], default: None, }, ), else_: Identifier( Identifier { id: "src", span: Span { start: Position { line: 140, column: 53, }, end: Position { line: 140, column: 56, }, }, }, ), span: Span { start: Position { line: 140, column: 17, }, end: Position { line: 140, column: 56, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 141, column: 8, }, end: Position { line: 141, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "cleanSourceWith", span: Span { start: Position { line: 141, column: 12, }, end: Position { line: 141, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 142, column: 7, }, end: Position { line: 142, column: 13, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "type", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "relPath", span: Span { start: Position { line: 143, column: 13, }, end: Position { line: 143, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 143, column: 23, }, end: Position { line: 143, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "removePrefix", span: Span { start: Position { line: 143, column: 27, }, end: Position { line: 143, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 143, column: 41, }, end: Position { line: 143, column: 49, }, }, }, ), arguments: [ Identifier( Identifier { id: "origSrc", span: Span { start: Position { line: 143, column: 50, }, end: Position { line: 143, column: 57, }, }, }, ), ], }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "/", span: Span { start: Position { line: 143, column: 61, }, end: Position { line: 143, column: 62, }, }, }, ), ], span: Span { start: Position { line: 143, column: 60, }, end: Position { line: 143, column: 63, }, }, }, ), }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 143, column: 66, }, end: Position { line: 143, column: 74, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 143, column: 75, }, end: Position { line: 143, column: 79, }, }, }, ), ], }, ), ], }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 144, column: 12, }, end: Position { line: 144, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "any", span: Span { start: Position { line: 144, column: 16, }, end: Position { line: 144, column: 19, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "re", }, ), body: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "match", span: Span { start: Position { line: 144, column: 25, }, end: Position { line: 144, column: 30, }, }, }, ), arguments: [ Identifier( Identifier { id: "re", span: Span { start: Position { line: 144, column: 31, }, end: Position { line: 144, column: 33, }, }, }, ), Identifier( Identifier { id: "relPath", span: Span { start: Position { line: 144, column: 34, }, end: Position { line: 144, column: 41, }, }, }, ), ], }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 144, column: 45, }, end: Position { line: 144, column: 49, }, }, }, ), }, ), span: Span { start: Position { line: 144, column: 21, }, end: Position { line: 144, column: 49, }, }, }, ), Identifier( Identifier { id: "regexes", span: Span { start: Position { line: 144, column: 51, }, end: Position { line: 144, column: 58, }, }, }, ), ], }, ), span: Span { start: Position { line: 143, column: 9, }, end: Position { line: 144, column: 58, }, }, }, ), span: Span { start: Position { line: 142, column: 23, }, end: Position { line: 144, column: 58, }, }, }, ), span: Span { start: Position { line: 142, column: 17, }, end: Position { line: 144, column: 58, }, }, }, ), }, ), Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "src", span: Span { start: Position { line: 145, column: 15, }, end: Position { line: 145, column: 18, }, }, }, ), ], span: Span { start: Position { line: 141, column: 29, }, end: Position { line: 145, column: 19, }, }, }, ), ], span: Span { start: Position { line: 141, column: 28, }, end: Position { line: 146, column: 6, }, }, }, ), ], }, ), span: Span { start: Position { line: 138, column: 5, }, end: Position { line: 146, column: 6, }, }, }, ), span: Span { start: Position { line: 137, column: 24, }, end: Position { line: 146, column: 6, }, }, }, ), span: Span { start: Position { line: 137, column: 19, }, end: Position { line: 146, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sourceFilesBySuffices", span: Span { start: Position { line: 159, column: 3, }, end: Position { line: 159, column: 24, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "src", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "exts", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 164, column: 9, }, end: Position { line: 164, column: 15, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "type", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "base", span: Span { start: Position { line: 165, column: 11, }, end: Position { line: 165, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "baseNameOf", span: Span { start: Position { line: 165, column: 18, }, end: Position { line: 165, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 165, column: 30, }, end: Position { line: 165, column: 38, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 165, column: 39, }, end: Position { line: 165, column: 43, }, }, }, ), ], }, ), ], }, ), }, ), ], target: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "type", span: Span { start: Position { line: 166, column: 10, }, end: Position { line: 166, column: 14, }, }, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "directory", span: Span { start: Position { line: 166, column: 19, }, end: Position { line: 166, column: 28, }, }, }, ), ], span: Span { start: Position { line: 166, column: 18, }, end: Position { line: 166, column: 29, }, }, }, ), }, ), operator: LogicalOr, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 166, column: 33, }, end: Position { line: 166, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "any", span: Span { start: Position { line: 166, column: 37, }, end: Position { line: 166, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "ext", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 166, column: 47, }, end: Position { line: 166, column: 50, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasSuffix", span: Span { start: Position { line: 166, column: 51, }, end: Position { line: 166, column: 60, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "ext", span: Span { start: Position { line: 166, column: 61, }, end: Position { line: 166, column: 64, }, }, }, ), Identifier( Identifier { id: "base", span: Span { start: Position { line: 166, column: 65, }, end: Position { line: 166, column: 69, }, }, }, ), ], }, ), span: Span { start: Position { line: 166, column: 42, }, end: Position { line: 166, column: 69, }, }, }, ), Identifier( Identifier { id: "exts", span: Span { start: Position { line: 166, column: 71, }, end: Position { line: 166, column: 75, }, }, }, ), ], }, ), }, ), span: Span { start: Position { line: 165, column: 7, }, end: Position { line: 166, column: 75, }, }, }, ), span: Span { start: Position { line: 164, column: 24, }, end: Position { line: 166, column: 75, }, }, }, ), span: Span { start: Position { line: 164, column: 18, }, end: Position { line: 166, column: 75, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "cleanSourceWith", span: Span { start: Position { line: 167, column: 8, }, end: Position { line: 167, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 167, column: 34, }, end: Position { line: 167, column: 40, }, }, }, ), Raw( PartRaw { content: "src", span: Span { start: Position { line: 167, column: 41, }, end: Position { line: 167, column: 44, }, }, }, ), ], span: Span { start: Position { line: 167, column: 25, }, end: Position { line: 167, column: 45, }, }, }, ), ], span: Span { start: Position { line: 167, column: 24, }, end: Position { line: 167, column: 47, }, }, }, ), ], }, ), span: Span { start: Position { line: 164, column: 5, }, end: Position { line: 167, column: 47, }, }, }, ), span: Span { start: Position { line: 163, column: 5, }, end: Position { line: 167, column: 47, }, }, }, ), span: Span { start: Position { line: 161, column: 5, }, end: Position { line: 167, column: 47, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pathIsGitRepo", span: Span { start: Position { line: 169, column: 3, }, end: Position { line: 169, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "tryEval", span: Span { start: Position { line: 169, column: 26, }, end: Position { line: 169, column: 33, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "commitIdFromGitRepo", span: Span { start: Position { line: 169, column: 35, }, end: Position { line: 169, column: 54, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 169, column: 55, }, end: Position { line: 169, column: 59, }, }, }, ), ], }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "success", span: Span { start: Position { line: 169, column: 62, }, end: Position { line: 169, column: 69, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 169, column: 19, }, end: Position { line: 169, column: 69, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "commitIdFromGitRepo", span: Span { start: Position { line: 176, column: 3, }, end: Position { line: 176, column: 22, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "readCommitFromFile", span: Span { start: Position { line: 177, column: 9, }, end: Position { line: 177, column: 27, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "file", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fileName", span: Span { start: Position { line: 178, column: 13, }, end: Position { line: 178, column: 21, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 178, column: 30, }, end: Position { line: 178, column: 38, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 178, column: 39, }, end: Position { line: 178, column: 43, }, }, }, ), ], }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "/", span: Span { start: Position { line: 178, column: 47, }, end: Position { line: 178, column: 48, }, }, }, ), ], span: Span { start: Position { line: 178, column: 46, }, end: Position { line: 178, column: 49, }, }, }, ), }, ), operator: Addition, right: Identifier( Identifier { id: "file", span: Span { start: Position { line: 178, column: 52, }, end: Position { line: 178, column: 56, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "packedRefsName", span: Span { start: Position { line: 179, column: 13, }, end: Position { line: 179, column: 27, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 179, column: 30, }, end: Position { line: 179, column: 38, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 179, column: 39, }, end: Position { line: 179, column: 43, }, }, }, ), ], }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "/packed-refs", span: Span { start: Position { line: 179, column: 47, }, end: Position { line: 179, column: 59, }, }, }, ), ], span: Span { start: Position { line: 179, column: 46, }, end: Position { line: 179, column: 60, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "absolutePath", span: Span { start: Position { line: 180, column: 13, }, end: Position { line: 180, column: 25, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "base", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 181, column: 18, }, end: Position { line: 181, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasPrefix", span: Span { start: Position { line: 181, column: 22, }, end: Position { line: 181, column: 31, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "/", span: Span { start: Position { line: 181, column: 33, }, end: Position { line: 181, column: 34, }, }, }, ), ], span: Span { start: Position { line: 181, column: 32, }, end: Position { line: 181, column: 35, }, }, }, ), Identifier( Identifier { id: "path", span: Span { start: Position { line: 181, column: 36, }, end: Position { line: 181, column: 40, }, }, }, ), ], }, ), then: Identifier( Identifier { id: "path", span: Span { start: Position { line: 182, column: 20, }, end: Position { line: 182, column: 24, }, }, }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 183, column: 20, }, end: Position { line: 183, column: 28, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Path( Path { parts: [ Raw( PartRaw { content: "/.", span: Span { start: Position { line: 183, column: 30, }, end: Position { line: 183, column: 32, }, }, }, ), ], span: Span { start: Position { line: 183, column: 30, }, end: Position { line: 183, column: 32, }, }, }, ), operator: Addition, right: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "base", span: Span { start: Position { line: 183, column: 38, }, end: Position { line: 183, column: 42, }, }, }, ), }, ), Raw( PartRaw { content: "/", span: Span { start: Position { line: 183, column: 36, }, end: Position { line: 183, column: 44, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "path", span: Span { start: Position { line: 183, column: 46, }, end: Position { line: 183, column: 50, }, }, }, ), }, ), ], span: Span { start: Position { line: 183, column: 35, }, end: Position { line: 183, column: 52, }, }, }, ), }, ), ], }, ), span: Span { start: Position { line: 181, column: 15, }, end: Position { line: 183, column: 53, }, }, }, ), span: Span { start: Position { line: 180, column: 36, }, end: Position { line: 183, column: 53, }, }, }, ), span: Span { start: Position { line: 180, column: 30, }, end: Position { line: 183, column: 53, }, }, }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pathIsRegularFile", span: Span { start: Position { line: 184, column: 15, }, end: Position { line: 184, column: 32, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 184, column: 33, }, end: Position { line: 184, column: 37, }, }, }, ), ], }, ), then: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "m", span: Span { start: Position { line: 187, column: 18, }, end: Position { line: 187, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "match", span: Span { start: Position { line: 187, column: 24, }, end: Position { line: 187, column: 29, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "^gitdir: (.*)$", span: Span { start: Position { line: 187, column: 31, }, end: Position { line: 187, column: 45, }, }, }, ), ], span: Span { start: Position { line: 187, column: 30, }, end: Position { line: 187, column: 46, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 187, column: 48, }, end: Position { line: 187, column: 51, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fileContents", span: Span { start: Position { line: 187, column: 52, }, end: Position { line: 187, column: 64, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 187, column: 65, }, end: Position { line: 187, column: 69, }, }, }, ), ], }, ), ], }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "m", span: Span { start: Position { line: 188, column: 20, }, end: Position { line: 188, column: 21, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 188, column: 25, }, end: Position { line: 188, column: 29, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 189, column: 22, }, end: Position { line: 189, column: 27, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "File contains no gitdir reference: ", span: Span { start: Position { line: 189, column: 30, }, end: Position { line: 189, column: 65, }, }, }, ), ], span: Span { start: Position { line: 189, column: 29, }, end: Position { line: 189, column: 66, }, }, }, ), operator: Addition, right: Identifier( Identifier { id: "path", span: Span { start: Position { line: 189, column: 69, }, end: Position { line: 189, column: 73, }, }, }, ), }, ), ], }, ), else_: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "gitDir", span: Span { start: Position { line: 191, column: 23, }, end: Position { line: 191, column: 29, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "absolutePath", span: Span { start: Position { line: 191, column: 37, }, end: Position { line: 191, column: 49, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "dirOf", span: Span { start: Position { line: 191, column: 51, }, end: Position { line: 191, column: 56, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 191, column: 57, }, end: Position { line: 191, column: 61, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 191, column: 64, }, end: Position { line: 191, column: 67, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "head", span: Span { start: Position { line: 191, column: 68, }, end: Position { line: 191, column: 72, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "m", span: Span { start: Position { line: 191, column: 73, }, end: Position { line: 191, column: 74, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "commonDir''", span: Span { start: Position { line: 192, column: 23, }, end: Position { line: 192, column: 34, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pathIsRegularFile", span: Span { start: Position { line: 192, column: 40, }, end: Position { line: 192, column: 57, }, }, }, ), arguments: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "gitDir", span: Span { start: Position { line: 192, column: 61, }, end: Position { line: 192, column: 67, }, }, }, ), }, ), Raw( PartRaw { content: "/commondir", span: Span { start: Position { line: 192, column: 59, }, end: Position { line: 192, column: 78, }, }, }, ), ], span: Span { start: Position { line: 192, column: 58, }, end: Position { line: 192, column: 79, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 193, column: 42, }, end: Position { line: 193, column: 45, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fileContents", span: Span { start: Position { line: 193, column: 46, }, end: Position { line: 193, column: 58, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "gitDir", span: Span { start: Position { line: 193, column: 62, }, end: Position { line: 193, column: 68, }, }, }, ), }, ), Raw( PartRaw { content: "/commondir", span: Span { start: Position { line: 193, column: 60, }, end: Position { line: 193, column: 79, }, }, }, ), ], span: Span { start: Position { line: 193, column: 59, }, end: Position { line: 193, column: 80, }, }, }, ), ], }, ), else_: Identifier( Identifier { id: "gitDir", span: Span { start: Position { line: 194, column: 42, }, end: Position { line: 194, column: 48, }, }, }, ), span: Span { start: Position { line: 192, column: 37, }, end: Position { line: 194, column: 48, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "commonDir'", span: Span { start: Position { line: 195, column: 23, }, end: Position { line: 195, column: 33, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 195, column: 37, }, end: Position { line: 195, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "removeSuffix", span: Span { start: Position { line: 195, column: 41, }, end: Position { line: 195, column: 53, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "/", span: Span { start: Position { line: 195, column: 55, }, end: Position { line: 195, column: 56, }, }, }, ), ], span: Span { start: Position { line: 195, column: 54, }, end: Position { line: 195, column: 57, }, }, }, ), Identifier( Identifier { id: "commonDir''", span: Span { start: Position { line: 195, column: 58, }, end: Position { line: 195, column: 69, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "commonDir", span: Span { start: Position { line: 196, column: 23, }, end: Position { line: 196, column: 32, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "absolutePath", span: Span { start: Position { line: 196, column: 37, }, end: Position { line: 196, column: 49, }, }, }, ), arguments: [ Identifier( Identifier { id: "gitDir", span: Span { start: Position { line: 196, column: 50, }, end: Position { line: 196, column: 56, }, }, }, ), Identifier( Identifier { id: "commonDir'", span: Span { start: Position { line: 196, column: 57, }, end: Position { line: 196, column: 67, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "refFile", span: Span { start: Position { line: 197, column: 23, }, end: Position { line: 197, column: 30, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 197, column: 37, }, end: Position { line: 197, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "removePrefix", span: Span { start: Position { line: 197, column: 41, }, end: Position { line: 197, column: 53, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "commonDir", span: Span { start: Position { line: 197, column: 57, }, end: Position { line: 197, column: 66, }, }, }, ), }, ), Raw( PartRaw { content: "/", span: Span { start: Position { line: 197, column: 55, }, end: Position { line: 197, column: 68, }, }, }, ), ], span: Span { start: Position { line: 197, column: 54, }, end: Position { line: 197, column: 69, }, }, }, ), String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "gitDir", span: Span { start: Position { line: 197, column: 73, }, end: Position { line: 197, column: 79, }, }, }, ), }, ), Raw( PartRaw { content: "/", span: Span { start: Position { line: 197, column: 71, }, end: Position { line: 197, column: 81, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "file", span: Span { start: Position { line: 197, column: 83, }, end: Position { line: 197, column: 87, }, }, }, ), }, ), ], span: Span { start: Position { line: 197, column: 70, }, end: Position { line: 197, column: 89, }, }, }, ), ], }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "readCommitFromFile", span: Span { start: Position { line: 198, column: 22, }, end: Position { line: 198, column: 40, }, }, }, ), arguments: [ Identifier( Identifier { id: "refFile", span: Span { start: Position { line: 198, column: 41, }, end: Position { line: 198, column: 48, }, }, }, ), Identifier( Identifier { id: "commonDir", span: Span { start: Position { line: 198, column: 49, }, end: Position { line: 198, column: 58, }, }, }, ), ], }, ), span: Span { start: Position { line: 191, column: 19, }, end: Position { line: 198, column: 58, }, }, }, ), span: Span { start: Position { line: 188, column: 17, }, end: Position { line: 198, column: 58, }, }, }, ), span: Span { start: Position { line: 187, column: 14, }, end: Position { line: 198, column: 58, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pathIsRegularFile", span: Span { start: Position { line: 200, column: 20, }, end: Position { line: 200, column: 37, }, }, }, ), arguments: [ Identifier( Identifier { id: "fileName", span: Span { start: Position { line: 200, column: 38, }, end: Position { line: 200, column: 46, }, }, }, ), ], }, ), then: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fileContent", span: Span { start: Position { line: 204, column: 18, }, end: Position { line: 204, column: 29, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 204, column: 32, }, end: Position { line: 204, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fileContents", span: Span { start: Position { line: 204, column: 36, }, end: Position { line: 204, column: 48, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "fileName", span: Span { start: Position { line: 204, column: 49, }, end: Position { line: 204, column: 57, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "matchRef", span: Span { start: Position { line: 205, column: 18, }, end: Position { line: 205, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "match", span: Span { start: Position { line: 205, column: 32, }, end: Position { line: 205, column: 37, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "^ref: (.*)$", span: Span { start: Position { line: 205, column: 39, }, end: Position { line: 205, column: 50, }, }, }, ), ], span: Span { start: Position { line: 205, column: 38, }, end: Position { line: 205, column: 51, }, }, }, ), Identifier( Identifier { id: "fileContent", span: Span { start: Position { line: 205, column: 52, }, end: Position { line: 205, column: 63, }, }, }, ), ], }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "matchRef", span: Span { start: Position { line: 206, column: 21, }, end: Position { line: 206, column: 29, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 206, column: 33, }, end: Position { line: 206, column: 37, }, }, }, ), }, ), then: Identifier( Identifier { id: "fileContent", span: Span { start: Position { line: 207, column: 22, }, end: Position { line: 207, column: 33, }, }, }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "readCommitFromFile", span: Span { start: Position { line: 208, column: 22, }, end: Position { line: 208, column: 40, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 208, column: 42, }, end: Position { line: 208, column: 45, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "head", span: Span { start: Position { line: 208, column: 46, }, end: Position { line: 208, column: 50, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "matchRef", span: Span { start: Position { line: 208, column: 51, }, end: Position { line: 208, column: 59, }, }, }, ), ], }, ), Identifier( Identifier { id: "path", span: Span { start: Position { line: 208, column: 61, }, end: Position { line: 208, column: 65, }, }, }, ), ], }, ), span: Span { start: Position { line: 206, column: 17, }, end: Position { line: 208, column: 65, }, }, }, ), span: Span { start: Position { line: 204, column: 14, }, end: Position { line: 208, column: 65, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pathIsRegularFile", span: Span { start: Position { line: 210, column: 20, }, end: Position { line: 210, column: 37, }, }, }, ), arguments: [ Identifier( Identifier { id: "packedRefsName", span: Span { start: Position { line: 210, column: 38, }, end: Position { line: 210, column: 52, }, }, }, ), ], }, ), then: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fileContent", span: Span { start: Position { line: 214, column: 18, }, end: Position { line: 214, column: 29, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "readFile", span: Span { start: Position { line: 214, column: 32, }, end: Position { line: 214, column: 40, }, }, }, ), arguments: [ Identifier( Identifier { id: "packedRefsName", span: Span { start: Position { line: 214, column: 41, }, end: Position { line: 214, column: 55, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "matchRef", span: Span { start: Position { line: 215, column: 18, }, end: Position { line: 215, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "match", span: Span { start: Position { line: 215, column: 29, }, end: Position { line: 215, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "([a-z0-9]+) ", span: Span { start: Position { line: 215, column: 36, }, end: Position { line: 215, column: 55, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "file", span: Span { start: Position { line: 215, column: 50, }, end: Position { line: 215, column: 54, }, }, }, ), }, ), ], span: Span { start: Position { line: 215, column: 35, }, end: Position { line: 215, column: 56, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isRef", span: Span { start: Position { line: 216, column: 18, }, end: Position { line: 216, column: 23, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "s", }, ), body: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isString", span: Span { start: Position { line: 216, column: 29, }, end: Position { line: 216, column: 37, }, }, }, ), arguments: [ Identifier( Identifier { id: "s", span: Span { start: Position { line: 216, column: 38, }, end: Position { line: 216, column: 39, }, }, }, ), ], }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "matchRef", span: Span { start: Position { line: 216, column: 44, }, end: Position { line: 216, column: 52, }, }, }, ), arguments: [ Identifier( Identifier { id: "s", span: Span { start: Position { line: 216, column: 53, }, end: Position { line: 216, column: 54, }, }, }, ), ], }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 216, column: 59, }, end: Position { line: 216, column: 63, }, }, }, ), }, ), }, ), span: Span { start: Position { line: 216, column: 26, }, end: Position { line: 216, column: 63, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "refs", span: Span { start: Position { line: 219, column: 18, }, end: Position { line: 219, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filter", span: Span { start: Position { line: 219, column: 25, }, end: Position { line: 219, column: 31, }, }, }, ), arguments: [ Identifier( Identifier { id: "isRef", span: Span { start: Position { line: 219, column: 32, }, end: Position { line: 219, column: 37, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "split", span: Span { start: Position { line: 219, column: 39, }, end: Position { line: 219, column: 44, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "\n", span: Span { start: Position { line: 219, column: 46, }, end: Position { line: 219, column: 48, }, }, }, ), ], span: Span { start: Position { line: 219, column: 45, }, end: Position { line: 219, column: 49, }, }, }, ), Identifier( Identifier { id: "fileContent", span: Span { start: Position { line: 219, column: 50, }, end: Position { line: 219, column: 61, }, }, }, ), ], }, ), ], }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "refs", span: Span { start: Position { line: 220, column: 20, }, end: Position { line: 220, column: 24, }, }, }, ), operator: EqualTo, right: List( List { elements: [], span: Span { start: Position { line: 220, column: 28, }, end: Position { line: 220, column: 30, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 221, column: 22, }, end: Position { line: 221, column: 27, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "Could not find ", span: Span { start: Position { line: 221, column: 30, }, end: Position { line: 221, column: 45, }, }, }, ), ], span: Span { start: Position { line: 221, column: 29, }, end: Position { line: 221, column: 46, }, }, }, ), operator: Addition, right: Identifier( Identifier { id: "file", span: Span { start: Position { line: 221, column: 49, }, end: Position { line: 221, column: 53, }, }, }, ), }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: " in ", span: Span { start: Position { line: 221, column: 57, }, end: Position { line: 221, column: 61, }, }, }, ), ], span: Span { start: Position { line: 221, column: 56, }, end: Position { line: 221, column: 62, }, }, }, ), }, ), operator: Addition, right: Identifier( Identifier { id: "packedRefsName", span: Span { start: Position { line: 221, column: 65, }, end: Position { line: 221, column: 79, }, }, }, ), }, ), ], }, ), else_: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 222, column: 22, }, end: Position { line: 222, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "head", span: Span { start: Position { line: 222, column: 26, }, end: Position { line: 222, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "matchRef", span: Span { start: Position { line: 222, column: 32, }, end: Position { line: 222, column: 40, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 222, column: 42, }, end: Position { line: 222, column: 45, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "head", span: Span { start: Position { line: 222, column: 46, }, end: Position { line: 222, column: 50, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "refs", span: Span { start: Position { line: 222, column: 51, }, end: Position { line: 222, column: 55, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 220, column: 17, }, end: Position { line: 222, column: 57, }, }, }, ), span: Span { start: Position { line: 214, column: 14, }, end: Position { line: 222, column: 57, }, }, }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 224, column: 17, }, end: Position { line: 224, column: 22, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "Not a .git directory: ", span: Span { start: Position { line: 224, column: 25, }, end: Position { line: 224, column: 47, }, }, }, ), ], span: Span { start: Position { line: 224, column: 24, }, end: Position { line: 224, column: 48, }, }, }, ), operator: Addition, right: Identifier( Identifier { id: "path", span: Span { start: Position { line: 224, column: 51, }, end: Position { line: 224, column: 55, }, }, }, ), }, ), ], }, ), span: Span { start: Position { line: 210, column: 17, }, end: Position { line: 224, column: 56, }, }, }, ), span: Span { start: Position { line: 200, column: 17, }, end: Position { line: 224, column: 56, }, }, }, ), span: Span { start: Position { line: 184, column: 12, }, end: Position { line: 224, column: 56, }, }, }, ), span: Span { start: Position { line: 178, column: 9, }, end: Position { line: 224, column: 56, }, }, }, ), span: Span { start: Position { line: 177, column: 36, }, end: Position { line: 224, column: 56, }, }, }, ), span: Span { start: Position { line: 177, column: 30, }, end: Position { line: 224, column: 56, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "readCommitFromFile", span: Span { start: Position { line: 225, column: 8, }, end: Position { line: 225, column: 26, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "HEAD", span: Span { start: Position { line: 225, column: 28, }, end: Position { line: 225, column: 32, }, }, }, ), ], span: Span { start: Position { line: 225, column: 27, }, end: Position { line: 225, column: 33, }, }, }, ), ], }, ), span: Span { start: Position { line: 177, column: 5, }, end: Position { line: 225, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pathHasContext", span: Span { start: Position { line: 227, column: 3, }, end: Position { line: 227, column: 17, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 227, column: 20, }, end: Position { line: 227, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasContext", span: Span { start: Position { line: 227, column: 29, }, end: Position { line: 227, column: 39, }, }, }, ), ], default: Some( FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 227, column: 44, }, end: Position { line: 227, column: 47, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasPrefix", span: Span { start: Position { line: 227, column: 48, }, end: Position { line: 227, column: 57, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "storeDir", span: Span { start: Position { line: 227, column: 58, }, end: Position { line: 227, column: 66, }, }, }, ), ], }, ), ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "canCleanSource", span: Span { start: Position { line: 229, column: 3, }, end: Position { line: 229, column: 17, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "src", }, ), body: BinaryOperation( BinaryOperation { left: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "src", span: Span { start: Position { line: 229, column: 25, }, end: Position { line: 229, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "_isLibCleanSourceWith", span: Span { start: Position { line: 229, column: 31, }, end: Position { line: 229, column: 52, }, }, }, ), ], }, ), operator: LogicalOr, right: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pathHasContext", span: Span { start: Position { line: 229, column: 58, }, end: Position { line: 229, column: 72, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 229, column: 74, }, end: Position { line: 229, column: 82, }, }, }, ), arguments: [ Identifier( Identifier { id: "src", span: Span { start: Position { line: 229, column: 83, }, end: Position { line: 229, column: 86, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 229, column: 56, }, end: Position { line: 229, column: 88, }, }, }, ), }, ), span: Span { start: Position { line: 229, column: 20, }, end: Position { line: 229, column: 88, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "toSourceAttributes", span: Span { start: Position { line: 242, column: 3, }, end: Position { line: 242, column: 21, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "src", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isFiltered", span: Span { start: Position { line: 244, column: 7, }, end: Position { line: 244, column: 17, }, }, }, ), ], to: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "src", span: Span { start: Position { line: 244, column: 20, }, end: Position { line: 244, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "_isLibCleanSourceWith", span: Span { start: Position { line: 244, column: 26, }, end: Position { line: 244, column: 47, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "origSrc", span: Span { start: Position { line: 248, column: 7, }, end: Position { line: 248, column: 14, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: Identifier( Identifier { id: "isFiltered", span: Span { start: Position { line: 248, column: 20, }, end: Position { line: 248, column: 30, }, }, }, ), then: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "src", span: Span { start: Position { line: 248, column: 36, }, end: Position { line: 248, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "origSrc", span: Span { start: Position { line: 248, column: 40, }, end: Position { line: 248, column: 47, }, }, }, ), ], default: None, }, ), else_: Identifier( Identifier { id: "src", span: Span { start: Position { line: 248, column: 53, }, end: Position { line: 248, column: 56, }, }, }, ), span: Span { start: Position { line: 248, column: 17, }, end: Position { line: 248, column: 56, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 249, column: 7, }, end: Position { line: 249, column: 13, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: Identifier( Identifier { id: "isFiltered", span: Span { start: Position { line: 249, column: 19, }, end: Position { line: 249, column: 29, }, }, }, ), then: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "src", span: Span { start: Position { line: 249, column: 35, }, end: Position { line: 249, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 249, column: 39, }, end: Position { line: 249, column: 45, }, }, }, ), ], default: None, }, ), else_: Function( Function { head: Simple( FunctionHeadSimple { identifier: "_", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "_", }, ), body: Identifier( Identifier { id: "true", span: Span { start: Position { line: 249, column: 57, }, end: Position { line: 249, column: 61, }, }, }, ), span: Span { start: Position { line: 249, column: 54, }, end: Position { line: 249, column: 61, }, }, }, ), span: Span { start: Position { line: 249, column: 51, }, end: Position { line: 249, column: 61, }, }, }, ), span: Span { start: Position { line: 249, column: 16, }, end: Position { line: 249, column: 61, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 250, column: 7, }, end: Position { line: 250, column: 11, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: Identifier( Identifier { id: "isFiltered", span: Span { start: Position { line: 250, column: 17, }, end: Position { line: 250, column: 27, }, }, }, ), then: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "src", span: Span { start: Position { line: 250, column: 33, }, end: Position { line: 250, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 250, column: 37, }, end: Position { line: 250, column: 41, }, }, }, ), ], default: None, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "source", span: Span { start: Position { line: 250, column: 48, }, end: Position { line: 250, column: 54, }, }, }, ), ], span: Span { start: Position { line: 250, column: 47, }, end: Position { line: 250, column: 55, }, }, }, ), span: Span { start: Position { line: 250, column: 14, }, end: Position { line: 250, column: 55, }, }, }, ), }, ), ], span: Span { start: Position { line: 246, column: 5, }, end: Position { line: 251, column: 6, }, }, }, ), span: Span { start: Position { line: 243, column: 5, }, end: Position { line: 251, column: 6, }, }, }, ), span: Span { start: Position { line: 242, column: 24, }, end: Position { line: 251, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fromSourceAttributes", span: Span { start: Position { line: 256, column: 3, }, end: Position { line: 256, column: 23, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "origSrc", default: None, }, FunctionHeadDestructuredArgument { identifier: "filter", default: None, }, FunctionHeadDestructuredArgument { identifier: "name", default: None, }, ], }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "_isLibCleanSourceWith", span: Span { start: Position { line: 258, column: 7, }, end: Position { line: 258, column: 28, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 258, column: 31, }, end: Position { line: 258, column: 35, }, }, }, ), }, ), Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "origSrc", span: Span { start: Position { line: 259, column: 15, }, end: Position { line: 259, column: 22, }, }, }, ), Raw( PartRaw { content: "filter", span: Span { start: Position { line: 259, column: 23, }, end: Position { line: 259, column: 29, }, }, }, ), Raw( PartRaw { content: "name", span: Span { start: Position { line: 259, column: 30, }, end: Position { line: 259, column: 34, }, }, }, ), ], span: Span { start: Position { line: 257, column: 6, }, end: Position { line: 259, column: 35, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "outPath", span: Span { start: Position { line: 260, column: 7, }, end: Position { line: 260, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 260, column: 17, }, end: Position { line: 260, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 260, column: 26, }, end: Position { line: 260, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "filter", span: Span { start: Position { line: 260, column: 41, }, end: Position { line: 260, column: 47, }, }, }, ), Raw( PartRaw { content: "name", span: Span { start: Position { line: 260, column: 48, }, end: Position { line: 260, column: 52, }, }, }, ), ], span: Span { start: Position { line: 260, column: 32, }, end: Position { line: 260, column: 53, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 260, column: 54, }, end: Position { line: 260, column: 58, }, }, }, ), ], to: Identifier( Identifier { id: "origSrc", span: Span { start: Position { line: 260, column: 61, }, end: Position { line: 260, column: 68, }, }, }, ), }, ), ], span: Span { start: Position { line: 260, column: 31, }, end: Position { line: 260, column: 71, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 257, column: 5, }, end: Position { line: 261, column: 6, }, }, }, ), span: Span { start: Position { line: 256, column: 26, }, end: Position { line: 261, column: 6, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "pathType", span: Span { start: Position { line: 265, column: 5, }, end: Position { line: 265, column: 13, }, }, }, ), Raw( PartRaw { content: "pathIsDirectory", span: Span { start: Position { line: 266, column: 5, }, end: Position { line: 266, column: 20, }, }, }, ), Raw( PartRaw { content: "pathIsRegularFile", span: Span { start: Position { line: 267, column: 5, }, end: Position { line: 267, column: 22, }, }, }, ), Raw( PartRaw { content: "pathIsGitRepo", span: Span { start: Position { line: 269, column: 5, }, end: Position { line: 269, column: 18, }, }, }, ), Raw( PartRaw { content: "commitIdFromGitRepo", span: Span { start: Position { line: 270, column: 5, }, end: Position { line: 270, column: 24, }, }, }, ), Raw( PartRaw { content: "cleanSource", span: Span { start: Position { line: 272, column: 5, }, end: Position { line: 272, column: 16, }, }, }, ), Raw( PartRaw { content: "cleanSourceWith", span: Span { start: Position { line: 273, column: 5, }, end: Position { line: 273, column: 20, }, }, }, ), Raw( PartRaw { content: "cleanSourceFilter", span: Span { start: Position { line: 274, column: 5, }, end: Position { line: 274, column: 22, }, }, }, ), Raw( PartRaw { content: "pathHasContext", span: Span { start: Position { line: 275, column: 5, }, end: Position { line: 275, column: 19, }, }, }, ), Raw( PartRaw { content: "canCleanSource", span: Span { start: Position { line: 276, column: 5, }, end: Position { line: 276, column: 19, }, }, }, ), Raw( PartRaw { content: "sourceByRegex", span: Span { start: Position { line: 278, column: 5, }, end: Position { line: 278, column: 18, }, }, }, ), Raw( PartRaw { content: "sourceFilesBySuffices", span: Span { start: Position { line: 279, column: 5, }, end: Position { line: 279, column: 26, }, }, }, ), Raw( PartRaw { content: "trace", span: Span { start: Position { line: 281, column: 5, }, end: Position { line: 281, column: 10, }, }, }, ), ], span: Span { start: Position { line: 263, column: 5, }, end: Position { line: 282, column: 6, }, }, }, ), ], span: Span { start: Position { line: 263, column: 4, }, end: Position { line: 283, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 283, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 283, column: 2, }, }, }, )