src/compiler/module_resolution.panack
Green: covered; red: known zero; amber: unavailable. Blank lines are outside the executable-start-line denominator.
1 import project/src/compiler/module_bindings::{OwnedMethodIdentity, MethodOwnerIdentity, MethodOwnerIdentity.NominalMethodOwner, MethodOwnerIdentity.BuiltinMethodOwner, builtin_owner_arity, builtin_owner_module, method_owner_name} 2 pub import project/src/compiler/module_bindings::{module_internal_primitive_name, module_reserved_binding, module_import_names, module_binding_diagnostics, ModuleIdentity, DeclarationIdentity, ModuleDeclarationBinding, ModuleImportBinding, ModuleBindings, ModuleDeclarationKind, ModuleDeclarationKind.ModuleFunction, ModuleDeclarationKind.ModuleGuardedType, ModuleDeclarationKind.ModuleRecord, ModuleDeclarationKind.ModuleEnum, ModuleDeclarationKind.ModuleVariant} 3 pub import project/src/compiler/parser::{parse_reference_path, reference_head, reference_tail, expression_reference_path, type_has_qualification, lex, Expr, TopLevel, Statement, BlockValue, Program, Block, ParsedModule, ParsedTypeRef, ImportSelector, ImportBindingSyntax, DeclarationSyntax, SourcePos, SourceSpan, Diagnostic, Token, TokenKind, TokenKind.Identifier, Expr.LocatedExpr, Expr.NatExpr, Expr.DecimalExpr, Expr.StringExpr, Expr.BoolExpr, Expr.NameExpr, Expr.FunctionExpr, Expr.AnonymousExpr, Expr.ArrayExpr, Expr.UnaryExpr, Expr.BinaryExpr, Expr.CallExpr, Expr.DotCallExpr, Expr.OwnedCallExpr, Expr.FieldExpr, Expr.IndexExpr, Expr.IfExpr, Expr.BlockExpr, Expr.MatchExpr, TopLevel.ImportDeclaration, TopLevel.TypeDeclaration, TopLevel.RecordDeclaration, TopLevel.EnumDeclaration, TopLevel.FunctionDeclaration, Statement.BindingStatement, Statement.AssignmentStatement, Statement.ExpressionStatement, Statement.WhileStatement, Statement.ForStatement, BlockValue.NoBlockValue, BlockValue.TailBlockValue, ImportBindingSyntax.NoImportBinding, ImportBindingSyntax.NamespaceImportBinding, ImportBindingSyntax.SelectiveImportBinding} 4 5 // Resolve ordered import edges, aliases and re-exports to their original identities. 6 // Cycle detection tracks the active path separately from completed modules. 7 8 // Edges retain import order; paths are resolved by the loader, not guessed by 9 // the semantic resolver. Aliases and re-exports never mint declaration IDs. 10 pub record ModuleImportEdge { 11 owner: ModuleIdentity, 12 index: Nat, 13 target: ModuleIdentity 14 } 15 16 pub record ModuleBindingGraph { 17 modules: [ModuleBindings], 18 edges: [ModuleImportEdge] 19 } 20 21 pub enum ResolvedModuleTarget { 22 DeclarationTarget(ModuleDeclarationBinding), 23 NamespaceTarget(ModuleIdentity) 24 } 25 26 pub record ResolvedModuleReference { 27 spelling: Str, 28 target: ResolvedModuleTarget, 29 span: SourceSpan 30 } 31 32 pub pure binding_graph_module( 33 graph: ModuleBindingGraph, 34 identity: ModuleIdentity 35 ): Result[ModuleBindings, Str] { 36 mut found: Option[ModuleBindings] = None() 37 mut count: Nat = 0 38 39 for module in graph.modules { 40 if module.identity == identity { 41 found = Some(module) 42 count = count + 1 43 } 44 } 45 if count > 1 { 46 Error("duplicate module identity " + identity.path) 47 } else { 48 match found { 49 None() => Error("missing module " + identity.path), 50 Some(module) => Ok(module) 51 } 52 } 53 } 54 55 pub pure binding_graph_target( 56 graph: ModuleBindingGraph, 57 identity: ModuleIdentity, 58 index: Nat 59 ): Result[ModuleIdentity, Str] { 60 mut found: Option[ModuleIdentity] = None() 61 mut count: Nat = 0 62 63 for edge in graph.edges { 64 if edge.owner == identity && edge.index == index { 65 found = Some(edge.target) 66 count = count + 1 67 } 68 } 69 if count > 1 { 70 Error("ambiguous import target in " + identity.path) 71 } else { 72 match found { 73 None() => Error("missing import target in " + identity.path), 74 Some(target) => Ok(target) 75 } 76 } 77 } 78 79 pub pure module_identity_in(identities: [ModuleIdentity], identity: ModuleIdentity): Bool { 80 mut found: Bool = false 81 82 for candidate in identities { 83 found = found || candidate == identity 84 } 85 86 found 87 } 88 89 pure module_cycle_text(stack: [ModuleIdentity], identity: ModuleIdentity): Str { 90 mut text: Str = "" 91 92 for item in stack { 93 text = text + item.path + " -> " 94 } 95 "module import cycle: " + text + identity.path 96 } 97 98 pub record ModuleGraphWalk { 99 completed: [ModuleIdentity], 100 error: Option[Str] 101 } 102 103 pure binding_graph_visit( 104 graph: ModuleBindingGraph, 105 identity: ModuleIdentity, 106 stack: [ModuleIdentity], 107 state: ModuleGraphWalk 108 ): ModuleGraphWalk { 109 if module_identity_in(state.completed, identity) { 110 state 111 } else { 112 if module_identity_in(stack, identity) { 113 ModuleGraphWalk(state.completed, Some(module_cycle_text(stack, identity))) 114 } else { 115 match binding_graph_module(graph, identity) { 116 Error(message) => ModuleGraphWalk(state.completed, Some(message)), 117 Ok(module) => { 118 mut current: ModuleGraphWalk = state 119 mut index: Nat = 0 120 for imported in module.imports { 121 match current.error { 122 Some(message) => {}, 123 None() => match binding_graph_target(graph, identity, index) { 124 Error(message) => { 125 current = ModuleGraphWalk(current.completed, Some(message)) 126 }, 127 Ok(target) => { 128 current = binding_graph_visit(graph, target, stack.append(identity), current) 129 } 130 } 131 } 132 index = index + 1 133 } 134 match current.error { 135 Some(message) => current, 136 None() => ModuleGraphWalk(current.completed.append(identity), None()) 137 } 138 } 139 } 140 } 141 } 142 } 143 144 pub pure walk_module_graph(graph: ModuleBindingGraph): ModuleGraphWalk { 145 mut state: ModuleGraphWalk = ModuleGraphWalk([], None()) 146 147 for module in graph.modules { 148 match state.error { 149 Some(message) => {}, 150 None() => { 151 state = binding_graph_visit(graph, module.identity, [], state) 152 } 153 } 154 } 155 156 state 157 } 158 159 pure resolve_enum_member( 160 graph: ModuleBindingGraph, 161 declaration: ModuleDeclarationBinding, 162 member: Str 163 ): Result[ResolvedModuleTarget, Str] { 164 match declaration.kind { 165 ModuleEnum() => match binding_graph_module(graph, declaration.identity.module) { 166 Error(message) => Error(message), 167 Ok(module) => { 168 mut found: Option[ModuleDeclarationBinding] = None() 169 for candidate in module.declarations { 170 if candidate.kind == ModuleVariant(declaration.identity.name) && 171 candidate.identity.name == member { 172 found = Some(candidate) 173 } 174 } 175 match found { 176 None() => Error("enum " + declaration.identity.name + " has no variant " + member), 177 Some(variant) => Ok(DeclarationTarget(variant)) 178 } 179 } 180 }, 181 ModuleFunction() => Error("function is not a namespace: " + declaration.identity.name), 182 ModuleGuardedType() => Error("guarded type is not a namespace: " + declaration.identity.name), 183 ModuleRecord() => Error("record is not a namespace: " + declaration.identity.name), 184 ModuleVariant(parent) => Error("variant is not a namespace: " + declaration.identity.name) 185 } 186 } 187 188 pure resolve_target_member( 189 graph: ModuleBindingGraph, 190 target: ResolvedModuleTarget, 191 tail: Str, 192 stack: [ModuleIdentity] 193 ): Result[ResolvedModuleTarget, Str] { 194 if tail == "" { 195 Ok(target) 196 } else { 197 match target { 198 NamespaceTarget(identity) => resolve_module_path_inner(graph, identity, tail, true, stack), 199 DeclarationTarget(declaration) => resolve_enum_member(graph, declaration, tail) 200 } 201 } 202 } 203 204 pub pure resolve_module_path_inner( 205 graph: ModuleBindingGraph, 206 identity: ModuleIdentity, 207 spelling: Str, 208 exported: Bool, 209 stack: [ModuleIdentity] 210 ): Result[ResolvedModuleTarget, Str] { 211 if module_identity_in(stack, identity) { 212 Error(module_cycle_text(stack, identity)) 213 } else { 214 match binding_graph_module(graph, identity) { 215 Error(message) => Error(message), 216 Ok(module) => { 217 conflicts: [Diagnostic] = module_binding_diagnostics(module) 218 if conflicts.len() > 0 { 219 Error(conflicts[0].message) 220 } else { 221 head: Str = reference_head(spelling) 222 tail: Str = reference_tail(spelling) 223 next_stack: [ModuleIdentity] = stack.append(identity) 224 mut found: Bool = false 225 mut result: Result[ResolvedModuleTarget, Str] = Error("module " + identity.path + " has no binding " + spelling) 226 for declaration in module.declarations { 227 if declaration.identity.name == head && declaration.method == None() { 228 // A variant has a bare name only inside its declaring module. 229 selectable: Bool = match declaration.kind { 230 ModuleVariant(parent) => !exported, 231 ModuleFunction() => true, 232 ModuleGuardedType() => true, 233 ModuleRecord() => true, 234 ModuleEnum() => true 235 } 236 if selectable { 237 found = true 238 if exported && !declaration.is_public { 239 result = Error("module declaration " + head + " is private in " + identity.path) 240 } else { 241 result = resolve_target_member( 242 graph, 243 DeclarationTarget(declaration), 244 tail, 245 next_stack 246 ) 247 } 248 } 249 } 250 } 251 mut index: Nat = 0 252 for imported in module.imports { 253 for selector in module_import_names(imported) { 254 if !found && selector.alias == head { 255 found = true 256 if exported && !imported.is_public { 257 result = Error("import binding " + head + " is private in " + identity.path) 258 } else { 259 match binding_graph_target(graph, identity, index) { 260 Error(message) => { 261 result = Error(message) 262 }, 263 Ok(target) => { 264 selected: Result[ResolvedModuleTarget, Str] = if selector.name == "" { 265 Ok(NamespaceTarget(target)) 266 } else { 267 resolve_module_path_inner(graph, target, selector.name, true, next_stack) 268 } 269 result = match selected { 270 Error(message) => Error(message), 271 Ok(binding) => resolve_target_member(graph, binding, tail, next_stack) 272 } 273 } 274 } 275 } 276 } 277 } 278 index = index + 1 279 } 280 result 281 } 282 } 283 } 284 } 285 } 286 287 pub pure resolve_module_path( 288 graph: ModuleBindingGraph, 289 identity: ModuleIdentity, 290 spelling: Str 291 ): Result[ResolvedModuleTarget, Str] { 292 resolve_module_path_inner(graph, identity, spelling, false, []) 293 } 294 295 // Validate imports even when no use refers to them. No transitive opening or 296 // load-order fallback is permitted; every selective binding checks visibility. 297 pub pure module_graph_diagnostics(graph: ModuleBindingGraph): [Diagnostic] { 298 mut diagnostics: [Diagnostic] = [] 299 walked: ModuleGraphWalk = walk_module_graph(graph) 300 301 match walked.error { 302 None() => {}, 303 Some(message) => { 304 diagnostics = diagnostics.append(Diagnostic(message, SourcePos("", 0, 1, 1))) 305 } 306 } 307 for module in graph.modules { 308 diagnostics = diagnostics.concat(module_binding_diagnostics(module)) 309 mut index: Nat = 0 310 for imported in module.imports { 311 match binding_graph_target(graph, module.identity, index) { 312 Error(message) => { 313 diagnostics = diagnostics.append(Diagnostic(message, imported.span.start)) 314 }, 315 Ok(target) => { 316 match binding_graph_module(graph, target) { 317 Error(message) => { 318 diagnostics = diagnostics.append(Diagnostic(message, imported.span.start)) 319 }, 320 Ok(target_module) => { 321 for selector in module_import_names(imported) { 322 if selector.name != "" { 323 match resolve_module_path_inner(graph, target, selector.name, true, []) { 324 Error(message) => { 325 diagnostics = diagnostics.append(Diagnostic(message, selector.span.start)) 326 }, 327 Ok(binding) => {} 328 } 329 } 330 } 331 } 332 } 333 } 334 } 335 index = index + 1 336 } 337 } 338 339 diagnostics 340 } 341 342 // Classify dots before body binding. Value receivers use owned lookup only; 343 // namespace lookup failures never fall back to a value or ordinary function. 344 pub enum ResolvedDotCall { 345 NamespaceCall(ModuleDeclarationBinding, [Expr], [Str]), 346 OwnedDotCall(Expr, Str, [Expr], [Str]) 347 } 348 349 pub pure resolve_module_dot_call_scoped( 350 graph: ModuleBindingGraph, 351 identity: ModuleIdentity, 352 target: Expr, 353 name: Str, 354 arguments: [Expr], 355 types: [Str], 356 locals: Set[Str] 357 ): Result[ResolvedDotCall, Str] { 358 path: Str = expression_reference_path(target) 359 360 if path == "" || locals.has(reference_head(path)) { 361 Ok(OwnedDotCall(target, name, arguments, types)) 362 } else { 363 match resolve_module_path(graph, identity, reference_head(path)) { 364 Error(message) => Ok(OwnedDotCall(target, name, arguments, types)), 365 Ok(binding) => { 366 namespace_receiver: Bool = match binding { 367 NamespaceTarget(owner) => true, 368 DeclarationTarget(declaration) => declaration.kind == ModuleEnum() 369 } 370 if !namespace_receiver { 371 Ok(OwnedDotCall(target, name, arguments, types)) 372 } else { 373 match resolve_module_path(graph, identity, path + "." + name) { 374 Error(message) => Error(message), 375 Ok(resolved) => match resolved { 376 NamespaceTarget(owner) => Error("namespace cannot be called: " + path + "." + name), 377 DeclarationTarget(declaration) => match declaration.kind { 378 ModuleEnum() => Error("enum type cannot be called: " + path + "." + name), 379 ModuleFunction() => Ok(NamespaceCall(declaration, arguments, types)), 380 ModuleGuardedType() => Ok(NamespaceCall(declaration, arguments, types)), 381 ModuleRecord() => Ok(NamespaceCall(declaration, arguments, types)), 382 ModuleVariant(parent) => Ok(NamespaceCall(declaration, arguments, types)) 383 } 384 } 385 } 386 } 387 } 388 } 389 } 390 } 391 392 pub pure resolve_module_type( 393 graph: ModuleBindingGraph, 394 identity: ModuleIdentity, 395 name: Str 396 ): Result[ModuleDeclarationBinding, Str] { 397 match resolve_module_path(graph, identity, name) { 398 Error(message) => Error(message), 399 Ok(target) => match target { 400 NamespaceTarget(owner) => Error("namespace is not a type: " + name), 401 DeclarationTarget(declaration) => match declaration.kind { 402 ModuleRecord() => Ok(declaration), 403 ModuleEnum() => Ok(declaration), 404 ModuleGuardedType() => Ok(declaration), 405 ModuleFunction() => Error("function is not a type: " + name), 406 ModuleVariant(parent) => Error("variant is not a type: " + name) 407 } 408 } 409 } 410 } 411 412 pub pure resolve_module_function( 413 graph: ModuleBindingGraph, 414 identity: ModuleIdentity, 415 name: Str 416 ): Result[ModuleDeclarationBinding, Str] { 417 match resolve_module_path(graph, identity, name) { 418 Error(message) => Error(message), 419 Ok(target) => match target { 420 NamespaceTarget(owner) => Error("namespace is not a function: " + name), 421 DeclarationTarget(declaration) => { 422 if declaration.kind == ModuleFunction() { 423 Ok(declaration) 424 } else { 425 Error("declaration is not a function: " + name) 426 } 427 } 428 } 429 } 430 } 431 432 pub record ResolvedModuleUses { 433 references: [ResolvedModuleReference], 434 diagnostics: [Diagnostic] 435 } 436 437 pub pure combine_module_uses(left: ResolvedModuleUses, right: ResolvedModuleUses): ResolvedModuleUses { 438 ResolvedModuleUses( 439 left.references.concat(right.references), 440 left.diagnostics.concat(right.diagnostics) 441 ) 442 } 443 444 pure module_use_result( 445 spelling: Str, 446 span: SourceSpan, 447 resolved: Result[ResolvedModuleTarget, Str] 448 ): ResolvedModuleUses { 449 match resolved { 450 Error(message) => ResolvedModuleUses([], [Diagnostic(message, span.start)]), 451 Ok(target) => ResolvedModuleUses([ResolvedModuleReference(spelling, target, span)], []) 452 } 453 } 454 455 // Retain each qualified nominal leaf, including nested arrays/generic arguments. 456 // Arity, core/type-parameter validation and substitutions belong to the checker. 457 pub pure resolve_qualified_type_uses( 458 graph: ModuleBindingGraph, 459 identity: ModuleIdentity, 460 type_name: Str, 461 span: SourceSpan 462 ): ResolvedModuleUses { 463 mut result: ResolvedModuleUses = ResolvedModuleUses([], []) 464 465 match lex(type_name) { 466 Error(errors) => { 467 result = ResolvedModuleUses([], errors) 468 }, 469 Ok(tokens) => { 470 mut index: Nat = 0 471 while index < tokens.len() { 472 if tokens[index].kind == Identifier() { 473 match parse_reference_path(tokens, index) { 474 Error(error) => { 475 index = tokens.len() 476 result = combine_module_uses(result, ResolvedModuleUses([], [error])) 477 }, 478 Ok(path) => { 479 if type_has_qualification(path.text) { 480 resolved: Result[ResolvedModuleTarget, Str] = match resolve_module_type( 481 graph, 482 identity, 483 path.text 484 ) { 485 Error(message) => Error(message), 486 Ok(binding) => Ok(DeclarationTarget(binding)) 487 } 488 result = combine_module_uses(result, module_use_result(path.text, span, resolved)) 489 } 490 index = path.next 491 } 492 } 493 } else { 494 index = index + 1 495 } 496 } 497 } 498 } 499 500 result 501 } 502 503 pub pure module_head_is_namespace( 504 graph: ModuleBindingGraph, 505 identity: ModuleIdentity, 506 path: Str 507 ): Bool { 508 match resolve_module_path(graph, identity, reference_head(path)) { 509 Error(message) => false, 510 Ok(target) => match target { 511 NamespaceTarget(owner) => true, 512 DeclarationTarget(declaration) => declaration.kind == ModuleEnum() 513 } 514 } 515 } 516 517 pub pure resolve_module_expression_uses( 518 graph: ModuleBindingGraph, 519 identity: ModuleIdentity, 520 expression: Expr, 521 origin: SourceSpan, 522 locals: Set[Str] 523 ): ResolvedModuleUses { 524 mut result: ResolvedModuleUses = ResolvedModuleUses([], []) 525 526 match expression { 527 LocatedExpr(span, value, located_type_argument_spans) => { 528 result = resolve_module_expression_uses(graph, identity, value, span, locals) 529 }, 530 OwnedCallExpr(target, name, arguments, types) => { 531 result = resolve_module_expression_uses(graph, identity, target, origin, locals) 532 for argument in arguments { 533 checked: ResolvedModuleUses = resolve_module_expression_uses(graph, identity, argument, origin, locals) 534 result = ResolvedModuleUses(result.references.concat(checked.references), result.diagnostics.concat(checked.diagnostics)) 535 } 536 }, 537 DotCallExpr(target, name, arguments, types) => { 538 match resolve_module_dot_call_scoped( 539 graph, 540 identity, 541 target, 542 name, 543 arguments, 544 types, 545 locals 546 ) { 547 Error(message) => { 548 result = ResolvedModuleUses([], [Diagnostic(message, origin.start)]) 549 }, 550 Ok(call) => match call { 551 OwnedDotCall(receiver, method, values, type_arguments) => { 552 result = resolve_module_expression_uses(graph, identity, receiver, origin, locals) 553 }, 554 NamespaceCall(declaration, values, type_arguments) => { 555 result = module_use_result( 556 expression_reference_path(target) + "." + name, 557 origin, 558 Ok(DeclarationTarget(declaration)) 559 ) 560 } 561 } 562 } 563 for argument in arguments { 564 result = combine_module_uses( 565 result, 566 resolve_module_expression_uses(graph, identity, argument, origin, locals) 567 ) 568 } 569 for type_name in types { 570 result = combine_module_uses( 571 result, 572 resolve_qualified_type_uses(graph, identity, type_name, origin) 573 ) 574 } 575 }, 576 AnonymousExpr(effect, parameters, result_type, body) => { 577 mut nested: Set[Str] = locals 578 for parameter in parameters { 579 nested = nested.add(parameter.name) 580 match parameter.annotation { 581 None() => {}, 582 Some(type_ref) => { 583 result = combine_module_uses(result, 584 resolve_qualified_type_uses(graph, identity, type_ref.text, type_ref.span)) 585 } 586 } 587 } 588 match result_type { 589 None() => {}, 590 Some(type_ref) => { 591 result = combine_module_uses(result, 592 resolve_qualified_type_uses(graph, identity, type_ref.text, type_ref.span)) 593 } 594 } 595 result = combine_module_uses(result, 596 resolve_module_expression_uses(graph, identity, body, origin, nested)) 597 }, 598 FunctionExpr(name) => { 599 resolved: Result[ResolvedModuleTarget, Str] = match resolve_module_function( 600 graph, 601 identity, 602 name 603 ) { 604 Error(message) => Error(message), 605 Ok(binding) => Ok(DeclarationTarget(binding)) 606 } 607 result = module_use_result(name, origin, resolved) 608 }, 609 FieldExpr(target, field) => { 610 path: Str = expression_reference_path(expression) 611 if path != "" && !locals.has(reference_head(path)) && module_head_is_namespace( 612 graph, 613 identity, 614 path 615 ) { 616 resolved: Result[ResolvedModuleTarget, Str] = match resolve_module_path( 617 graph, 618 identity, 619 path 620 ) { 621 Error(message) => Error(message), 622 Ok(binding) => Error("qualified binding is not a value: " + path) 623 } 624 result = module_use_result(path, origin, resolved) 625 } else { 626 result = resolve_module_expression_uses(graph, identity, target, origin, locals) 627 } 628 }, 629 NameExpr(name) => { 630 if !locals.has(name) && module_head_is_namespace(graph, identity, name) { 631 result = ResolvedModuleUses( 632 [], 633 [Diagnostic("namespace or enum type is not a value: " + name, origin.start)] 634 ) 635 } 636 }, 637 CallExpr(name, arguments, types) => { 638 if !module_reserved_binding(name) && !module_internal_primitive_name(identity, name) { 639 resolved: Result[ResolvedModuleTarget, Str] = match resolve_module_path( 640 graph, 641 identity, 642 name 643 ) { 644 Error(message) => Error(message), 645 Ok(binding) => match binding { 646 NamespaceTarget(owner) => Error("namespace cannot be called: " + name), 647 DeclarationTarget(declaration) => { 648 if declaration.kind == ModuleEnum() { 649 Error("enum type cannot be called: " + name) 650 } else { 651 Ok(binding) 652 } 653 } 654 } 655 } 656 result = module_use_result(name, origin, resolved) 657 } 658 for argument in arguments { 659 result = combine_module_uses( 660 result, 661 resolve_module_expression_uses(graph, identity, argument, origin, locals) 662 ) 663 } 664 for type_name in types { 665 result = combine_module_uses( 666 result, 667 resolve_qualified_type_uses(graph, identity, type_name, origin) 668 ) 669 } 670 }, 671 ArrayExpr(items) => { 672 for item in items { 673 result = combine_module_uses( 674 result, 675 resolve_module_expression_uses(graph, identity, item, origin, locals) 676 ) 677 } 678 }, 679 UnaryExpr(operator, operand) => { 680 result = resolve_module_expression_uses(graph, identity, operand, origin, locals) 681 }, 682 BinaryExpr(operator, left, right) => { 683 result = combine_module_uses( 684 resolve_module_expression_uses(graph, identity, left, origin, locals), 685 resolve_module_expression_uses(graph, identity, right, origin, locals) 686 ) 687 }, 688 IndexExpr(target, index) => { 689 result = combine_module_uses( 690 resolve_module_expression_uses(graph, identity, target, origin, locals), 691 resolve_module_expression_uses(graph, identity, index, origin, locals) 692 ) 693 }, 694 IfExpr(condition, yes, no, has_else) => { 695 result = resolve_module_expression_uses(graph, identity, condition, origin, locals) 696 result = combine_module_uses( 697 result, 698 resolve_module_block_uses(graph, identity, yes, origin, locals) 699 ) 700 result = combine_module_uses( 701 result, 702 resolve_module_block_uses(graph, identity, no, origin, locals) 703 ) 704 }, 705 BlockExpr(block) => { 706 result = resolve_module_block_uses(graph, identity, block, origin, locals) 707 }, 708 MatchExpr(subject, arms) => { 709 result = resolve_module_expression_uses(graph, identity, subject, origin, locals) 710 for arm in arms { 711 name: Str = arm.pattern.variant 712 if type_has_qualification(name) { 713 resolved: Result[ResolvedModuleTarget, Str] = match resolve_module_path( 714 graph, 715 identity, 716 name 717 ) { 718 Error(message) => Error(message), 719 Ok(binding) => match binding { 720 NamespaceTarget(owner) => Error("namespace is not a variant: " + name), 721 DeclarationTarget(declaration) => match declaration.kind { 722 ModuleVariant(parent) => Ok(binding), 723 ModuleFunction() => Error("declaration is not a variant: " + name), 724 ModuleRecord() => Error("declaration is not a variant: " + name), 725 ModuleEnum() => Error("declaration is not a variant: " + name), 726 ModuleGuardedType() => Error("declaration is not a variant: " + name) 727 } 728 } 729 } 730 result = combine_module_uses(result, module_use_result(name, origin, resolved)) 731 } 732 mut arm_locals: Set[Str] = locals 733 for binding in arm.pattern.bindings { 734 arm_locals = arm_locals.add(binding) 735 } 736 result = combine_module_uses( 737 result, 738 resolve_module_expression_uses(graph, identity, arm.body, origin, arm_locals) 739 ) 740 } 741 }, 742 NatExpr(value) => {}, 743 DecimalExpr(text) => {}, 744 StringExpr(text) => {}, 745 BoolExpr(value) => {} 746 } 747 748 result 749 } 750 751 pub pure resolve_module_block_uses( 752 graph: ModuleBindingGraph, 753 identity: ModuleIdentity, 754 block: Block, 755 origin: SourceSpan, 756 locals: Set[Str] 757 ): ResolvedModuleUses { 758 mut result: ResolvedModuleUses = ResolvedModuleUses([], []) 759 mut visible: Set[Str] = locals 760 761 for statement in block.statements { 762 match statement { 763 BindingStatement(name, type_name, annotation_span, mutable, value) => { 764 result = combine_module_uses( 765 result, 766 resolve_qualified_type_uses(graph, identity, type_name, origin) 767 ) 768 result = combine_module_uses( 769 result, 770 resolve_module_expression_uses(graph, identity, value, origin, visible) 771 ) 772 visible = visible.add(name) 773 }, 774 AssignmentStatement(name, value) => { 775 result = combine_module_uses( 776 result, 777 resolve_module_expression_uses(graph, identity, value, origin, visible) 778 ) 779 visible = visible.add(name) 780 }, 781 ExpressionStatement(value) => { 782 result = combine_module_uses( 783 result, 784 resolve_module_expression_uses(graph, identity, value, origin, visible) 785 ) 786 }, 787 WhileStatement(condition, body) => { 788 result = combine_module_uses( 789 result, 790 resolve_module_expression_uses(graph, identity, condition, origin, visible) 791 ) 792 result = combine_module_uses( 793 result, 794 resolve_module_block_uses(graph, identity, body, origin, visible) 795 ) 796 }, 797 ForStatement(name, values, body) => { 798 result = combine_module_uses( 799 result, 800 resolve_module_expression_uses(graph, identity, values, origin, visible) 801 ) 802 result = combine_module_uses( 803 result, 804 resolve_module_block_uses(graph, identity, body, origin, visible.add(name)) 805 ) 806 } 807 } 808 } 809 match block.value { 810 NoBlockValue() => {}, 811 TailBlockValue(value) => { 812 result = combine_module_uses( 813 result, 814 resolve_module_expression_uses(graph, identity, value, origin, visible) 815 ) 816 } 817 } 818 819 result 820 } 821 822 pure imported_binding_names(graph: ModuleBindingGraph, module: ModuleBindings): Set[Str] { 823 mut names: Set[Str] = set() 824 825 for imported in module.imports { 826 for selector in module_import_names(imported) { 827 match resolve_module_path(graph, module.identity, selector.alias) { 828 Ok(binding) => match binding { 829 NamespaceTarget(owner) => {}, 830 DeclarationTarget(declaration) => { names = names.add(selector.alias) } 831 }, 832 Error(message) => { names = names.add(selector.alias) } 833 } 834 } 835 } 836 names 837 } 838 839 pure import_shadow_diagnostic(names: Set[Str], name: Str, origin: SourceSpan): [Diagnostic] { 840 if names.has(name) { 841 [Diagnostic("local binding " + name + " conflicts with an import binding", origin.start)] 842 } else { 843 [] 844 } 845 } 846 847 pure expression_import_shadows( 848 expression: Expr, 849 names: Set[Str], 850 origin: SourceSpan 851 ): [Diagnostic] { 852 mut diagnostics: [Diagnostic] = [] 853 854 match expression { 855 LocatedExpr(span, value, located_type_argument_spans) => { 856 diagnostics = expression_import_shadows(value, names, span) 857 }, 858 OwnedCallExpr(target, name, arguments, types) => { 859 diagnostics = expression_import_shadows(target, names, origin) 860 for argument in arguments { 861 diagnostics = diagnostics.concat(expression_import_shadows(argument, names, origin)) 862 } 863 }, 864 DotCallExpr(target, name, arguments, types) => { 865 diagnostics = expression_import_shadows(target, names, origin) 866 for argument in arguments { 867 diagnostics = diagnostics.concat(expression_import_shadows(argument, names, origin)) 868 } 869 }, 870 CallExpr(name, arguments, types) => { 871 for argument in arguments { 872 diagnostics = diagnostics.concat(expression_import_shadows(argument, names, origin)) 873 } 874 }, 875 ArrayExpr(items) => { 876 for item in items { 877 diagnostics = diagnostics.concat(expression_import_shadows(item, names, origin)) 878 } 879 }, 880 UnaryExpr(operator, operand) => { 881 diagnostics = expression_import_shadows(operand, names, origin) 882 }, 883 BinaryExpr(operator, left, right) => { 884 diagnostics = expression_import_shadows(left, names, origin).concat( 885 expression_import_shadows(right, names, origin) 886 ) 887 }, 888 FieldExpr(target, field) => { 889 diagnostics = expression_import_shadows(target, names, origin) 890 }, 891 IndexExpr(target, index) => { 892 diagnostics = expression_import_shadows(target, names, origin).concat( 893 expression_import_shadows(index, names, origin) 894 ) 895 }, 896 IfExpr(condition, yes, no, has_else) => { 897 diagnostics = expression_import_shadows(condition, names, origin) 898 diagnostics = diagnostics.concat(block_import_shadows(yes, names, origin)) 899 diagnostics = diagnostics.concat(block_import_shadows(no, names, origin)) 900 }, 901 BlockExpr(block) => { 902 diagnostics = block_import_shadows(block, names, origin) 903 }, 904 MatchExpr(subject, arms) => { 905 diagnostics = expression_import_shadows(subject, names, origin) 906 for arm in arms { 907 for name in arm.pattern.bindings { 908 diagnostics = diagnostics.concat(import_shadow_diagnostic(names, name, arm.pattern.span)) 909 } 910 diagnostics = diagnostics.concat(expression_import_shadows(arm.body, names, origin)) 911 } 912 }, 913 NatExpr(value) => {}, 914 DecimalExpr(text) => {}, 915 StringExpr(text) => {}, 916 BoolExpr(value) => {}, 917 NameExpr(name) => {}, 918 FunctionExpr(name) => {}, 919 AnonymousExpr(effect, parameters, result_type, body) => { 920 for parameter in parameters { 921 diagnostics = diagnostics.concat(import_shadow_diagnostic(names, parameter.name, parameter.span)) 922 } 923 diagnostics = diagnostics.concat(expression_import_shadows(body, names, origin)) 924 }, 925 } 926 927 diagnostics 928 } 929 930 pure block_import_shadows(block: Block, names: Set[Str], origin: SourceSpan): [Diagnostic] { 931 mut diagnostics: [Diagnostic] = [] 932 933 for statement in block.statements { 934 match statement { 935 BindingStatement(name, type_name, annotation_span, mutable, value) => { 936 diagnostics = diagnostics.concat(import_shadow_diagnostic(names, name, origin)) 937 diagnostics = diagnostics.concat(expression_import_shadows(value, names, origin)) 938 }, 939 AssignmentStatement(name, value) => { 940 diagnostics = diagnostics.concat(import_shadow_diagnostic(names, name, origin)) 941 diagnostics = diagnostics.concat(expression_import_shadows(value, names, origin)) 942 }, 943 ExpressionStatement(value) => { 944 diagnostics = diagnostics.concat(expression_import_shadows(value, names, origin)) 945 }, 946 WhileStatement(condition, body) => { 947 diagnostics = diagnostics.concat(expression_import_shadows(condition, names, origin)) 948 diagnostics = diagnostics.concat(block_import_shadows(body, names, origin)) 949 }, 950 ForStatement(name, values, body) => { 951 diagnostics = diagnostics.concat(import_shadow_diagnostic(names, name, origin)) 952 diagnostics = diagnostics.concat(expression_import_shadows(values, names, origin)) 953 diagnostics = diagnostics.concat(block_import_shadows(body, names, origin)) 954 } 955 } 956 } 957 match block.value { 958 NoBlockValue() => {}, 959 TailBlockValue(value) => { 960 diagnostics = diagnostics.concat(expression_import_shadows(value, names, origin)) 961 } 962 } 963 964 diagnostics 965 } 966 967 pub pure module_import_shadow_diagnostics(graph: ModuleBindingGraph, module: ModuleBindings, parsed: ParsedModule): [Diagnostic] { 968 names: Set[Str] = imported_binding_names(graph, module) 969 // Only lexical values may shadow namespaces; type binders still reserve imports. 970 mut type_names: Set[Str] = names 971 for imported in module.imports { 972 for selector in module_import_names(imported) { 973 type_names = type_names.add(selector.alias) 974 } 975 } 976 mut diagnostics: [Diagnostic] = [] 977 mut index: Nat = 0 978 979 for declaration in parsed.program.declarations { 980 origin: SourceSpan = parsed.syntax[index].span 981 match declaration { 982 ImportDeclaration(path) => {}, 983 TypeDeclaration(name, base, guard_name, guard) => { 984 diagnostics = diagnostics.concat(import_shadow_diagnostic(names, guard_name, origin)) 985 diagnostics = diagnostics.concat(expression_import_shadows(guard, names, origin)) 986 }, 987 RecordDeclaration(name, parameters, fields) => { 988 for parameter in parameters { 989 diagnostics = diagnostics.concat(import_shadow_diagnostic(type_names, parameter, origin)) 990 } 991 }, 992 EnumDeclaration(name, parameters, variants) => { 993 for parameter in parameters { 994 diagnostics = diagnostics.concat(import_shadow_diagnostic(type_names, parameter, origin)) 995 } 996 }, 997 FunctionDeclaration(name, parameters, return_type, is_pure, is_async, body, type_parameters) => { 998 for parameter in parameters { 999 diagnostics = diagnostics.concat(import_shadow_diagnostic(names, parameter.name, origin)) 1000 } 1001 for parameter in type_parameters { 1002 diagnostics = diagnostics.concat(import_shadow_diagnostic(type_names, parameter, origin)) 1003 } 1004 diagnostics = diagnostics.concat(block_import_shadows(body, names, origin)) 1005 } 1006 } 1007 index = index + 1 1008 } 1009 1010 diagnostics 1011 } 1012 1013 pub pure resolve_module_dot_call( 1014 graph: ModuleBindingGraph, 1015 identity: ModuleIdentity, 1016 target: Expr, 1017 name: Str, 1018 arguments: [Expr], 1019 types: [Str] 1020 ): Result[ResolvedDotCall, Str] { 1021 resolve_module_dot_call_scoped(graph, identity, target, name, arguments, types, set()) 1022 } 1023 1024 // The enclosing module identity includes package identity; owner and method 1025 // indexes are separate from the ordinary function/import namespace. 1026 pub pure resolve_owned_method( 1027 graph: ModuleBindingGraph, owner: DeclarationIdentity, name: Str 1028 ): Result[ModuleDeclarationBinding, Str] { 1029 resolve_method_owner(graph, NominalMethodOwner(owner), owner.module, name) 1030 } 1031 1032 pub pure resolve_builtin_owned_method( 1033 graph: ModuleBindingGraph, family: Str, name: Str 1034 ): Result[ModuleDeclarationBinding, Str] { 1035 if family == "PureFn" || family == "Fn" || family == "AsyncFn" { 1036 resolve_method_owner(graph, BuiltinMethodOwner(family), builtin_owner_module(), name) 1037 } else { 1038 match builtin_owner_arity(family) { 1039 None() => Error("unknown built-in method owner " + family), 1040 Some(arity) => resolve_method_owner(graph, BuiltinMethodOwner(family), builtin_owner_module(), name) 1041 } 1042 } 1043 } 1044 1045 pure resolve_method_owner( 1046 graph: ModuleBindingGraph, owner: MethodOwnerIdentity, module_identity: ModuleIdentity, name: Str 1047 ): Result[ModuleDeclarationBinding, Str] { 1048 owner_name: Str = method_owner_name(owner) 1049 match binding_graph_module(graph, module_identity) { 1050 Error(message) => Error(message), 1051 Ok(module) => { 1052 mut result: Result[ModuleDeclarationBinding, Str] = Error("unknown owned method " + owner_name + "." + name) 1053 if module.methods.has(owner_name) { 1054 methods: Map[Str, ModuleDeclarationBinding] = module.methods.get(owner_name) 1055 if methods.has(name) { 1056 binding: ModuleDeclarationBinding = methods.get(name) 1057 if binding.identity.module == module_identity && 1058 binding.method == Some(OwnedMethodIdentity(owner, name)) { 1059 result = Ok(binding) 1060 } 1061 } 1062 } 1063 result 1064 } 1065 } 1066 } 1067
Functions
[
{
"id": "declaration/7",
"name": "binding_graph_module",
"line": 32,
"state": "covered",
"entries": "81593"
},
{
"id": "declaration/8",
"name": "binding_graph_target",
"line": 55,
"state": "covered",
"entries": "20723"
},
{
"id": "declaration/9",
"name": "module_identity_in",
"line": 79,
"state": "covered",
"entries": "61963"
},
{
"id": "declaration/10",
"name": "module_cycle_text",
"line": 89,
"state": "covered",
"entries": "3"
},
{
"id": "declaration/12",
"name": "binding_graph_visit",
"line": 103,
"state": "covered",
"entries": "1463"
},
{
"id": "declaration/13",
"name": "walk_module_graph",
"line": 144,
"state": "covered",
"entries": "187"
},
{
"id": "declaration/14",
"name": "resolve_enum_member",
"line": 159,
"state": "covered",
"entries": "7678"
},
{
"id": "declaration/15",
"name": "resolve_target_member",
"line": 188,
"state": "covered",
"entries": "56501"
},
{
"id": "declaration/16",
"name": "resolve_module_path_inner",
"line": 204,
"state": "covered",
"entries": "56551"
},
{
"id": "declaration/17",
"name": "resolve_module_path",
"line": 287,
"state": "covered",
"entries": "31467"
},
{
"id": "declaration/18",
"name": "module_graph_diagnostics",
"line": 297,
"state": "covered",
"entries": "185"
},
{
"id": "declaration/20",
"name": "resolve_module_dot_call_scoped",
"line": 349,
"state": "covered",
"entries": "24289"
},
{
"id": "declaration/21",
"name": "resolve_module_type",
"line": 392,
"state": "covered",
"entries": "7680"
},
{
"id": "declaration/22",
"name": "resolve_module_function",
"line": 412,
"state": "covered",
"entries": "115"
},
{
"id": "declaration/24",
"name": "combine_module_uses",
"line": 437,
"state": "covered",
"entries": "567"
},
{
"id": "declaration/25",
"name": "module_use_result",
"line": 444,
"state": "covered",
"entries": "37"
},
{
"id": "declaration/26",
"name": "resolve_qualified_type_uses",
"line": 457,
"state": "covered",
"entries": "63"
},
{
"id": "declaration/27",
"name": "module_head_is_namespace",
"line": 503,
"state": "covered",
"entries": "11"
},
{
"id": "declaration/28",
"name": "resolve_module_expression_uses",
"line": 517,
"state": "covered",
"entries": "2604"
},
{
"id": "declaration/29",
"name": "resolve_module_block_uses",
"line": 751,
"state": "covered",
"entries": "38"
},
{
"id": "declaration/30",
"name": "imported_binding_names",
"line": 822,
"state": "covered",
"entries": "1408"
},
{
"id": "declaration/31",
"name": "import_shadow_diagnostic",
"line": 839,
"state": "covered",
"entries": "36423"
},
{
"id": "declaration/32",
"name": "expression_import_shadows",
"line": 847,
"state": "covered",
"entries": "322396"
},
{
"id": "declaration/33",
"name": "block_import_shadows",
"line": 930,
"state": "covered",
"entries": "23211"
},
{
"id": "declaration/34",
"name": "module_import_shadow_diagnostics",
"line": 967,
"state": "covered",
"entries": "1408"
},
{
"id": "declaration/35",
"name": "resolve_module_dot_call",
"line": 1013,
"state": "covered",
"entries": "4"
},
{
"id": "declaration/36",
"name": "resolve_owned_method",
"line": 1026,
"state": "covered",
"entries": "354"
},
{
"id": "declaration/37",
"name": "resolve_builtin_owned_method",
"line": 1032,
"state": "covered",
"entries": "12621"
},
{
"id": "declaration/38",
"name": "resolve_method_owner",
"line": 1045,
"state": "covered",
"entries": "12975"
}
]Source branch outcomes
[
{
"id": "declaration/7/statement/2/decision/body",
"outcome": "body",
"line": 39,
"state": "covered",
"hits": "3359958"
},
{
"id": "declaration/7/statement/2/decision/exit",
"outcome": "exit",
"line": 39,
"state": "covered",
"hits": "81593"
},
{
"id": "declaration/7/statement/2/body/tail/decision/true",
"outcome": "true",
"line": 40,
"state": "covered",
"hits": "81548"
},
{
"id": "declaration/7/statement/2/body/tail/decision/false",
"outcome": "false",
"line": 40,
"state": "covered",
"hits": "3278410"
},
{
"id": "declaration/7/tail/decision/true",
"outcome": "true",
"line": 45,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/7/tail/decision/false",
"outcome": "false",
"line": 45,
"state": "covered",
"hits": "81592"
},
{
"id": "declaration/7/tail/false/tail/arm/0",
"outcome": "None",
"line": 49,
"state": "covered",
"hits": "46"
},
{
"id": "declaration/7/tail/false/tail/arm/1",
"outcome": "Some",
"line": 50,
"state": "covered",
"hits": "81546"
},
{
"id": "declaration/8/statement/2/decision/body",
"outcome": "body",
"line": 63,
"state": "covered",
"hits": "6346136"
},
{
"id": "declaration/8/statement/2/decision/exit",
"outcome": "exit",
"line": 63,
"state": "covered",
"hits": "20723"
},
{
"id": "declaration/8/statement/2/body/tail/decision/true",
"outcome": "true",
"line": 64,
"state": "covered",
"hits": "20715"
},
{
"id": "declaration/8/statement/2/body/tail/decision/false",
"outcome": "false",
"line": 64,
"state": "covered",
"hits": "6325421"
},
{
"id": "declaration/8/statement/2/body/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 64,
"state": "covered",
"hits": "307749"
},
{
"id": "declaration/8/statement/2/body/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 64,
"state": "covered",
"hits": "6038387"
},
{
"id": "declaration/8/tail/decision/true",
"outcome": "true",
"line": 69,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/8/tail/decision/false",
"outcome": "false",
"line": 69,
"state": "covered",
"hits": "20723"
},
{
"id": "declaration/8/tail/false/tail/arm/0",
"outcome": "None",
"line": 73,
"state": "covered",
"hits": "8"
},
{
"id": "declaration/8/tail/false/tail/arm/1",
"outcome": "Some",
"line": 74,
"state": "covered",
"hits": "20715"
},
{
"id": "declaration/9/statement/1/decision/body",
"outcome": "body",
"line": 82,
"state": "covered",
"hits": "37620"
},
{
"id": "declaration/9/statement/1/decision/exit",
"outcome": "exit",
"line": 82,
"state": "covered",
"hits": "61963"
},
{
"id": "declaration/9/statement/1/body/statement/0/value/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 83,
"state": "covered",
"hits": "31215"
},
{
"id": "declaration/9/statement/1/body/statement/0/value/decision/skip-right",
"outcome": "skip-right",
"line": 83,
"state": "covered",
"hits": "6405"
},
{
"id": "declaration/10/statement/1/decision/body",
"outcome": "body",
"line": 92,
"state": "covered",
"hits": "6"
},
{
"id": "declaration/10/statement/1/decision/exit",
"outcome": "exit",
"line": 92,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/12/tail/decision/true",
"outcome": "true",
"line": 109,
"state": "covered",
"hits": "758"
},
{
"id": "declaration/12/tail/decision/false",
"outcome": "false",
"line": 109,
"state": "covered",
"hits": "705"
},
{
"id": "declaration/12/tail/false/tail/decision/true",
"outcome": "true",
"line": 112,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/12/tail/false/tail/decision/false",
"outcome": "false",
"line": 112,
"state": "covered",
"hits": "702"
},
{
"id": "declaration/12/tail/false/tail/false/tail/arm/0",
"outcome": "Error",
"line": 116,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/12/tail/false/tail/false/tail/arm/1",
"outcome": "Ok",
"line": 117,
"state": "covered",
"hits": "699"
},
{
"id": "declaration/12/tail/false/tail/false/tail/arm/1/body/block/statement/2/decision/body",
"outcome": "body",
"line": 120,
"state": "covered",
"hits": "770"
},
{
"id": "declaration/12/tail/false/tail/false/tail/arm/1/body/block/statement/2/decision/exit",
"outcome": "exit",
"line": 120,
"state": "covered",
"hits": "699"
},
{
"id": "declaration/12/tail/false/tail/false/tail/arm/1/body/block/statement/2/body/statement/0/value/arm/0",
"outcome": "Some",
"line": 122,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/12/tail/false/tail/false/tail/arm/1/body/block/statement/2/body/statement/0/value/arm/1",
"outcome": "None",
"line": 123,
"state": "covered",
"hits": "767"
},
{
"id": "declaration/12/tail/false/tail/false/tail/arm/1/body/block/statement/2/body/statement/0/value/arm/1/body/arm/0",
"outcome": "Error",
"line": 124,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/12/tail/false/tail/false/tail/arm/1/body/block/statement/2/body/statement/0/value/arm/1/body/arm/1",
"outcome": "Ok",
"line": 127,
"state": "covered",
"hits": "766"
},
{
"id": "declaration/12/tail/false/tail/false/tail/arm/1/body/block/tail/arm/0",
"outcome": "Some",
"line": 135,
"state": "covered",
"hits": "9"
},
{
"id": "declaration/12/tail/false/tail/false/tail/arm/1/body/block/tail/arm/1",
"outcome": "None",
"line": 136,
"state": "covered",
"hits": "690"
},
{
"id": "declaration/13/statement/1/decision/body",
"outcome": "body",
"line": 147,
"state": "covered",
"hits": "715"
},
{
"id": "declaration/13/statement/1/decision/exit",
"outcome": "exit",
"line": 147,
"state": "covered",
"hits": "187"
},
{
"id": "declaration/13/statement/1/body/tail/arm/0",
"outcome": "Some",
"line": 149,
"state": "covered",
"hits": "18"
},
{
"id": "declaration/13/statement/1/body/tail/arm/1",
"outcome": "None",
"line": 150,
"state": "covered",
"hits": "697"
},
{
"id": "declaration/14/tail/arm/0",
"outcome": "ModuleEnum",
"line": 165,
"state": "covered",
"hits": "7678"
},
{
"id": "declaration/14/tail/arm/0/body/arm/0",
"outcome": "Error",
"line": 166,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/14/tail/arm/0/body/arm/1",
"outcome": "Ok",
"line": 167,
"state": "covered",
"hits": "7678"
},
{
"id": "declaration/14/tail/arm/0/body/arm/1/body/block/statement/1/decision/body",
"outcome": "body",
"line": 169,
"state": "covered",
"hits": "675834"
},
{
"id": "declaration/14/tail/arm/0/body/arm/1/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 169,
"state": "covered",
"hits": "7678"
},
{
"id": "declaration/14/tail/arm/0/body/arm/1/body/block/statement/1/body/tail/decision/true",
"outcome": "true",
"line": 170,
"state": "covered",
"hits": "7678"
},
{
"id": "declaration/14/tail/arm/0/body/arm/1/body/block/statement/1/body/tail/decision/false",
"outcome": "false",
"line": 170,
"state": "covered",
"hits": "668156"
},
{
"id": "declaration/14/tail/arm/0/body/arm/1/body/block/statement/1/body/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 170,
"state": "covered",
"hits": "110145"
},
{
"id": "declaration/14/tail/arm/0/body/arm/1/body/block/statement/1/body/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 170,
"state": "covered",
"hits": "565689"
},
{
"id": "declaration/14/tail/arm/0/body/arm/1/body/block/tail/arm/0",
"outcome": "None",
"line": 176,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/14/tail/arm/0/body/arm/1/body/block/tail/arm/1",
"outcome": "Some",
"line": 177,
"state": "covered",
"hits": "7678"
},
{
"id": "declaration/14/tail/arm/1",
"outcome": "ModuleFunction",
"line": 181,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/14/tail/arm/2",
"outcome": "ModuleGuardedType",
"line": 182,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/14/tail/arm/3",
"outcome": "ModuleRecord",
"line": 183,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/14/tail/arm/4",
"outcome": "ModuleVariant",
"line": 184,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/15/tail/decision/true",
"outcome": "true",
"line": 194,
"state": "covered",
"hits": "47671"
},
{
"id": "declaration/15/tail/decision/false",
"outcome": "false",
"line": 194,
"state": "covered",
"hits": "8830"
},
{
"id": "declaration/15/tail/false/tail/arm/0",
"outcome": "NamespaceTarget",
"line": 198,
"state": "covered",
"hits": "1152"
},
{
"id": "declaration/15/tail/false/tail/arm/1",
"outcome": "DeclarationTarget",
"line": 199,
"state": "covered",
"hits": "7678"
},
{
"id": "declaration/16/tail/decision/true",
"outcome": "true",
"line": 211,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/16/tail/decision/false",
"outcome": "false",
"line": 211,
"state": "covered",
"hits": "56551"
},
{
"id": "declaration/16/tail/false/tail/arm/0",
"outcome": "Error",
"line": 215,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/16/tail/false/tail/arm/1",
"outcome": "Ok",
"line": 216,
"state": "covered",
"hits": "56551"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/decision/true",
"outcome": "true",
"line": 218,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/decision/false",
"outcome": "false",
"line": 218,
"state": "covered",
"hits": "56549"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/decision/body",
"outcome": "body",
"line": 226,
"state": "covered",
"hits": "4880191"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/decision/exit",
"outcome": "exit",
"line": 226,
"state": "covered",
"hits": "56549"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/decision/true",
"outcome": "true",
"line": 227,
"state": "covered",
"hits": "38912"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/decision/false",
"outcome": "false",
"line": 227,
"state": "covered",
"hits": "4841279"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 227,
"state": "covered",
"hits": "38913"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 227,
"state": "covered",
"hits": "4841278"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/statement/0/value/arm/0",
"outcome": "ModuleVariant",
"line": 230,
"state": "covered",
"hits": "2380"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/statement/0/value/arm/1",
"outcome": "ModuleFunction",
"line": 231,
"state": "covered",
"hits": "12910"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/statement/0/value/arm/2",
"outcome": "ModuleGuardedType",
"line": 232,
"state": "covered",
"hits": "629"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/statement/0/value/arm/3",
"outcome": "ModuleRecord",
"line": 233,
"state": "covered",
"hits": "12263"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/statement/0/value/arm/4",
"outcome": "ModuleEnum",
"line": 234,
"state": "covered",
"hits": "10730"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/tail/decision/true",
"outcome": "true",
"line": 236,
"state": "covered",
"hits": "38911"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/tail/decision/false",
"outcome": "false",
"line": 236,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/tail/true/tail/decision/true",
"outcome": "true",
"line": 238,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/tail/true/tail/decision/false",
"outcome": "false",
"line": 238,
"state": "covered",
"hits": "38907"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/tail/true/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 238,
"state": "covered",
"hits": "21130"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/5/body/tail/true/tail/true/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 238,
"state": "covered",
"hits": "17781"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/decision/body",
"outcome": "body",
"line": 252,
"state": "covered",
"hits": "496071"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/decision/exit",
"outcome": "exit",
"line": 252,
"state": "covered",
"hits": "56549"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/decision/body",
"outcome": "body",
"line": 253,
"state": "covered",
"hits": "3257927"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/decision/exit",
"outcome": "exit",
"line": 253,
"state": "covered",
"hits": "496071"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/decision/true",
"outcome": "true",
"line": 254,
"state": "covered",
"hits": "17596"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/decision/false",
"outcome": "false",
"line": 254,
"state": "covered",
"hits": "3240331"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 254,
"state": "covered",
"hits": "854988"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 254,
"state": "covered",
"hits": "2402939"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/true/tail/decision/true",
"outcome": "true",
"line": 256,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/true/tail/decision/false",
"outcome": "false",
"line": 256,
"state": "covered",
"hits": "17594"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/true/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 256,
"state": "covered",
"hits": "3951"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/true/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 256,
"state": "covered",
"hits": "13645"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/true/tail/false/tail/arm/0",
"outcome": "Error",
"line": 260,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/true/tail/false/tail/arm/1",
"outcome": "Ok",
"line": 263,
"state": "covered",
"hits": "17594"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/true/tail/false/tail/arm/1/body/block/statement/0/value/decision/true",
"outcome": "true",
"line": 264,
"state": "covered",
"hits": "2458"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/true/tail/false/tail/arm/1/body/block/statement/0/value/decision/false",
"outcome": "false",
"line": 264,
"state": "covered",
"hits": "15136"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/true/tail/false/tail/arm/1/body/block/statement/1/value/arm/0",
"outcome": "Error",
"line": 270,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/16/tail/false/tail/arm/1/body/block/tail/false/statement/7/body/statement/0/body/tail/true/tail/false/tail/arm/1/body/block/statement/1/value/arm/1",
"outcome": "Ok",
"line": 271,
"state": "covered",
"hits": "17594"
},
{
"id": "declaration/18/statement/2/value/arm/0",
"outcome": "None",
"line": 302,
"state": "covered",
"hits": "178"
},
{
"id": "declaration/18/statement/2/value/arm/1",
"outcome": "Some",
"line": 303,
"state": "covered",
"hits": "7"
},
{
"id": "declaration/18/statement/3/decision/body",
"outcome": "body",
"line": 307,
"state": "covered",
"hits": "694"
},
{
"id": "declaration/18/statement/3/decision/exit",
"outcome": "exit",
"line": 307,
"state": "covered",
"hits": "185"
},
{
"id": "declaration/18/statement/3/body/statement/2/decision/body",
"outcome": "body",
"line": 310,
"state": "covered",
"hits": "753"
},
{
"id": "declaration/18/statement/3/body/statement/2/decision/exit",
"outcome": "exit",
"line": 310,
"state": "covered",
"hits": "694"
},
{
"id": "declaration/18/statement/3/body/statement/2/body/statement/0/value/arm/0",
"outcome": "Error",
"line": 312,
"state": "covered",
"hits": "7"
},
{
"id": "declaration/18/statement/3/body/statement/2/body/statement/0/value/arm/1",
"outcome": "Ok",
"line": 315,
"state": "covered",
"hits": "746"
},
{
"id": "declaration/18/statement/3/body/statement/2/body/statement/0/value/arm/1/body/block/tail/arm/0",
"outcome": "Error",
"line": 317,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/18/statement/3/body/statement/2/body/statement/0/value/arm/1/body/block/tail/arm/1",
"outcome": "Ok",
"line": 320,
"state": "covered",
"hits": "744"
},
{
"id": "declaration/18/statement/3/body/statement/2/body/statement/0/value/arm/1/body/block/tail/arm/1/body/block/statement/0/decision/body",
"outcome": "body",
"line": 321,
"state": "covered",
"hits": "2277"
},
{
"id": "declaration/18/statement/3/body/statement/2/body/statement/0/value/arm/1/body/block/tail/arm/1/body/block/statement/0/decision/exit",
"outcome": "exit",
"line": 321,
"state": "covered",
"hits": "744"
},
{
"id": "declaration/18/statement/3/body/statement/2/body/statement/0/value/arm/1/body/block/tail/arm/1/body/block/statement/0/body/tail/decision/true",
"outcome": "true",
"line": 322,
"state": "covered",
"hits": "1963"
},
{
"id": "declaration/18/statement/3/body/statement/2/body/statement/0/value/arm/1/body/block/tail/arm/1/body/block/statement/0/body/tail/decision/false",
"outcome": "false",
"line": 322,
"state": "covered",
"hits": "314"
},
{
"id": "declaration/18/statement/3/body/statement/2/body/statement/0/value/arm/1/body/block/tail/arm/1/body/block/statement/0/body/tail/true/tail/arm/0",
"outcome": "Error",
"line": 324,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/18/statement/3/body/statement/2/body/statement/0/value/arm/1/body/block/tail/arm/1/body/block/statement/0/body/tail/true/tail/arm/1",
"outcome": "Ok",
"line": 327,
"state": "covered",
"hits": "1962"
},
{
"id": "declaration/20/tail/decision/true",
"outcome": "true",
"line": 360,
"state": "covered",
"hits": "23291"
},
{
"id": "declaration/20/tail/decision/false",
"outcome": "false",
"line": 360,
"state": "covered",
"hits": "998"
},
{
"id": "declaration/20/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 360,
"state": "covered",
"hits": "22010"
},
{
"id": "declaration/20/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 360,
"state": "covered",
"hits": "2279"
},
{
"id": "declaration/20/tail/false/tail/arm/0",
"outcome": "Error",
"line": 364,
"state": "covered",
"hits": "18"
},
{
"id": "declaration/20/tail/false/tail/arm/1",
"outcome": "Ok",
"line": 365,
"state": "covered",
"hits": "980"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/statement/0/value/arm/0",
"outcome": "NamespaceTarget",
"line": 367,
"state": "covered",
"hits": "968"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/statement/0/value/arm/1",
"outcome": "DeclarationTarget",
"line": 368,
"state": "covered",
"hits": "12"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/decision/true",
"outcome": "true",
"line": 370,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/decision/false",
"outcome": "false",
"line": 370,
"state": "covered",
"hits": "980"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/false/tail/arm/0",
"outcome": "Error",
"line": 374,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/false/tail/arm/1",
"outcome": "Ok",
"line": 375,
"state": "covered",
"hits": "977"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/false/tail/arm/1/body/arm/0",
"outcome": "NamespaceTarget",
"line": 376,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/false/tail/arm/1/body/arm/1",
"outcome": "DeclarationTarget",
"line": 377,
"state": "covered",
"hits": "977"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/false/tail/arm/1/body/arm/1/body/arm/0",
"outcome": "ModuleEnum",
"line": 378,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/false/tail/arm/1/body/arm/1/body/arm/1",
"outcome": "ModuleFunction",
"line": 379,
"state": "covered",
"hits": "873"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/false/tail/arm/1/body/arm/1/body/arm/2",
"outcome": "ModuleGuardedType",
"line": 380,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/false/tail/arm/1/body/arm/1/body/arm/3",
"outcome": "ModuleRecord",
"line": 381,
"state": "covered",
"hits": "23"
},
{
"id": "declaration/20/tail/false/tail/arm/1/body/block/tail/false/tail/arm/1/body/arm/1/body/arm/4",
"outcome": "ModuleVariant",
"line": 382,
"state": "covered",
"hits": "81"
},
{
"id": "declaration/21/tail/arm/0",
"outcome": "Error",
"line": 398,
"state": "covered",
"hits": "16"
},
{
"id": "declaration/21/tail/arm/1",
"outcome": "Ok",
"line": 399,
"state": "covered",
"hits": "7664"
},
{
"id": "declaration/21/tail/arm/1/body/arm/0",
"outcome": "NamespaceTarget",
"line": 400,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/21/tail/arm/1/body/arm/1",
"outcome": "DeclarationTarget",
"line": 401,
"state": "covered",
"hits": "7664"
},
{
"id": "declaration/21/tail/arm/1/body/arm/1/body/arm/0",
"outcome": "ModuleRecord",
"line": 402,
"state": "covered",
"hits": "5302"
},
{
"id": "declaration/21/tail/arm/1/body/arm/1/body/arm/1",
"outcome": "ModuleEnum",
"line": 403,
"state": "covered",
"hits": "2013"
},
{
"id": "declaration/21/tail/arm/1/body/arm/1/body/arm/2",
"outcome": "ModuleGuardedType",
"line": 404,
"state": "covered",
"hits": "348"
},
{
"id": "declaration/21/tail/arm/1/body/arm/1/body/arm/3",
"outcome": "ModuleFunction",
"line": 405,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/21/tail/arm/1/body/arm/1/body/arm/4",
"outcome": "ModuleVariant",
"line": 406,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/22/tail/arm/0",
"outcome": "Error",
"line": 418,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/22/tail/arm/1",
"outcome": "Ok",
"line": 419,
"state": "covered",
"hits": "113"
},
{
"id": "declaration/22/tail/arm/1/body/arm/0",
"outcome": "NamespaceTarget",
"line": 420,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/22/tail/arm/1/body/arm/1",
"outcome": "DeclarationTarget",
"line": 421,
"state": "covered",
"hits": "113"
},
{
"id": "declaration/22/tail/arm/1/body/arm/1/body/block/tail/decision/true",
"outcome": "true",
"line": 422,
"state": "covered",
"hits": "111"
},
{
"id": "declaration/22/tail/arm/1/body/arm/1/body/block/tail/decision/false",
"outcome": "false",
"line": 422,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/25/tail/arm/0",
"outcome": "Error",
"line": 450,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/25/tail/arm/1",
"outcome": "Ok",
"line": 451,
"state": "covered",
"hits": "34"
},
{
"id": "declaration/26/statement/1/value/arm/0",
"outcome": "Error",
"line": 466,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/26/statement/1/value/arm/1",
"outcome": "Ok",
"line": 469,
"state": "covered",
"hits": "63"
},
{
"id": "declaration/26/statement/1/value/arm/1/body/block/statement/1/decision/body",
"outcome": "body",
"line": 471,
"state": "covered",
"hits": "84"
},
{
"id": "declaration/26/statement/1/value/arm/1/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 471,
"state": "covered",
"hits": "63"
},
{
"id": "declaration/26/statement/1/value/arm/1/body/block/statement/1/body/tail/decision/true",
"outcome": "true",
"line": 472,
"state": "covered",
"hits": "66"
},
{
"id": "declaration/26/statement/1/value/arm/1/body/block/statement/1/body/tail/decision/false",
"outcome": "false",
"line": 472,
"state": "covered",
"hits": "18"
},
{
"id": "declaration/26/statement/1/value/arm/1/body/block/statement/1/body/tail/true/tail/arm/0",
"outcome": "Error",
"line": 474,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/26/statement/1/value/arm/1/body/block/statement/1/body/tail/true/tail/arm/1",
"outcome": "Ok",
"line": 478,
"state": "covered",
"hits": "66"
},
{
"id": "declaration/26/statement/1/value/arm/1/body/block/statement/1/body/tail/true/tail/arm/1/body/block/statement/0/value/decision/true",
"outcome": "true",
"line": 479,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/26/statement/1/value/arm/1/body/block/statement/1/body/tail/true/tail/arm/1/body/block/statement/0/value/decision/false",
"outcome": "false",
"line": 479,
"state": "covered",
"hits": "62"
},
{
"id": "declaration/26/statement/1/value/arm/1/body/block/statement/1/body/tail/true/tail/arm/1/body/block/statement/0/value/true/statement/0/value/arm/0",
"outcome": "Error",
"line": 485,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/26/statement/1/value/arm/1/body/block/statement/1/body/tail/true/tail/arm/1/body/block/statement/0/value/true/statement/0/value/arm/1",
"outcome": "Ok",
"line": 486,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/27/tail/arm/0",
"outcome": "Error",
"line": 509,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/27/tail/arm/1",
"outcome": "Ok",
"line": 510,
"state": "covered",
"hits": "10"
},
{
"id": "declaration/27/tail/arm/1/body/arm/0",
"outcome": "NamespaceTarget",
"line": 511,
"state": "covered",
"hits": "9"
},
{
"id": "declaration/27/tail/arm/1/body/arm/1",
"outcome": "DeclarationTarget",
"line": 512,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/28/statement/1/value/arm/0",
"outcome": "LocatedExpr",
"line": 527,
"state": "covered",
"hits": "1302"
},
{
"id": "declaration/28/statement/1/value/arm/1",
"outcome": "OwnedCallExpr",
"line": 530,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/1/body/block/statement/1/decision/body",
"outcome": "body",
"line": 532,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/1/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 532,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/2",
"outcome": "DotCallExpr",
"line": 537,
"state": "covered",
"hits": "144"
},
{
"id": "declaration/28/statement/1/value/arm/2/body/block/statement/0/value/arm/0",
"outcome": "Error",
"line": 547,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/28/statement/1/value/arm/2/body/block/statement/0/value/arm/1",
"outcome": "Ok",
"line": 550,
"state": "covered",
"hits": "141"
},
{
"id": "declaration/28/statement/1/value/arm/2/body/block/statement/0/value/arm/1/body/arm/0",
"outcome": "OwnedDotCall",
"line": 551,
"state": "covered",
"hits": "130"
},
{
"id": "declaration/28/statement/1/value/arm/2/body/block/statement/0/value/arm/1/body/arm/1",
"outcome": "NamespaceCall",
"line": 554,
"state": "covered",
"hits": "11"
},
{
"id": "declaration/28/statement/1/value/arm/2/body/block/statement/1/decision/body",
"outcome": "body",
"line": 563,
"state": "covered",
"hits": "8"
},
{
"id": "declaration/28/statement/1/value/arm/2/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 563,
"state": "covered",
"hits": "144"
},
{
"id": "declaration/28/statement/1/value/arm/2/body/block/statement/2/decision/body",
"outcome": "body",
"line": 569,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/28/statement/1/value/arm/2/body/block/statement/2/decision/exit",
"outcome": "exit",
"line": 569,
"state": "covered",
"hits": "144"
},
{
"id": "declaration/28/statement/1/value/arm/3",
"outcome": "AnonymousExpr",
"line": 576,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/3/body/block/statement/1/decision/body",
"outcome": "body",
"line": 578,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/3/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 578,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/3/body/block/statement/1/body/tail/arm/0",
"outcome": "None",
"line": 581,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/3/body/block/statement/1/body/tail/arm/1",
"outcome": "Some",
"line": 582,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/3/body/block/statement/2/value/arm/0",
"outcome": "None",
"line": 589,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/3/body/block/statement/2/value/arm/1",
"outcome": "Some",
"line": 590,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/4",
"outcome": "FunctionExpr",
"line": 598,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/28/statement/1/value/arm/4/body/block/statement/0/value/arm/0",
"outcome": "Error",
"line": 604,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/28/statement/1/value/arm/4/body/block/statement/0/value/arm/1",
"outcome": "Ok",
"line": 605,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/28/statement/1/value/arm/5",
"outcome": "FieldExpr",
"line": 609,
"state": "covered",
"hits": "119"
},
{
"id": "declaration/28/statement/1/value/arm/5/body/block/tail/decision/true",
"outcome": "true",
"line": 611,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/28/statement/1/value/arm/5/body/block/tail/decision/false",
"outcome": "false",
"line": 611,
"state": "covered",
"hits": "118"
},
{
"id": "declaration/28/statement/1/value/arm/5/body/block/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 611,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/28/statement/1/value/arm/5/body/block/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 611,
"state": "covered",
"hits": "118"
},
{
"id": "declaration/28/statement/1/value/arm/5/body/block/tail/condition/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 611,
"state": "covered",
"hits": "119"
},
{
"id": "declaration/28/statement/1/value/arm/5/body/block/tail/condition/left/decision/skip-right",
"outcome": "skip-right",
"line": 611,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/5/body/block/tail/true/statement/0/value/arm/0",
"outcome": "Error",
"line": 621,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/5/body/block/tail/true/statement/0/value/arm/1",
"outcome": "Ok",
"line": 622,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/28/statement/1/value/arm/6",
"outcome": "NameExpr",
"line": 629,
"state": "covered",
"hits": "397"
},
{
"id": "declaration/28/statement/1/value/arm/6/body/block/tail/decision/true",
"outcome": "true",
"line": 630,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/28/statement/1/value/arm/6/body/block/tail/decision/false",
"outcome": "false",
"line": 630,
"state": "covered",
"hits": "396"
},
{
"id": "declaration/28/statement/1/value/arm/6/body/block/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 630,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/28/statement/1/value/arm/6/body/block/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 630,
"state": "covered",
"hits": "396"
},
{
"id": "declaration/28/statement/1/value/arm/7",
"outcome": "CallExpr",
"line": 637,
"state": "covered",
"hits": "18"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/0/value/decision/true",
"outcome": "true",
"line": 638,
"state": "covered",
"hits": "16"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/0/value/decision/false",
"outcome": "false",
"line": 638,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/0/value/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 638,
"state": "covered",
"hits": "16"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/0/value/condition/decision/skip-right",
"outcome": "skip-right",
"line": 638,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/0/value/true/statement/0/value/arm/0",
"outcome": "Error",
"line": 644,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/0/value/true/statement/0/value/arm/1",
"outcome": "Ok",
"line": 645,
"state": "covered",
"hits": "15"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/0/value/true/statement/0/value/arm/1/body/arm/0",
"outcome": "NamespaceTarget",
"line": 646,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/0/value/true/statement/0/value/arm/1/body/arm/1",
"outcome": "DeclarationTarget",
"line": 647,
"state": "covered",
"hits": "15"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/0/value/true/statement/0/value/arm/1/body/arm/1/body/block/tail/decision/true",
"outcome": "true",
"line": 648,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/0/value/true/statement/0/value/arm/1/body/arm/1/body/block/tail/decision/false",
"outcome": "false",
"line": 648,
"state": "covered",
"hits": "15"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/1/decision/body",
"outcome": "body",
"line": 658,
"state": "covered",
"hits": "18"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 658,
"state": "covered",
"hits": "18"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/2/decision/body",
"outcome": "body",
"line": 664,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/7/body/block/statement/2/decision/exit",
"outcome": "exit",
"line": 664,
"state": "covered",
"hits": "18"
},
{
"id": "declaration/28/statement/1/value/arm/8",
"outcome": "ArrayExpr",
"line": 671,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/28/statement/1/value/arm/8/body/block/statement/0/decision/body",
"outcome": "body",
"line": 672,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/28/statement/1/value/arm/8/body/block/statement/0/decision/exit",
"outcome": "exit",
"line": 672,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/28/statement/1/value/arm/9",
"outcome": "UnaryExpr",
"line": 679,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/10",
"outcome": "BinaryExpr",
"line": 682,
"state": "covered",
"hits": "381"
},
{
"id": "declaration/28/statement/1/value/arm/11",
"outcome": "IndexExpr",
"line": 688,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/12",
"outcome": "IfExpr",
"line": 694,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/13",
"outcome": "BlockExpr",
"line": 705,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/14",
"outcome": "MatchExpr",
"line": 708,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/decision/body",
"outcome": "body",
"line": 710,
"state": "covered",
"hits": "6"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 710,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/decision/true",
"outcome": "true",
"line": 712,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/decision/false",
"outcome": "false",
"line": 712,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/true/statement/0/value/arm/0",
"outcome": "Error",
"line": 718,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/true/statement/0/value/arm/1",
"outcome": "Ok",
"line": 719,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/true/statement/0/value/arm/1/body/arm/0",
"outcome": "NamespaceTarget",
"line": 720,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/true/statement/0/value/arm/1/body/arm/1",
"outcome": "DeclarationTarget",
"line": 721,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/true/statement/0/value/arm/1/body/arm/1/body/arm/0",
"outcome": "ModuleVariant",
"line": 722,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/true/statement/0/value/arm/1/body/arm/1/body/arm/1",
"outcome": "ModuleFunction",
"line": 723,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/true/statement/0/value/arm/1/body/arm/1/body/arm/2",
"outcome": "ModuleRecord",
"line": 724,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/true/statement/0/value/arm/1/body/arm/1/body/arm/3",
"outcome": "ModuleEnum",
"line": 725,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/1/value/true/statement/0/value/arm/1/body/arm/1/body/arm/4",
"outcome": "ModuleGuardedType",
"line": 726,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/3/decision/body",
"outcome": "body",
"line": 733,
"state": "covered",
"hits": "3"
},
{
"id": "declaration/28/statement/1/value/arm/14/body/block/statement/1/body/statement/3/decision/exit",
"outcome": "exit",
"line": 733,
"state": "covered",
"hits": "6"
},
{
"id": "declaration/28/statement/1/value/arm/15",
"outcome": "NatExpr",
"line": 742,
"state": "covered",
"hits": "220"
},
{
"id": "declaration/28/statement/1/value/arm/16",
"outcome": "DecimalExpr",
"line": 743,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/28/statement/1/value/arm/17",
"outcome": "StringExpr",
"line": 744,
"state": "covered",
"hits": "13"
},
{
"id": "declaration/28/statement/1/value/arm/18",
"outcome": "BoolExpr",
"line": 745,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/29/statement/2/decision/body",
"outcome": "body",
"line": 761,
"state": "covered",
"hits": "8"
},
{
"id": "declaration/29/statement/2/decision/exit",
"outcome": "exit",
"line": 761,
"state": "covered",
"hits": "38"
},
{
"id": "declaration/29/statement/2/body/tail/arm/0",
"outcome": "BindingStatement",
"line": 763,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/29/statement/2/body/tail/arm/1",
"outcome": "AssignmentStatement",
"line": 774,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/29/statement/2/body/tail/arm/2",
"outcome": "ExpressionStatement",
"line": 781,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/29/statement/2/body/tail/arm/3",
"outcome": "WhileStatement",
"line": 787,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/29/statement/2/body/tail/arm/4",
"outcome": "ForStatement",
"line": 797,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/29/statement/3/value/arm/0",
"outcome": "NoBlockValue",
"line": 810,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/29/statement/3/value/arm/1",
"outcome": "TailBlockValue",
"line": 811,
"state": "covered",
"hits": "34"
},
{
"id": "declaration/30/statement/1/decision/body",
"outcome": "body",
"line": 825,
"state": "covered",
"hits": "742"
},
{
"id": "declaration/30/statement/1/decision/exit",
"outcome": "exit",
"line": 825,
"state": "covered",
"hits": "1408"
},
{
"id": "declaration/30/statement/1/body/statement/0/decision/body",
"outcome": "body",
"line": 826,
"state": "covered",
"hits": "2234"
},
{
"id": "declaration/30/statement/1/body/statement/0/decision/exit",
"outcome": "exit",
"line": 826,
"state": "covered",
"hits": "742"
},
{
"id": "declaration/30/statement/1/body/statement/0/body/tail/arm/0",
"outcome": "Ok",
"line": 828,
"state": "covered",
"hits": "2234"
},
{
"id": "declaration/30/statement/1/body/statement/0/body/tail/arm/0/body/arm/0",
"outcome": "NamespaceTarget",
"line": 829,
"state": "covered",
"hits": "328"
},
{
"id": "declaration/30/statement/1/body/statement/0/body/tail/arm/0/body/arm/1",
"outcome": "DeclarationTarget",
"line": 830,
"state": "covered",
"hits": "1906"
},
{
"id": "declaration/30/statement/1/body/statement/0/body/tail/arm/1",
"outcome": "Error",
"line": 832,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/31/tail/decision/true",
"outcome": "true",
"line": 840,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/31/tail/decision/false",
"outcome": "false",
"line": 840,
"state": "covered",
"hits": "36423"
},
{
"id": "declaration/32/statement/1/value/arm/0",
"outcome": "LocatedExpr",
"line": 855,
"state": "covered",
"hits": "161198"
},
{
"id": "declaration/32/statement/1/value/arm/1",
"outcome": "OwnedCallExpr",
"line": 858,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/statement/1/value/arm/1/body/block/statement/1/decision/body",
"outcome": "body",
"line": 860,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/statement/1/value/arm/1/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 860,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/statement/1/value/arm/2",
"outcome": "DotCallExpr",
"line": 864,
"state": "covered",
"hits": "13368"
},
{
"id": "declaration/32/statement/1/value/arm/2/body/block/statement/1/decision/body",
"outcome": "body",
"line": 866,
"state": "covered",
"hits": "7420"
},
{
"id": "declaration/32/statement/1/value/arm/2/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 866,
"state": "covered",
"hits": "13368"
},
{
"id": "declaration/32/statement/1/value/arm/3",
"outcome": "CallExpr",
"line": 870,
"state": "covered",
"hits": "18284"
},
{
"id": "declaration/32/statement/1/value/arm/3/body/block/statement/0/decision/body",
"outcome": "body",
"line": 871,
"state": "covered",
"hits": "28593"
},
{
"id": "declaration/32/statement/1/value/arm/3/body/block/statement/0/decision/exit",
"outcome": "exit",
"line": 871,
"state": "covered",
"hits": "18284"
},
{
"id": "declaration/32/statement/1/value/arm/4",
"outcome": "ArrayExpr",
"line": 875,
"state": "covered",
"hits": "2489"
},
{
"id": "declaration/32/statement/1/value/arm/4/body/block/statement/0/decision/body",
"outcome": "body",
"line": 876,
"state": "covered",
"hits": "1736"
},
{
"id": "declaration/32/statement/1/value/arm/4/body/block/statement/0/decision/exit",
"outcome": "exit",
"line": 876,
"state": "covered",
"hits": "2489"
},
{
"id": "declaration/32/statement/1/value/arm/5",
"outcome": "UnaryExpr",
"line": 880,
"state": "covered",
"hits": "847"
},
{
"id": "declaration/32/statement/1/value/arm/6",
"outcome": "BinaryExpr",
"line": 883,
"state": "covered",
"hits": "23295"
},
{
"id": "declaration/32/statement/1/value/arm/7",
"outcome": "FieldExpr",
"line": 888,
"state": "covered",
"hits": "9544"
},
{
"id": "declaration/32/statement/1/value/arm/8",
"outcome": "IndexExpr",
"line": 891,
"state": "covered",
"hits": "2296"
},
{
"id": "declaration/32/statement/1/value/arm/9",
"outcome": "IfExpr",
"line": 896,
"state": "covered",
"hits": "5353"
},
{
"id": "declaration/32/statement/1/value/arm/10",
"outcome": "BlockExpr",
"line": 901,
"state": "covered",
"hits": "2954"
},
{
"id": "declaration/32/statement/1/value/arm/11",
"outcome": "MatchExpr",
"line": 904,
"state": "covered",
"hits": "1733"
},
{
"id": "declaration/32/statement/1/value/arm/11/body/block/statement/1/decision/body",
"outcome": "body",
"line": 906,
"state": "covered",
"hits": "6214"
},
{
"id": "declaration/32/statement/1/value/arm/11/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 906,
"state": "covered",
"hits": "1733"
},
{
"id": "declaration/32/statement/1/value/arm/11/body/block/statement/1/body/statement/0/decision/body",
"outcome": "body",
"line": 907,
"state": "covered",
"hits": "7284"
},
{
"id": "declaration/32/statement/1/value/arm/11/body/block/statement/1/body/statement/0/decision/exit",
"outcome": "exit",
"line": 907,
"state": "covered",
"hits": "6214"
},
{
"id": "declaration/32/statement/1/value/arm/12",
"outcome": "NatExpr",
"line": 913,
"state": "covered",
"hits": "15166"
},
{
"id": "declaration/32/statement/1/value/arm/13",
"outcome": "DecimalExpr",
"line": 914,
"state": "covered",
"hits": "19"
},
{
"id": "declaration/32/statement/1/value/arm/14",
"outcome": "StringExpr",
"line": 915,
"state": "covered",
"hits": "8291"
},
{
"id": "declaration/32/statement/1/value/arm/15",
"outcome": "BoolExpr",
"line": 916,
"state": "covered",
"hits": "1865"
},
{
"id": "declaration/32/statement/1/value/arm/16",
"outcome": "NameExpr",
"line": 917,
"state": "covered",
"hits": "55105"
},
{
"id": "declaration/32/statement/1/value/arm/17",
"outcome": "FunctionExpr",
"line": 918,
"state": "covered",
"hits": "111"
},
{
"id": "declaration/32/statement/1/value/arm/18",
"outcome": "AnonymousExpr",
"line": 919,
"state": "covered",
"hits": "478"
},
{
"id": "declaration/32/statement/1/value/arm/18/body/block/statement/0/decision/body",
"outcome": "body",
"line": 920,
"state": "covered",
"hits": "374"
},
{
"id": "declaration/32/statement/1/value/arm/18/body/block/statement/0/decision/exit",
"outcome": "exit",
"line": 920,
"state": "covered",
"hits": "478"
},
{
"id": "declaration/33/statement/1/decision/body",
"outcome": "body",
"line": 933,
"state": "covered",
"hits": "19928"
},
{
"id": "declaration/33/statement/1/decision/exit",
"outcome": "exit",
"line": 933,
"state": "covered",
"hits": "23211"
},
{
"id": "declaration/33/statement/1/body/tail/arm/0",
"outcome": "BindingStatement",
"line": 935,
"state": "covered",
"hits": "5370"
},
{
"id": "declaration/33/statement/1/body/tail/arm/1",
"outcome": "AssignmentStatement",
"line": 939,
"state": "covered",
"hits": "9546"
},
{
"id": "declaration/33/statement/1/body/tail/arm/2",
"outcome": "ExpressionStatement",
"line": 943,
"state": "covered",
"hits": "3005"
},
{
"id": "declaration/33/statement/1/body/tail/arm/3",
"outcome": "WhileStatement",
"line": 946,
"state": "covered",
"hits": "845"
},
{
"id": "declaration/33/statement/1/body/tail/arm/4",
"outcome": "ForStatement",
"line": 950,
"state": "covered",
"hits": "1162"
},
{
"id": "declaration/33/statement/2/value/arm/0",
"outcome": "NoBlockValue",
"line": 958,
"state": "covered",
"hits": "8572"
},
{
"id": "declaration/33/statement/2/value/arm/1",
"outcome": "TailBlockValue",
"line": 959,
"state": "covered",
"hits": "14639"
},
{
"id": "declaration/34/statement/2/decision/body",
"outcome": "body",
"line": 971,
"state": "covered",
"hits": "742"
},
{
"id": "declaration/34/statement/2/decision/exit",
"outcome": "exit",
"line": 971,
"state": "covered",
"hits": "1408"
},
{
"id": "declaration/34/statement/2/body/statement/0/decision/body",
"outcome": "body",
"line": 972,
"state": "covered",
"hits": "2234"
},
{
"id": "declaration/34/statement/2/body/statement/0/decision/exit",
"outcome": "exit",
"line": 972,
"state": "covered",
"hits": "742"
},
{
"id": "declaration/34/statement/5/decision/body",
"outcome": "body",
"line": 979,
"state": "covered",
"hits": "9704"
},
{
"id": "declaration/34/statement/5/decision/exit",
"outcome": "exit",
"line": 979,
"state": "covered",
"hits": "1408"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/0",
"outcome": "ImportDeclaration",
"line": 982,
"state": "covered",
"hits": "702"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/1",
"outcome": "TypeDeclaration",
"line": 983,
"state": "covered",
"hits": "163"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/2",
"outcome": "RecordDeclaration",
"line": 987,
"state": "covered",
"hits": "539"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/2/body/block/statement/0/decision/body",
"outcome": "body",
"line": 988,
"state": "covered",
"hits": "95"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/2/body/block/statement/0/decision/exit",
"outcome": "exit",
"line": 988,
"state": "covered",
"hits": "539"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/3",
"outcome": "EnumDeclaration",
"line": 992,
"state": "covered",
"hits": "756"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/3/body/block/statement/0/decision/body",
"outcome": "body",
"line": 993,
"state": "covered",
"hits": "466"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/3/body/block/statement/0/decision/exit",
"outcome": "exit",
"line": 993,
"state": "covered",
"hits": "756"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/4",
"outcome": "FunctionDeclaration",
"line": 997,
"state": "covered",
"hits": "7544"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/4/body/block/statement/0/decision/body",
"outcome": "body",
"line": 998,
"state": "covered",
"hits": "11052"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/4/body/block/statement/0/decision/exit",
"outcome": "exit",
"line": 998,
"state": "covered",
"hits": "7544"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/4/body/block/statement/1/decision/body",
"outcome": "body",
"line": 1001,
"state": "covered",
"hits": "911"
},
{
"id": "declaration/34/statement/5/body/statement/1/value/arm/4/body/block/statement/1/decision/exit",
"outcome": "exit",
"line": 1001,
"state": "covered",
"hits": "7544"
},
{
"id": "declaration/37/tail/decision/true",
"outcome": "true",
"line": 1035,
"state": "covered",
"hits": "523"
},
{
"id": "declaration/37/tail/decision/false",
"outcome": "false",
"line": 1035,
"state": "covered",
"hits": "12098"
},
{
"id": "declaration/37/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 1035,
"state": "covered",
"hits": "12121"
},
{
"id": "declaration/37/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 1035,
"state": "covered",
"hits": "500"
},
{
"id": "declaration/37/tail/condition/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 1035,
"state": "covered",
"hits": "12138"
},
{
"id": "declaration/37/tail/condition/left/decision/skip-right",
"outcome": "skip-right",
"line": 1035,
"state": "covered",
"hits": "483"
},
{
"id": "declaration/37/tail/false/tail/arm/0",
"outcome": "None",
"line": 1039,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/37/tail/false/tail/arm/1",
"outcome": "Some",
"line": 1040,
"state": "covered",
"hits": "12098"
},
{
"id": "declaration/38/tail/arm/0",
"outcome": "Error",
"line": 1050,
"state": "covered",
"hits": "42"
},
{
"id": "declaration/38/tail/arm/1",
"outcome": "Ok",
"line": 1051,
"state": "covered",
"hits": "12933"
},
{
"id": "declaration/38/tail/arm/1/body/block/statement/1/value/decision/true",
"outcome": "true",
"line": 1053,
"state": "covered",
"hits": "12866"
},
{
"id": "declaration/38/tail/arm/1/body/block/statement/1/value/decision/false",
"outcome": "false",
"line": 1053,
"state": "covered",
"hits": "67"
},
{
"id": "declaration/38/tail/arm/1/body/block/statement/1/value/true/tail/decision/true",
"outcome": "true",
"line": 1055,
"state": "covered",
"hits": "12846"
},
{
"id": "declaration/38/tail/arm/1/body/block/statement/1/value/true/tail/decision/false",
"outcome": "false",
"line": 1055,
"state": "covered",
"hits": "20"
},
{
"id": "declaration/38/tail/arm/1/body/block/statement/1/value/true/tail/true/tail/decision/true",
"outcome": "true",
"line": 1057,
"state": "covered",
"hits": "12832"
},
{
"id": "declaration/38/tail/arm/1/body/block/statement/1/value/true/tail/true/tail/decision/false",
"outcome": "false",
"line": 1057,
"state": "covered",
"hits": "14"
},
{
"id": "declaration/38/tail/arm/1/body/block/statement/1/value/true/tail/true/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 1057,
"state": "covered",
"hits": "12846"
},
{
"id": "declaration/38/tail/arm/1/body/block/statement/1/value/true/tail/true/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 1057,
"state": "zero",
"hits": "0"
}
]Reviewed declaration exclusions
[
{
"id": "declaration/0",
"reason": "import",
"line": 1
},
{
"id": "declaration/1",
"reason": "import",
"line": 2
},
{
"id": "declaration/2",
"reason": "import",
"line": 3
},
{
"id": "declaration/3",
"reason": "record-declaration",
"line": 10
},
{
"id": "declaration/4",
"reason": "record-declaration",
"line": 16
},
{
"id": "declaration/5",
"reason": "enum-declaration",
"line": 21
},
{
"id": "declaration/6",
"reason": "record-declaration",
"line": 26
},
{
"id": "declaration/11",
"reason": "record-declaration",
"line": 98
},
{
"id": "declaration/19",
"reason": "enum-declaration",
"line": 344
},
{
"id": "declaration/23",
"reason": "record-declaration",
"line": 432
}
]