src/compiler/module_emission.panack
Green: covered; red: known zero; amber: unavailable. Blank lines are outside the executable-start-line denominator.
1 import project/src/compiler/module_bodies::{body_anonymous_functions} 2 import project/src/compiler/owned_intrinsics::{owned_intrinsic_lowering} 3 import project/src/compiler/module_bodies::{ 4 BodyTarget, BodyTarget.BodyCore, BodyTarget.BodyDeclaration, 5 BodyNode.BodyArray, BodyNode.BodyAssignment, BodyNode.BodyBinary, 6 BodyNode.BodyBinding, BodyNode.BodyBlock, BodyNode.BodyCall, BodyNode.BodyEmpty, 7 BodyNode.BodyField, BodyNode.BodyFor, BodyNode.BodyFunction, BodyNode.BodyAnonymousFunction, BodyNode.BodyIf, 8 BodyNode.BodyIndex, BodyNode.BodyInterpolation, BodyNode.BodyLiteral, 9 BodyNode.BodyLocalUse, BodyNode.BodyMatch, BodyNode.BodyUnary, BodyNode.BodyWhile, 10 BodyCheckStatus.BodyDeferred, BodyCheckStatus.BodyIdentityChecked, BodyCheckStatus.BodyInvalid, 11 SignatureType, SourceSpan, 12 SignatureTypeIdentity.SignatureCallable, SignatureTypeIdentity.SignatureCore, 13 SignatureTypeIdentity.SignatureHole, SignatureTypeIdentity.SignatureNominal, 14 SignatureTypeIdentity.SignatureParameter, 15 SignatureEffect.SignatureAsync, SignatureEffect.SignatureOrdinary, SignatureEffect.SignaturePure 16 } 17 pub import project/src/compiler/module_bodies::{ 18 BoundBody, BoundFunctionBody, ModuleDeclarationBinding, 19 DeclarationIdentity, Diagnostic, Expr, Expr.LocatedExpr, Expr.NatExpr, Expr.DecimalExpr, 20 Expr.StringExpr, Expr.BoolExpr, Expr.NameExpr, Expr.FunctionExpr, Expr.AnonymousExpr, Expr.ArrayExpr, 21 Expr.UnaryExpr, Expr.BinaryExpr, Expr.CallExpr, Expr.DotCallExpr, Expr.OwnedCallExpr, Expr.FieldExpr, 22 Expr.IndexExpr, Expr.IfExpr, Expr.BlockExpr, Expr.MatchExpr, 23 LoadedModule, ModuleBindingGraph, ModuleIdentity, ModuleSignature 24 } 25 import project/src/compiler/parser::{ 26 Statement, Statement.BindingStatement, Statement.AssignmentStatement, Statement.ExpressionStatement, 27 Statement.ForStatement, Statement.WhileStatement, 28 Block, BlockValue, BlockValue.NoBlockValue, BlockValue.TailBlockValue, EnumVariant, 29 FunctionParameter, MatchArm, MatchPattern, RecordField, 30 TopLevel, TopLevel.EnumDeclaration, TopLevel.FunctionDeclaration, 31 TopLevel.ImportDeclaration, TopLevel.RecordDeclaration, TopLevel.TypeDeclaration, 32 indexed_program 33 } 34 pub import project/src/compiler/parser::{Program} 35 import project/src/compiler/module_resolution::{ 36 ResolvedModuleTarget.DeclarationTarget, ResolvedModuleTarget.NamespaceTarget, 37 ResolvedDotCall.NamespaceCall, 38 ResolvedDotCall.OwnedDotCall, 39 resolve_module_dot_call_scoped, resolve_module_path 40 } 41 import project/src/compiler/module_bindings::{ 42 ModulePackageIdentity.ToolchainModulePackage, 43 ModuleDeclarationKind.ModuleFunction 44 } 45 import project/src/compiler/checker::{render_type} 46 import project/src/compiler/lexer::{prior_index} 47 import project/src/compiler/types::{SourcePos} 48 49 // Convert only fully checked namespace bodies to the legacy instruction 50 // frontend. Module and declaration identities become deterministic private 51 // bytecode names; source names remain available to later diagnostic tooling. 52 53 pub record ModuleEmissionResult { 54 program: Program, 55 diagnostics: [Diagnostic] 56 } 57 58 pure module_emission_module_index( 59 graph: ModuleBindingGraph, 60 identity: ModuleIdentity 61 ): Option[Nat] { 62 mut result: Option[Nat] = None() 63 mut index: Nat = 0 64 for module in graph.modules { 65 if module.identity == identity { 66 result = Some(index) 67 } else {} 68 index = index + 1 69 } 70 result 71 } 72 73 pure module_emission_nat_text(value: Nat): Str { 74 "${value}" 75 } 76 77 // Native adapters construct these compatibility records and variants by runtime name. 78 // A new stdlib declaration with the same spelling must not replace their schema. 79 pure module_emission_native_record_owner(name: Str): Str { 80 if name == "FileKind" || name == "RegularFile" || name == "Directory" || 81 name == "SymbolicLink" || name == "OtherFile" { "filesystem.panack" } else { 82 if name == "HostError" { "host.panack" } else { 83 if name == "ProcessOutput" { "process/legacy.panack" } else { 84 if name == "FileMetadata" { "filesystem.panack" } else { 85 if name == "FilesystemRootIdentity" || name == "FilesystemRootRead" { "package_filesystem.panack" } else { 86 if name == "GzipChunk" { "gzip.panack" } else { 87 if name == "TcpServerLimits" { "tcp.panack" } else { 88 if name == "TcpServiceLimits" { "tcp_service.panack" } else { 89 if name == "TcpServiceReady" || name == "TcpServiceSummary" { "tcp_service.panack" } else { "" } 90 } } } } } } } } 91 } 92 93 pub pure module_emission_symbol( 94 graph: ModuleBindingGraph, 95 entry: ModuleIdentity, 96 identity: DeclarationIdentity 97 ): Str { 98 // Ordinary stdlib declarations need the same nominal separation as project 99 // declarations. Only core and explicitly owned native ABI names stay global. 100 native_owner = module_emission_native_record_owner(identity.name) 101 if identity.module.package == ToolchainModulePackage() && 102 (identity.module.path == "core.panack" || 103 (native_owner != "" && identity.module.path == native_owner)) { 104 identity.name 105 } else { 106 if identity.module == entry && identity.name == "main" { 107 "main" 108 } else { 109 match module_emission_module_index(graph, identity.module) { 110 None() => "$missing_" + identity.name, 111 Some(index) => "$module" + module_emission_nat_text(index) + "_" + identity.name 112 } 113 } 114 } 115 } 116 117 // Toolchain modules share a package identity, but ordinary functions still 118 // need private bytecode names so same-named APIs in different modules remain 119 // distinct. Core declarations keep their historical runtime names. 120 pub pure module_emission_callable_symbol( 121 graph: ModuleBindingGraph, 122 entry: ModuleIdentity, 123 binding: ModuleDeclarationBinding 124 ): Str { 125 if binding.method != None() && 126 binding.identity.module == ModuleIdentity(ToolchainModulePackage(), "core.panack") { 127 "$core_" + binding.identity.name 128 } else { 129 if binding.kind == ModuleFunction() && 130 binding.identity.module.package == ToolchainModulePackage() && 131 binding.identity.module.path != "core.panack" { 132 match module_emission_module_index(graph, binding.identity.module) { 133 None() => "$missing_" + binding.identity.name, 134 Some(index) => "$module" + module_emission_nat_text(index) + "_" + binding.identity.name 135 } 136 } else { 137 module_emission_symbol(graph, entry, binding.identity) 138 } 139 } 140 } 141 142 pure module_emission_target( 143 graph: ModuleBindingGraph, 144 entry: ModuleIdentity, 145 target: BodyTarget 146 ): Str { 147 match target { 148 BodyCore(name) => name, 149 BodyDeclaration(binding) => match binding.intrinsic { 150 None() => module_emission_callable_symbol(graph, entry, binding), 151 Some(id) => owned_intrinsic_lowering(id) 152 } 153 } 154 } 155 156 pure module_emission_signature_type( 157 graph: ModuleBindingGraph, 158 entry: ModuleIdentity, 159 owner: DeclarationIdentity, 160 parameters: [Str], 161 value: SignatureType 162 ): Str { 163 head: Str = match value.identity { 164 SignatureCore(name) => name, 165 SignatureNominal(identity) => module_emission_symbol(graph, entry, identity), 166 SignatureParameter(binder, index) => if binder == owner && index < parameters.len() { 167 parameters[index] 168 } else { 169 "$unresolved_type_parameter" 170 }, 171 SignatureCallable(effect) => match effect { 172 SignaturePure() => "PureFn", 173 SignatureOrdinary() => "Fn", 174 SignatureAsync() => "AsyncFn" 175 }, 176 SignatureHole(binder, path, index) => "$unresolved_type" 177 } 178 mut arguments: [Str] = [] 179 for child in value.arguments { 180 arguments = arguments.append(module_emission_signature_type(graph, entry, owner, parameters, child)) 181 } 182 if arguments.len() == 0 { 183 head 184 } else { 185 render_type(head, arguments) 186 } 187 } 188 189 pure module_emission_signature( 190 signatures: [ModuleSignature], 191 identity: DeclarationIdentity 192 ): Option[ModuleSignature] { 193 mut selected: Option[ModuleSignature] = None() 194 for signature in signatures { 195 if signature.binding.identity == identity { 196 selected = Some(signature) 197 } else {} 198 } 199 selected 200 } 201 202 pure module_emission_slot_type( 203 graph: ModuleBindingGraph, 204 entry: ModuleIdentity, 205 signature: ModuleSignature, 206 name: Str, 207 fallback: Str 208 ): Str { 209 mut result: Str = fallback 210 for slot in signature.slots { 211 if slot.name == name { 212 result = module_emission_signature_type( 213 graph, 214 entry, 215 signature.binding.identity, 216 signature.parameters, 217 slot.type 218 ) 219 } else {} 220 } 221 result 222 } 223 224 pure module_emission_guard_target( 225 graph: ModuleBindingGraph, 226 entry: ModuleIdentity, 227 owner: ModuleIdentity, 228 name: Str 229 ): Str { 230 match resolve_module_path(graph, owner, name) { 231 Error(message) => name, 232 Ok(target) => match target { 233 NamespaceTarget(identity) => name, 234 DeclarationTarget(binding) => module_emission_callable_symbol(graph, entry, binding) 235 } 236 } 237 } 238 239 pure module_emission_guard_expressions( 240 graph: ModuleBindingGraph, 241 entry: ModuleIdentity, 242 owner: ModuleIdentity, 243 guard_name: Str, 244 expressions: [Expr] 245 ): [Expr] { 246 mut result: [Expr] = [] 247 for expression in expressions { 248 result = result.append(module_emission_guard_expression(graph, entry, owner, guard_name, expression)) 249 } 250 result 251 } 252 253 pure module_emission_guard_block( 254 graph: ModuleBindingGraph, 255 entry: ModuleIdentity, 256 owner: ModuleIdentity, 257 guard_name: Str, 258 block: Block 259 ): Block { 260 mut statements: [Statement] = [] 261 for statement in block.statements { 262 statements = statements.append(match statement { 263 BindingStatement(name, type_name, annotation_span, mutable, value) => BindingStatement( 264 name, 265 type_name, 266 annotation_span, 267 mutable, 268 module_emission_guard_expression(graph, entry, owner, guard_name, value) 269 ), 270 AssignmentStatement(name, value) => AssignmentStatement( 271 name, 272 module_emission_guard_expression(graph, entry, owner, guard_name, value) 273 ), 274 ExpressionStatement(value) => ExpressionStatement( 275 module_emission_guard_expression(graph, entry, owner, guard_name, value) 276 ), 277 WhileStatement(condition, body) => WhileStatement( 278 module_emission_guard_expression(graph, entry, owner, guard_name, condition), 279 module_emission_guard_block(graph, entry, owner, guard_name, body) 280 ), 281 ForStatement(name, values, body) => ForStatement( 282 name, 283 module_emission_guard_expression(graph, entry, owner, guard_name, values), 284 module_emission_guard_block(graph, entry, owner, guard_name, body) 285 ) 286 }) 287 } 288 Block(statements, match block.value { 289 NoBlockValue() => NoBlockValue(), 290 TailBlockValue(value) => TailBlockValue( 291 module_emission_guard_expression(graph, entry, owner, guard_name, value) 292 ) 293 }, block.span, block.statement_spans) 294 } 295 296 pure module_emission_guard_arms( 297 graph: ModuleBindingGraph, 298 entry: ModuleIdentity, 299 owner: ModuleIdentity, 300 guard_name: Str, 301 arms: [MatchArm] 302 ): [MatchArm] { 303 mut result: [MatchArm] = [] 304 for arm in arms { 305 result = result.append(MatchArm( 306 MatchPattern( 307 module_emission_guard_target(graph, entry, owner, arm.pattern.variant), 308 arm.pattern.bindings, 309 arm.pattern.span 310 ), 311 module_emission_guard_expression(graph, entry, owner, guard_name, arm.body) 312 )) 313 } 314 result 315 } 316 317 pure module_emission_guard_expression( 318 graph: ModuleBindingGraph, 319 entry: ModuleIdentity, 320 owner: ModuleIdentity, 321 guard_name: Str, 322 expression: Expr 323 ): Expr { 324 match expression { 325 LocatedExpr(span, value, located_type_argument_spans) => LocatedExpr( 326 span, 327 module_emission_guard_expression(graph, entry, owner, guard_name, value), 328 located_type_argument_spans 329 ), 330 NatExpr(value) => NatExpr(value), 331 DecimalExpr(value) => DecimalExpr(value), 332 StringExpr(value) => StringExpr(value), 333 BoolExpr(value) => BoolExpr(value), 334 NameExpr(name) => NameExpr(name), 335 AnonymousExpr(effect, parameters, result_type, body) => expression, 336 FunctionExpr(name) => FunctionExpr(module_emission_guard_target(graph, entry, owner, name)), 337 ArrayExpr(items) => ArrayExpr(module_emission_guard_expressions(graph, entry, owner, guard_name, items)), 338 UnaryExpr(operator, value) => UnaryExpr( 339 operator, 340 module_emission_guard_expression(graph, entry, owner, guard_name, value) 341 ), 342 BinaryExpr(operator, left, right) => BinaryExpr( 343 operator, 344 module_emission_guard_expression(graph, entry, owner, guard_name, left), 345 module_emission_guard_expression(graph, entry, owner, guard_name, right) 346 ), 347 CallExpr(name, arguments, types) => CallExpr( 348 module_emission_guard_target(graph, entry, owner, name), 349 module_emission_guard_expressions(graph, entry, owner, guard_name, arguments), 350 types 351 ), 352 OwnedCallExpr(target, name, arguments, types) => OwnedCallExpr( 353 module_emission_guard_expression(graph, entry, owner, guard_name, target), 354 name, 355 module_emission_guard_expressions(graph, entry, owner, guard_name, arguments), 356 types 357 ), 358 DotCallExpr(target, name, arguments, types) => match resolve_module_dot_call_scoped( 359 graph, 360 owner, 361 target, 362 name, 363 arguments, 364 types, 365 set().add(guard_name) 366 ) { 367 Error(message) => DotCallExpr( 368 module_emission_guard_expression(graph, entry, owner, guard_name, target), 369 name, 370 module_emission_guard_expressions(graph, entry, owner, guard_name, arguments), 371 types 372 ), 373 Ok(resolved) => match resolved { 374 OwnedDotCall(receiver, method, values, type_arguments) => OwnedCallExpr( 375 module_emission_guard_expression(graph, entry, owner, guard_name, receiver), 376 method, 377 module_emission_guard_expressions(graph, entry, owner, guard_name, values), 378 type_arguments 379 ), 380 NamespaceCall(binding, values, type_arguments) => CallExpr( 381 module_emission_callable_symbol(graph, entry, binding), 382 module_emission_guard_expressions(graph, entry, owner, guard_name, values), 383 type_arguments 384 ) 385 } 386 }, 387 FieldExpr(target, field) => FieldExpr( 388 module_emission_guard_expression(graph, entry, owner, guard_name, target), 389 field 390 ), 391 IndexExpr(target, index) => IndexExpr( 392 module_emission_guard_expression(graph, entry, owner, guard_name, target), 393 module_emission_guard_expression(graph, entry, owner, guard_name, index) 394 ), 395 IfExpr(condition, yes, no, has_else) => IfExpr( 396 module_emission_guard_expression(graph, entry, owner, guard_name, condition), 397 module_emission_guard_block(graph, entry, owner, guard_name, yes), 398 module_emission_guard_block(graph, entry, owner, guard_name, no), 399 has_else 400 ), 401 BlockExpr(block) => BlockExpr(module_emission_guard_block(graph, entry, owner, guard_name, block)), 402 MatchExpr(value, arms) => MatchExpr( 403 module_emission_guard_expression(graph, entry, owner, guard_name, value), 404 module_emission_guard_arms(graph, entry, owner, guard_name, arms) 405 ) 406 } 407 } 408 409 pure module_emission_escape_string(text: Str): Str { 410 mut result: Str = "" 411 mut index: Nat = 0 412 while index < text.len() { 413 character: Str = text[index] 414 if character == "\\" { 415 result = result + "\\\\" 416 } else { 417 if character == "\"" { 418 result = result + "\\\"" 419 } else { 420 if character == "\n" { 421 result = result + "\\n" 422 } else { 423 if character == "\r" { 424 result = result + "\\r" 425 } else { 426 if character == "\t" { 427 result = result + "\\t" 428 } else { 429 result = result + character 430 } 431 } 432 } 433 } 434 } 435 index = index + 1 436 } 437 result 438 } 439 440 pure module_emission_interpolation(body: BoundBody): Expr { 441 match body.node { 442 BodyInterpolation(parts) => { 443 mut text: Str = if parts.len() > 0 { parts[0] } else { "" } 444 mut index: Nat = 0 445 for child in body.children { 446 mut local_name: Str = "" 447 match child.node { 448 BodyLocalUse(identity, captured_domain) => { 449 local_name = identity.name 450 }, 451 BodyLiteral(value) => {}, 452 BodyInterpolation(values) => {}, 453 BodyFunction(binding) => {}, 454 BodyAnonymousFunction(anonymous) => {}, 455 BodyCall(target, types, call_arguments) => {}, 456 BodyArray() => {}, 457 BodyUnary(operator) => {}, 458 BodyBinary(operator) => {}, 459 BodyField(name) => {}, 460 BodyIndex() => {}, 461 BodyIf(has_else) => {}, 462 BodyBlock(has_tail, original_span, statement_spans) => {}, 463 BodyMatch(targets, bindings, spans) => {}, 464 BodyBinding(identity, type, mutable, inferred, type_evidence) => {}, 465 BodyAssignment(identity, assignment_evidence) => {}, 466 BodyWhile() => {}, 467 BodyFor(identity) => {}, 468 BodyEmpty() => {} 469 } 470 text = text + "${" + local_name + "}" 471 if index + 1 < parts.len() { 472 text = text + parts[index + 1] 473 } else {} 474 index = index + 1 475 } 476 StringExpr("\"" + module_emission_escape_string(text) + "\"") 477 }, 478 BodyLiteral(value) => value, 479 BodyLocalUse(identity, captured_domain) => NameExpr(identity.name), 480 BodyFunction(binding) => FunctionExpr(""), 481 BodyAnonymousFunction(anonymous) => FunctionExpr(""), 482 BodyCall(target, types, call_arguments) => CallExpr("$unit", [], []), 483 BodyArray() => CallExpr("$unit", [], []), 484 BodyUnary(operator) => CallExpr("$unit", [], []), 485 BodyBinary(operator) => CallExpr("$unit", [], []), 486 BodyField(name) => CallExpr("$unit", [], []), 487 BodyIndex() => CallExpr("$unit", [], []), 488 BodyIf(has_else) => CallExpr("$unit", [], []), 489 BodyBlock(has_tail, original_span, statement_spans) => CallExpr("$unit", [], []), 490 BodyMatch(targets, bindings, spans) => CallExpr("$unit", [], []), 491 BodyBinding(identity, type, mutable, inferred, type_evidence) => CallExpr("$unit", [], []), 492 BodyAssignment(identity, assignment_evidence) => CallExpr("$unit", [], []), 493 BodyWhile() => CallExpr("$unit", [], []), 494 BodyFor(identity) => CallExpr("$unit", [], []), 495 BodyEmpty() => CallExpr("$unit", [], []) 496 } 497 } 498 499 pub pure module_emission_expression( 500 graph: ModuleBindingGraph, 501 entry: ModuleIdentity, 502 body: BoundBody 503 ): Expr { 504 module_emission_expression_with_parameters(graph, entry, [], body) 505 } 506 507 pure module_emission_expressions( 508 graph: ModuleBindingGraph, 509 entry: ModuleIdentity, 510 parameters: [Str], 511 bodies: [BoundBody] 512 ): [Expr] { 513 mut result: [Expr] = [] 514 for body in bodies { 515 result = result.append(module_emission_expression_with_parameters(graph, entry, parameters, body)) 516 } 517 result 518 } 519 520 pure module_emission_block( 521 graph: ModuleBindingGraph, 522 entry: ModuleIdentity, 523 parameters: [Str], 524 body: BoundBody 525 ): Block { 526 mut statements: [Statement] = [] 527 mut count: Nat = body.children.len() 528 mut block_span: Option[SourceSpan] = None() 529 mut origins: [SourceSpan] = [] 530 has_tail: Bool = match body.node { 531 BodyBlock(value, original_span, statement_spans) => { block_span = original_span; origins = statement_spans; value }, 532 BodyLiteral(value) => false, 533 BodyInterpolation(parts) => false, 534 BodyLocalUse(identity, captured_domain) => false, 535 BodyFunction(binding) => false, 536 BodyAnonymousFunction(anonymous) => false, 537 BodyCall(target, types, call_arguments) => false, 538 BodyArray() => false, 539 BodyUnary(operator) => false, 540 BodyBinary(operator) => false, 541 BodyField(name) => false, 542 BodyIndex() => false, 543 BodyIf(value) => false, 544 BodyMatch(targets, bindings, spans) => false, 545 BodyBinding(identity, type, mutable, inferred, type_evidence) => false, 546 BodyAssignment(identity, assignment_evidence) => false, 547 BodyWhile() => false, 548 BodyFor(identity) => false, 549 BodyEmpty() => false 550 } 551 if has_tail && count > 0 { 552 count = prior_index(count) 553 } else {} 554 mut index: Nat = 0 555 for child in body.children { 556 if index < count { 557 statement: Option[Statement] = match child.node { 558 BodyBinding(identity, type, mutable, inferred, type_evidence) => Some(BindingStatement( 559 identity.name, 560 match type { 561 Some(value) => module_emission_signature_type(graph, entry, identity.owner, parameters, value), 562 None() => "" 563 }, 564 None(), 565 mutable, 566 module_emission_expression_with_parameters(graph, entry, parameters, child.children[0]) 567 )), 568 BodyAssignment(identity, assignment_evidence) => Some(AssignmentStatement( 569 identity.name, 570 module_emission_expression_with_parameters(graph, entry, parameters, child.children[0]) 571 )), 572 BodyWhile() => Some(WhileStatement( 573 module_emission_expression_with_parameters(graph, entry, parameters, child.children[0]), 574 module_emission_block(graph, entry, parameters, child.children[1]) 575 )), 576 BodyFor(identity) => Some(ForStatement( 577 identity.name, 578 module_emission_expression_with_parameters(graph, entry, parameters, child.children[0]), 579 module_emission_block(graph, entry, parameters, child.children[1]) 580 )), 581 BodyEmpty() => None(), 582 BodyLiteral(value) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 583 BodyInterpolation(parts) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 584 BodyLocalUse(identity, captured_domain) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 585 BodyFunction(binding) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 586 BodyAnonymousFunction(anonymous) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 587 BodyCall(target, types, call_arguments) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 588 BodyArray() => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 589 BodyUnary(operator) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 590 BodyBinary(operator) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 591 BodyField(name) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 592 BodyIndex() => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 593 BodyIf(value) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 594 BodyBlock(value, original_span, statement_spans) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))), 595 BodyMatch(targets, bindings, spans) => Some(ExpressionStatement(module_emission_expression_with_parameters(graph, entry, parameters, child))) 596 } 597 match statement { 598 None() => {}, 599 Some(value) => { 600 statements = statements.append(value) 601 } 602 } 603 } else {} 604 index = index + 1 605 } 606 block_value: BlockValue = if has_tail && body.children.len() > 0 { 607 TailBlockValue(module_emission_expression_with_parameters(graph, entry, parameters, body.children[prior_index(body.children.len())])) 608 } else { 609 NoBlockValue() 610 } 611 Block(statements, block_value, block_span, origins) 612 } 613 614 pure module_emission_expression_with_parameters( 615 graph: ModuleBindingGraph, 616 entry: ModuleIdentity, 617 parameters: [Str], 618 body: BoundBody 619 ): Expr { 620 emitted: Expr = match body.node { 621 BodyInterpolation(parts) => module_emission_interpolation(body), 622 BodyLiteral(value) => value, 623 BodyLocalUse(identity, captured_domain) => NameExpr(identity.name), 624 BodyFunction(binding) => FunctionExpr(module_emission_callable_symbol(graph, entry, binding)), 625 BodyAnonymousFunction(anonymous) => { 626 symbol = module_emission_callable_symbol(graph, entry, anonymous.signature.binding) 627 mut arity: Nat = anonymous.parameters.len() 628 for capture in body.children { arity = prior_index(arity) } 629 captures = body.children.len() 630 if captures == 0 { FunctionExpr(symbol) } 631 else { 632 CallExpr("$intrinsic_closure", [FunctionExpr(symbol), 633 ArrayExpr(module_emission_expressions(graph, entry, parameters, body.children)), 634 NatExpr(arity)], []) 635 } 636 }, 637 BodyCall(target, types, call_arguments) => CallExpr( 638 module_emission_target(graph, entry, target), 639 module_emission_expressions(graph, entry, parameters, body.children), 640 [] 641 ), 642 BodyArray() => ArrayExpr(module_emission_expressions(graph, entry, parameters, body.children)), 643 BodyUnary(operator) => UnaryExpr(operator, module_emission_expression_with_parameters(graph, entry, parameters, body.children[0])), 644 BodyBinary(operator) => BinaryExpr( 645 operator, 646 module_emission_expression_with_parameters(graph, entry, parameters, body.children[0]), 647 module_emission_expression_with_parameters(graph, entry, parameters, body.children[1]) 648 ), 649 BodyField(name) => FieldExpr(module_emission_expression_with_parameters(graph, entry, parameters, body.children[0]), name), 650 BodyIndex() => IndexExpr( 651 module_emission_expression_with_parameters(graph, entry, parameters, body.children[0]), 652 module_emission_expression_with_parameters(graph, entry, parameters, body.children[1]) 653 ), 654 BodyIf(has_else) => IfExpr( 655 module_emission_expression_with_parameters(graph, entry, parameters, body.children[0]), 656 module_emission_block(graph, entry, parameters, body.children[1]), 657 module_emission_block(graph, entry, parameters, body.children[2]), 658 has_else 659 ), 660 BodyBlock(has_tail, original_span, statement_spans) => BlockExpr(module_emission_block(graph, entry, parameters, body)), 661 BodyMatch(targets, bindings, pattern_spans) => { 662 mut arms: [MatchArm] = [] 663 mut index: Nat = 0 664 for target in targets { 665 mut names: [Str] = [] 666 if index < bindings.len() { 667 for local in bindings[index] { 668 names = names.append(local.name) 669 } 670 } else {} 671 arms = arms.append(MatchArm( 672 MatchPattern(module_emission_target(graph, entry, target), names, pattern_spans[index]), 673 module_emission_expression_with_parameters(graph, entry, parameters, body.children[index + 1]) 674 )) 675 index = index + 1 676 } 677 MatchExpr(module_emission_expression_with_parameters(graph, entry, parameters, body.children[0]), arms) 678 }, 679 BodyBinding(identity, type, mutable, inferred, type_evidence) => CallExpr("$unit", [], []), 680 BodyAssignment(identity, assignment_evidence) => CallExpr("$unit", [], []), 681 BodyWhile() => CallExpr("$unit", [], []), 682 BodyFor(identity) => CallExpr("$unit", [], []), 683 BodyEmpty() => CallExpr("$unit", [], []) 684 } 685 LocatedExpr(body.span, emitted, []) 686 } 687 688 pure module_emission_function( 689 graph: ModuleBindingGraph, 690 entry: ModuleIdentity, 691 module: LoadedModule, 692 declaration: TopLevel, 693 bodies: [BoundFunctionBody] 694 ): Option[TopLevel] { 695 match declaration { 696 FunctionDeclaration(name, parameters, return_type, is_pure, is_async, original_body, type_parameters) => { 697 identity: DeclarationIdentity = DeclarationIdentity(module.bindings.identity, name) 698 mut selected: Option[BoundFunctionBody] = None() 699 for body in bodies { 700 if body.signature.binding.identity == identity { 701 selected = Some(body) 702 } else {} 703 } 704 match selected { 705 None() => None(), 706 Some(body) => match body.status { 707 BodyIdentityChecked() => if body.deferred.len() == 0 { 708 mut emitted_parameters: [FunctionParameter] = [] 709 mut parameter_index: Nat = 0 710 for parameter in parameters { 711 parameter_type: Str = if parameter_index < body.signature.slots.len() { 712 module_emission_signature_type( 713 graph, 714 entry, 715 identity, 716 body.signature.parameters, 717 body.signature.slots[parameter_index].type 718 ) 719 } else { 720 parameter.type_name 721 } 722 emitted_parameters = emitted_parameters.append(FunctionParameter(parameter.name, parameter_type)) 723 parameter_index = parameter_index + 1 724 } 725 result_type: Str = if body.signature.slots.len() > parameter_index { 726 module_emission_signature_type( 727 graph, 728 entry, 729 identity, 730 body.signature.parameters, 731 body.signature.slots[parameter_index].type 732 ) 733 } else { 734 return_type 735 } 736 Some(FunctionDeclaration( 737 module_emission_callable_symbol(graph, entry, body.signature.binding), 738 emitted_parameters, 739 result_type, 740 is_pure, 741 is_async, 742 module_emission_block(graph, entry, body.signature.parameters, body.body), 743 type_parameters 744 )) 745 } else { 746 None() 747 }, 748 BodyDeferred() => None(), 749 BodyInvalid() => None() 750 } 751 } 752 }, 753 ImportDeclaration(path) => None(), 754 TypeDeclaration(name, base, guard_name, guard) => None(), 755 RecordDeclaration(name, parameters, fields) => None(), 756 EnumDeclaration(name, parameters, variants) => None() 757 } 758 } 759 760 761 pure module_emission_declaration_span(module: LoadedModule, name: Str): SourceSpan { 762 mut span: SourceSpan = SourceSpan( 763 SourcePos(module.source_path, 0, 1, 1), 764 SourcePos(module.source_path, 0, 1, 1) 765 ) 766 mut index: Nat = 0 767 for declaration in module.parsed.program.declarations { 768 declared: Str = match declaration { 769 ImportDeclaration(path) => "", 770 TypeDeclaration(value, base, guard_name, guard) => value, 771 RecordDeclaration(value, parameters, fields) => value, 772 EnumDeclaration(value, parameters, variants) => value, 773 FunctionDeclaration(value, parameters, return_type, is_pure, is_async, body, type_parameters) => value 774 } 775 if declared == name { 776 span = module.parsed.syntax[index].span 777 } else {} 778 index = index + 1 779 } 780 span 781 } 782 783 pub pure module_emission_program( 784 graph: ModuleBindingGraph, 785 modules: [LoadedModule], 786 signatures: [ModuleSignature], 787 bodies: [BoundFunctionBody], 788 entry: ModuleIdentity 789 ): ModuleEmissionResult { 790 module_emission_program_reusing(graph, modules, signatures, bodies, entry, []) 791 } 792 793 pure module_emission_anonymous( 794 graph: ModuleBindingGraph, entry: ModuleIdentity, function: BoundFunctionBody 795 ): TopLevel { 796 signature = function.signature 797 owner = signature.binding.identity 798 mut parameters: [FunctionParameter] = [] 799 mut index: Nat = 0 800 for parameter in function.parameters { 801 parameters = parameters.append(FunctionParameter(parameter.identity.name, 802 module_emission_signature_type(graph, entry, owner, signature.parameters, signature.slots[index].type))) 803 index = index + 1 804 } 805 result = module_emission_signature_type(graph, entry, owner, signature.parameters, signature.slots[index].type) 806 FunctionDeclaration(module_emission_callable_symbol(graph, entry, signature.binding), 807 parameters, result, signature.effect == Some(SignaturePure()), signature.effect == Some(SignatureAsync()), 808 module_emission_block(graph, entry, signature.parameters, function.body), signature.parameters) 809 } 810 811 pub pure module_emission_program_reusing( 812 graph: ModuleBindingGraph, modules: [LoadedModule], signatures: [ModuleSignature], 813 bodies: [BoundFunctionBody], entry: ModuleIdentity, skipped: [ModuleIdentity] 814 ): ModuleEmissionResult { 815 mut declarations: [TopLevel] = [] 816 mut diagnostics: [Diagnostic] = [] 817 for module in modules { 818 mut skip = false 819 for identity in skipped { skip = skip || identity == module.bindings.identity } 820 if module.bindings.identity.package == ToolchainModulePackage() && 821 module.bindings.identity.path == "core.panack" { 822 // Every core function uses its checked body. Enums retain their core identities. 823 mut core_index: Nat = 0 824 for declaration in module.parsed.program.declarations { 825 match declaration { 826 FunctionDeclaration(name, parameters, result, pure_flag, async_flag, body, types) => { 827 if !skip { match module_emission_function(graph, entry, module, declaration, bodies) { 828 Some(converted) => { declarations = declarations.append(converted) }, 829 None() => { 830 diagnostics = diagnostics.append(Diagnostic( 831 "core function is not completely checked for identity emission", 832 module.parsed.syntax[core_index].span.start)) 833 } 834 } 835 } 836 }, 837 ImportDeclaration(path) => {}, 838 TypeDeclaration(name, base, guard_name, guard) => { declarations = declarations.append(declaration) }, 839 RecordDeclaration(name, parameters, fields) => { declarations = declarations.append(declaration) }, 840 EnumDeclaration(name, parameters, variants) => { declarations = declarations.append(declaration) } 841 } 842 core_index = core_index + 1 843 } 844 } else { 845 for declaration in module.parsed.program.declarations { 846 converted: Option[TopLevel] = match declaration { 847 ImportDeclaration(path) => None(), 848 TypeDeclaration(name, base, guard_name, guard) => Some(TypeDeclaration( 849 module_emission_symbol( 850 graph, 851 entry, 852 DeclarationIdentity(module.bindings.identity, name) 853 ), 854 match module_emission_signature(signatures, DeclarationIdentity(module.bindings.identity, name)) { 855 None() => base, 856 Some(signature) => module_emission_slot_type( 857 graph, 858 entry, 859 signature, 860 "base", 861 base 862 ) 863 }, 864 guard_name, 865 module_emission_guard_expression( 866 graph, 867 entry, 868 module.bindings.identity, 869 guard_name, 870 guard 871 ) 872 )), 873 RecordDeclaration(name, parameters, fields) => { 874 identity: DeclarationIdentity = DeclarationIdentity(module.bindings.identity, name) 875 mut emitted_fields: [RecordField] = [] 876 match module_emission_signature(signatures, identity) { 877 None() => { 878 emitted_fields = fields 879 }, 880 Some(signature) => { 881 for field in fields { 882 emitted_fields = emitted_fields.append(RecordField( 883 field.name, 884 module_emission_slot_type(graph, entry, signature, field.name, field.type_name) 885 )) 886 } 887 } 888 } 889 Some(RecordDeclaration( 890 module_emission_symbol(graph, entry, identity), 891 parameters, 892 emitted_fields 893 )) 894 }, 895 EnumDeclaration(name, parameters, variants) => { 896 identity: DeclarationIdentity = DeclarationIdentity(module.bindings.identity, name) 897 mut renamed: [EnumVariant] = [] 898 mut signature: Option[ModuleSignature] = module_emission_signature(signatures, identity) 899 for variant in variants { 900 mut payload: [Str] = [] 901 mut payload_index: Nat = 0 902 for type_name in variant.payload { 903 payload_slot: Str = variant.name + ":" + module_emission_nat_text(payload_index) 904 mapped: Str = match signature { 905 None() => type_name, 906 Some(value) => module_emission_slot_type(graph, entry, value, payload_slot, type_name) 907 } 908 payload = payload.append(mapped) 909 payload_index = payload_index + 1 910 } 911 renamed = renamed.append(EnumVariant( 912 module_emission_symbol( 913 graph, 914 entry, 915 DeclarationIdentity(module.bindings.identity, variant.name) 916 ), 917 payload 918 )) 919 } 920 Some(EnumDeclaration( 921 module_emission_symbol( 922 graph, 923 entry, 924 DeclarationIdentity(module.bindings.identity, name) 925 ), 926 parameters, 927 renamed 928 )) 929 }, 930 FunctionDeclaration(name, parameters, return_type, is_pure, is_async, body, type_parameters) => 931 if skip { None() } else { module_emission_function(graph, entry, module, declaration, bodies) } 932 } 933 match converted { 934 None() => match declaration { 935 FunctionDeclaration(name, parameters, return_type, pure_flag, async_flag, body, type_parameters) => if !skip { 936 mut detail: Str = "" 937 for checked_body in bodies { 938 if checked_body.signature.binding.identity == DeclarationIdentity(module.bindings.identity, name) && checked_body.deferred.len() > 0 { 939 first: SourceSpan = checked_body.deferred[0] 940 detail = " (" + module_emission_nat_text(checked_body.deferred.len()) + " deferred type check(s); first at " + first.start.file + ":" + module_emission_nat_text(first.start.line) + ":" + module_emission_nat_text(first.start.column) + ")" 941 } else {} 942 } 943 diagnostics = diagnostics.append(Diagnostic( 944 "function is not completely checked for identity emission: " + name + detail, 945 module_emission_declaration_span(module, name).start 946 )) 947 }, 948 ImportDeclaration(path) => {}, 949 TypeDeclaration(name, base, guard_name, guard) => {}, 950 RecordDeclaration(name, parameters, fields) => {}, 951 EnumDeclaration(name, parameters, variants) => {} 952 }, 953 Some(value) => { 954 declarations = declarations.append(value) 955 } 956 } 957 } 958 } 959 } 960 for function in bodies { 961 mut skip = false 962 for identity in skipped { skip = skip || identity == function.signature.binding.identity.module } 963 if !skip { 964 for anonymous in body_anonymous_functions(function.body) { 965 if anonymous.status == BodyIdentityChecked() && anonymous.deferred.len() == 0 { 966 declarations = declarations.append(module_emission_anonymous(graph, entry, anonymous)) 967 } else { 968 diagnostics = diagnostics.append(Diagnostic("anonymous function is not completely checked for emission", anonymous.signature.binding.span.start)) 969 } 970 } 971 } 972 } 973 ModuleEmissionResult(indexed_program(declarations), diagnostics) 974 } 975
Functions
[
{
"id": "declaration/12",
"name": "module_emission_module_index",
"line": 58,
"state": "covered",
"entries": "27781"
},
{
"id": "declaration/13",
"name": "module_emission_nat_text",
"line": 73,
"state": "covered",
"entries": "28273"
},
{
"id": "declaration/14",
"name": "module_emission_native_record_owner",
"line": 79,
"state": "covered",
"entries": "28953"
},
{
"id": "declaration/15",
"name": "module_emission_symbol",
"line": 93,
"state": "covered",
"entries": "28953"
},
{
"id": "declaration/16",
"name": "module_emission_callable_symbol",
"line": 120,
"state": "covered",
"entries": "28909"
},
{
"id": "declaration/17",
"name": "module_emission_target",
"line": 142,
"state": "covered",
"entries": "45900"
},
{
"id": "declaration/18",
"name": "module_emission_signature_type",
"line": 156,
"state": "covered",
"entries": "46331"
},
{
"id": "declaration/19",
"name": "module_emission_signature",
"line": 189,
"state": "covered",
"entries": "978"
},
{
"id": "declaration/20",
"name": "module_emission_slot_type",
"line": 202,
"state": "covered",
"entries": "1905"
},
{
"id": "declaration/21",
"name": "module_emission_guard_target",
"line": 224,
"state": "covered",
"entries": "14"
},
{
"id": "declaration/22",
"name": "module_emission_guard_expressions",
"line": 239,
"state": "covered",
"entries": "170"
},
{
"id": "declaration/23",
"name": "module_emission_guard_block",
"line": 253,
"state": "zero",
"entries": "0"
},
{
"id": "declaration/24",
"name": "module_emission_guard_arms",
"line": 296,
"state": "zero",
"entries": "0"
},
{
"id": "declaration/25",
"name": "module_emission_guard_expression",
"line": 317,
"state": "covered",
"entries": "3142"
},
{
"id": "declaration/26",
"name": "module_emission_escape_string",
"line": 409,
"state": "covered",
"entries": "443"
},
{
"id": "declaration/27",
"name": "module_emission_interpolation",
"line": 440,
"state": "covered",
"entries": "443"
},
{
"id": "declaration/28",
"name": "module_emission_expression",
"line": 499,
"state": "covered",
"entries": "1"
},
{
"id": "declaration/29",
"name": "module_emission_expressions",
"line": 507,
"state": "covered",
"entries": "41930"
},
{
"id": "declaration/30",
"name": "module_emission_block",
"line": 520,
"state": "covered",
"entries": "28195"
},
{
"id": "declaration/31",
"name": "module_emission_expression_with_parameters",
"line": 614,
"state": "covered",
"entries": "196198"
},
{
"id": "declaration/32",
"name": "module_emission_function",
"line": 688,
"state": "covered",
"entries": "8919"
},
{
"id": "declaration/33",
"name": "module_emission_declaration_span",
"line": 761,
"state": "covered",
"entries": "2"
},
{
"id": "declaration/34",
"name": "module_emission_program",
"line": 783,
"state": "covered",
"entries": "78"
},
{
"id": "declaration/35",
"name": "module_emission_anonymous",
"line": 793,
"state": "covered",
"entries": "381"
},
{
"id": "declaration/36",
"name": "module_emission_program_reusing",
"line": 811,
"state": "covered",
"entries": "238"
}
]Source branch outcomes
[
{
"id": "declaration/12/statement/2/decision/body",
"outcome": "body",
"line": 64,
"state": "covered",
"hits": "1081629"
},
{
"id": "declaration/12/statement/2/decision/exit",
"outcome": "exit",
"line": 64,
"state": "covered",
"hits": "27781"
},
{
"id": "declaration/12/statement/2/body/statement/0/value/decision/true",
"outcome": "true",
"line": 65,
"state": "covered",
"hits": "27779"
},
{
"id": "declaration/12/statement/2/body/statement/0/value/decision/false",
"outcome": "false",
"line": 65,
"state": "covered",
"hits": "1053850"
},
{
"id": "declaration/14/tail/decision/true",
"outcome": "true",
"line": 80,
"state": "covered",
"hits": "27"
},
{
"id": "declaration/14/tail/decision/false",
"outcome": "false",
"line": 80,
"state": "covered",
"hits": "28926"
},
{
"id": "declaration/14/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 80,
"state": "covered",
"hits": "28930"
},
{
"id": "declaration/14/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 80,
"state": "covered",
"hits": "23"
},
{
"id": "declaration/14/tail/condition/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 80,
"state": "covered",
"hits": "28935"
},
{
"id": "declaration/14/tail/condition/left/decision/skip-right",
"outcome": "skip-right",
"line": 80,
"state": "covered",
"hits": "18"
},
{
"id": "declaration/14/tail/condition/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 80,
"state": "covered",
"hits": "28941"
},
{
"id": "declaration/14/tail/condition/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 80,
"state": "covered",
"hits": "12"
},
{
"id": "declaration/14/tail/condition/left/left/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 80,
"state": "covered",
"hits": "28947"
},
{
"id": "declaration/14/tail/condition/left/left/left/decision/skip-right",
"outcome": "skip-right",
"line": 80,
"state": "covered",
"hits": "6"
},
{
"id": "declaration/14/tail/false/tail/decision/true",
"outcome": "true",
"line": 82,
"state": "covered",
"hits": "105"
},
{
"id": "declaration/14/tail/false/tail/decision/false",
"outcome": "false",
"line": 82,
"state": "covered",
"hits": "28821"
},
{
"id": "declaration/14/tail/false/tail/false/tail/decision/true",
"outcome": "true",
"line": 83,
"state": "covered",
"hits": "7"
},
{
"id": "declaration/14/tail/false/tail/false/tail/decision/false",
"outcome": "false",
"line": 83,
"state": "covered",
"hits": "28814"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/decision/true",
"outcome": "true",
"line": 84,
"state": "covered",
"hits": "7"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/decision/false",
"outcome": "false",
"line": 84,
"state": "covered",
"hits": "28807"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/decision/true",
"outcome": "true",
"line": 85,
"state": "covered",
"hits": "37"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/decision/false",
"outcome": "false",
"line": 85,
"state": "covered",
"hits": "28770"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 85,
"state": "covered",
"hits": "28774"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 85,
"state": "covered",
"hits": "33"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/false/tail/decision/true",
"outcome": "true",
"line": 86,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/false/tail/decision/false",
"outcome": "false",
"line": 86,
"state": "covered",
"hits": "28770"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/decision/true",
"outcome": "true",
"line": 87,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/decision/false",
"outcome": "false",
"line": 87,
"state": "covered",
"hits": "28768"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/decision/true",
"outcome": "true",
"line": 88,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/decision/false",
"outcome": "false",
"line": 88,
"state": "covered",
"hits": "28766"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/decision/true",
"outcome": "true",
"line": 89,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/decision/false",
"outcome": "false",
"line": 89,
"state": "covered",
"hits": "28766"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 89,
"state": "covered",
"hits": "28766"
},
{
"id": "declaration/14/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/false/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 89,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/15/tail/decision/true",
"outcome": "true",
"line": 101,
"state": "covered",
"hits": "2553"
},
{
"id": "declaration/15/tail/decision/false",
"outcome": "false",
"line": 101,
"state": "covered",
"hits": "26400"
},
{
"id": "declaration/15/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 101,
"state": "covered",
"hits": "4661"
},
{
"id": "declaration/15/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 101,
"state": "covered",
"hits": "24292"
},
{
"id": "declaration/15/tail/condition/right/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 102,
"state": "covered",
"hits": "2285"
},
{
"id": "declaration/15/tail/condition/right/decision/skip-right",
"outcome": "skip-right",
"line": 102,
"state": "covered",
"hits": "2376"
},
{
"id": "declaration/15/tail/condition/right/right/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 103,
"state": "covered",
"hits": "187"
},
{
"id": "declaration/15/tail/condition/right/right/decision/skip-right",
"outcome": "skip-right",
"line": 103,
"state": "covered",
"hits": "2098"
},
{
"id": "declaration/15/tail/false/tail/decision/true",
"outcome": "true",
"line": 106,
"state": "covered",
"hits": "221"
},
{
"id": "declaration/15/tail/false/tail/decision/false",
"outcome": "false",
"line": 106,
"state": "covered",
"hits": "26179"
},
{
"id": "declaration/15/tail/false/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 106,
"state": "covered",
"hits": "3741"
},
{
"id": "declaration/15/tail/false/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 106,
"state": "covered",
"hits": "22659"
},
{
"id": "declaration/15/tail/false/tail/false/tail/arm/0",
"outcome": "None",
"line": 110,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/15/tail/false/tail/false/tail/arm/1",
"outcome": "Some",
"line": 111,
"state": "covered",
"hits": "26177"
},
{
"id": "declaration/16/tail/decision/true",
"outcome": "true",
"line": 125,
"state": "covered",
"hits": "8336"
},
{
"id": "declaration/16/tail/decision/false",
"outcome": "false",
"line": 125,
"state": "covered",
"hits": "20573"
},
{
"id": "declaration/16/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 125,
"state": "covered",
"hits": "8453"
},
{
"id": "declaration/16/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 125,
"state": "covered",
"hits": "20456"
},
{
"id": "declaration/16/tail/false/tail/decision/true",
"outcome": "true",
"line": 129,
"state": "covered",
"hits": "1602"
},
{
"id": "declaration/16/tail/false/tail/decision/false",
"outcome": "false",
"line": 129,
"state": "covered",
"hits": "18971"
},
{
"id": "declaration/16/tail/false/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 129,
"state": "covered",
"hits": "1605"
},
{
"id": "declaration/16/tail/false/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 129,
"state": "covered",
"hits": "18968"
},
{
"id": "declaration/16/tail/false/tail/condition/left/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 129,
"state": "covered",
"hits": "11877"
},
{
"id": "declaration/16/tail/false/tail/condition/left/decision/skip-right",
"outcome": "skip-right",
"line": 129,
"state": "covered",
"hits": "8696"
},
{
"id": "declaration/16/tail/false/tail/true/tail/arm/0",
"outcome": "None",
"line": 133,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/16/tail/false/tail/true/tail/arm/1",
"outcome": "Some",
"line": 134,
"state": "covered",
"hits": "1602"
},
{
"id": "declaration/17/tail/arm/0",
"outcome": "BodyCore",
"line": 148,
"state": "covered",
"hits": "12883"
},
{
"id": "declaration/17/tail/arm/1",
"outcome": "BodyDeclaration",
"line": 149,
"state": "covered",
"hits": "33017"
},
{
"id": "declaration/17/tail/arm/1/body/arm/0",
"outcome": "None",
"line": 150,
"state": "covered",
"hits": "18185"
},
{
"id": "declaration/17/tail/arm/1/body/arm/1",
"outcome": "Some",
"line": 151,
"state": "covered",
"hits": "14832"
},
{
"id": "declaration/18/statement/0/value/arm/0",
"outcome": "SignatureCore",
"line": 164,
"state": "covered",
"hits": "32997"
},
{
"id": "declaration/18/statement/0/value/arm/1",
"outcome": "SignatureNominal",
"line": 165,
"state": "covered",
"hits": "8067"
},
{
"id": "declaration/18/statement/0/value/arm/2",
"outcome": "SignatureParameter",
"line": 166,
"state": "covered",
"hits": "4570"
},
{
"id": "declaration/18/statement/0/value/arm/2/body/decision/true",
"outcome": "true",
"line": 166,
"state": "covered",
"hits": "4570"
},
{
"id": "declaration/18/statement/0/value/arm/2/body/decision/false",
"outcome": "false",
"line": 166,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/18/statement/0/value/arm/2/body/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 166,
"state": "covered",
"hits": "4570"
},
{
"id": "declaration/18/statement/0/value/arm/2/body/condition/decision/skip-right",
"outcome": "skip-right",
"line": 166,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/18/statement/0/value/arm/3",
"outcome": "SignatureCallable",
"line": 171,
"state": "covered",
"hits": "697"
},
{
"id": "declaration/18/statement/0/value/arm/3/body/arm/0",
"outcome": "SignaturePure",
"line": 172,
"state": "covered",
"hits": "676"
},
{
"id": "declaration/18/statement/0/value/arm/3/body/arm/1",
"outcome": "SignatureOrdinary",
"line": 173,
"state": "covered",
"hits": "10"
},
{
"id": "declaration/18/statement/0/value/arm/3/body/arm/2",
"outcome": "SignatureAsync",
"line": 174,
"state": "covered",
"hits": "11"
},
{
"id": "declaration/18/statement/0/value/arm/4",
"outcome": "SignatureHole",
"line": 176,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/18/statement/2/decision/body",
"outcome": "body",
"line": 179,
"state": "covered",
"hits": "11266"
},
{
"id": "declaration/18/statement/2/decision/exit",
"outcome": "exit",
"line": 179,
"state": "covered",
"hits": "46331"
},
{
"id": "declaration/18/tail/decision/true",
"outcome": "true",
"line": 182,
"state": "covered",
"hits": "37667"
},
{
"id": "declaration/18/tail/decision/false",
"outcome": "false",
"line": 182,
"state": "covered",
"hits": "8664"
},
{
"id": "declaration/19/statement/1/decision/body",
"outcome": "body",
"line": 194,
"state": "covered",
"hits": "407445"
},
{
"id": "declaration/19/statement/1/decision/exit",
"outcome": "exit",
"line": 194,
"state": "covered",
"hits": "978"
},
{
"id": "declaration/19/statement/1/body/tail/decision/true",
"outcome": "true",
"line": 195,
"state": "covered",
"hits": "978"
},
{
"id": "declaration/19/statement/1/body/tail/decision/false",
"outcome": "false",
"line": 195,
"state": "covered",
"hits": "406467"
},
{
"id": "declaration/20/statement/1/decision/body",
"outcome": "body",
"line": 210,
"state": "covered",
"hits": "11007"
},
{
"id": "declaration/20/statement/1/decision/exit",
"outcome": "exit",
"line": 210,
"state": "covered",
"hits": "1905"
},
{
"id": "declaration/20/statement/1/body/tail/decision/true",
"outcome": "true",
"line": 211,
"state": "covered",
"hits": "1905"
},
{
"id": "declaration/20/statement/1/body/tail/decision/false",
"outcome": "false",
"line": 211,
"state": "covered",
"hits": "9102"
},
{
"id": "declaration/21/tail/arm/0",
"outcome": "Error",
"line": 231,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/21/tail/arm/1",
"outcome": "Ok",
"line": 232,
"state": "covered",
"hits": "14"
},
{
"id": "declaration/21/tail/arm/1/body/arm/0",
"outcome": "NamespaceTarget",
"line": 233,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/21/tail/arm/1/body/arm/1",
"outcome": "DeclarationTarget",
"line": 234,
"state": "covered",
"hits": "14"
},
{
"id": "declaration/22/statement/1/decision/body",
"outcome": "body",
"line": 247,
"state": "covered",
"hits": "14"
},
{
"id": "declaration/22/statement/1/decision/exit",
"outcome": "exit",
"line": 247,
"state": "covered",
"hits": "170"
},
{
"id": "declaration/23/statement/1/decision/body",
"outcome": "body",
"line": 261,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/23/statement/1/decision/exit",
"outcome": "exit",
"line": 261,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/23/statement/1/body/statement/0/value/args/0/arm/0",
"outcome": "BindingStatement",
"line": 263,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/23/statement/1/body/statement/0/value/args/0/arm/1",
"outcome": "AssignmentStatement",
"line": 270,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/23/statement/1/body/statement/0/value/args/0/arm/2",
"outcome": "ExpressionStatement",
"line": 274,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/23/statement/1/body/statement/0/value/args/0/arm/3",
"outcome": "WhileStatement",
"line": 277,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/23/statement/1/body/statement/0/value/args/0/arm/4",
"outcome": "ForStatement",
"line": 281,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/23/tail/args/1/arm/0",
"outcome": "NoBlockValue",
"line": 289,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/23/tail/args/1/arm/1",
"outcome": "TailBlockValue",
"line": 290,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/24/statement/1/decision/body",
"outcome": "body",
"line": 304,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/24/statement/1/decision/exit",
"outcome": "exit",
"line": 304,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/0",
"outcome": "LocatedExpr",
"line": 325,
"state": "covered",
"hits": "1571"
},
{
"id": "declaration/25/tail/arm/1",
"outcome": "NatExpr",
"line": 330,
"state": "covered",
"hits": "289"
},
{
"id": "declaration/25/tail/arm/2",
"outcome": "DecimalExpr",
"line": 331,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/3",
"outcome": "StringExpr",
"line": 332,
"state": "covered",
"hits": "13"
},
{
"id": "declaration/25/tail/arm/4",
"outcome": "BoolExpr",
"line": 333,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/5",
"outcome": "NameExpr",
"line": 334,
"state": "covered",
"hits": "472"
},
{
"id": "declaration/25/tail/arm/6",
"outcome": "AnonymousExpr",
"line": 335,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/7",
"outcome": "FunctionExpr",
"line": 336,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/8",
"outcome": "ArrayExpr",
"line": 337,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/9",
"outcome": "UnaryExpr",
"line": 338,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/10",
"outcome": "BinaryExpr",
"line": 342,
"state": "covered",
"hits": "497"
},
{
"id": "declaration/25/tail/arm/11",
"outcome": "CallExpr",
"line": 347,
"state": "covered",
"hits": "14"
},
{
"id": "declaration/25/tail/arm/12",
"outcome": "OwnedCallExpr",
"line": 352,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/13",
"outcome": "DotCallExpr",
"line": 358,
"state": "covered",
"hits": "156"
},
{
"id": "declaration/25/tail/arm/13/body/arm/0",
"outcome": "Error",
"line": 367,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/13/body/arm/1",
"outcome": "Ok",
"line": 373,
"state": "covered",
"hits": "156"
},
{
"id": "declaration/25/tail/arm/13/body/arm/1/body/arm/0",
"outcome": "OwnedDotCall",
"line": 374,
"state": "covered",
"hits": "156"
},
{
"id": "declaration/25/tail/arm/13/body/arm/1/body/arm/1",
"outcome": "NamespaceCall",
"line": 380,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/14",
"outcome": "FieldExpr",
"line": 387,
"state": "covered",
"hits": "130"
},
{
"id": "declaration/25/tail/arm/15",
"outcome": "IndexExpr",
"line": 391,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/16",
"outcome": "IfExpr",
"line": 395,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/17",
"outcome": "BlockExpr",
"line": 401,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/25/tail/arm/18",
"outcome": "MatchExpr",
"line": 402,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/26/statement/2/decision/body",
"outcome": "body",
"line": 412,
"state": "covered",
"hits": "17591"
},
{
"id": "declaration/26/statement/2/decision/exit",
"outcome": "exit",
"line": 412,
"state": "covered",
"hits": "443"
},
{
"id": "declaration/26/statement/2/body/statement/1/value/decision/true",
"outcome": "true",
"line": 414,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/26/statement/2/body/statement/1/value/decision/false",
"outcome": "false",
"line": 414,
"state": "covered",
"hits": "17591"
},
{
"id": "declaration/26/statement/2/body/statement/1/value/false/tail/decision/true",
"outcome": "true",
"line": 417,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/26/statement/2/body/statement/1/value/false/tail/decision/false",
"outcome": "false",
"line": 417,
"state": "covered",
"hits": "17589"
},
{
"id": "declaration/26/statement/2/body/statement/1/value/false/tail/false/tail/decision/true",
"outcome": "true",
"line": 420,
"state": "covered",
"hits": "63"
},
{
"id": "declaration/26/statement/2/body/statement/1/value/false/tail/false/tail/decision/false",
"outcome": "false",
"line": 420,
"state": "covered",
"hits": "17526"
},
{
"id": "declaration/26/statement/2/body/statement/1/value/false/tail/false/tail/false/tail/decision/true",
"outcome": "true",
"line": 423,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/26/statement/2/body/statement/1/value/false/tail/false/tail/false/tail/decision/false",
"outcome": "false",
"line": 423,
"state": "covered",
"hits": "17526"
},
{
"id": "declaration/26/statement/2/body/statement/1/value/false/tail/false/tail/false/tail/false/tail/decision/true",
"outcome": "true",
"line": 426,
"state": "covered",
"hits": "9"
},
{
"id": "declaration/26/statement/2/body/statement/1/value/false/tail/false/tail/false/tail/false/tail/decision/false",
"outcome": "false",
"line": 426,
"state": "covered",
"hits": "17517"
},
{
"id": "declaration/27/tail/arm/0",
"outcome": "BodyInterpolation",
"line": 442,
"state": "covered",
"hits": "443"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/0/value/decision/true",
"outcome": "true",
"line": 443,
"state": "covered",
"hits": "443"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/0/value/decision/false",
"outcome": "false",
"line": 443,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/decision/body",
"outcome": "body",
"line": 445,
"state": "covered",
"hits": "716"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/decision/exit",
"outcome": "exit",
"line": 445,
"state": "covered",
"hits": "443"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/0",
"outcome": "BodyLocalUse",
"line": 448,
"state": "covered",
"hits": "716"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/1",
"outcome": "BodyLiteral",
"line": 451,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/2",
"outcome": "BodyInterpolation",
"line": 452,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/3",
"outcome": "BodyFunction",
"line": 453,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/4",
"outcome": "BodyAnonymousFunction",
"line": 454,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/5",
"outcome": "BodyCall",
"line": 455,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/6",
"outcome": "BodyArray",
"line": 456,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/7",
"outcome": "BodyUnary",
"line": 457,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/8",
"outcome": "BodyBinary",
"line": 458,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/9",
"outcome": "BodyField",
"line": 459,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/10",
"outcome": "BodyIndex",
"line": 460,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/11",
"outcome": "BodyIf",
"line": 461,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/12",
"outcome": "BodyBlock",
"line": 462,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/13",
"outcome": "BodyMatch",
"line": 463,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/14",
"outcome": "BodyBinding",
"line": 464,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/15",
"outcome": "BodyAssignment",
"line": 465,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/16",
"outcome": "BodyWhile",
"line": 466,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/17",
"outcome": "BodyFor",
"line": 467,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/1/value/arm/18",
"outcome": "BodyEmpty",
"line": 468,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/3/value/decision/true",
"outcome": "true",
"line": 471,
"state": "covered",
"hits": "716"
},
{
"id": "declaration/27/tail/arm/0/body/block/statement/2/body/statement/3/value/decision/false",
"outcome": "false",
"line": 471,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/1",
"outcome": "BodyLiteral",
"line": 478,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/2",
"outcome": "BodyLocalUse",
"line": 479,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/3",
"outcome": "BodyFunction",
"line": 480,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/4",
"outcome": "BodyAnonymousFunction",
"line": 481,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/5",
"outcome": "BodyCall",
"line": 482,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/6",
"outcome": "BodyArray",
"line": 483,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/7",
"outcome": "BodyUnary",
"line": 484,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/8",
"outcome": "BodyBinary",
"line": 485,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/9",
"outcome": "BodyField",
"line": 486,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/10",
"outcome": "BodyIndex",
"line": 487,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/11",
"outcome": "BodyIf",
"line": 488,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/12",
"outcome": "BodyBlock",
"line": 489,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/13",
"outcome": "BodyMatch",
"line": 490,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/14",
"outcome": "BodyBinding",
"line": 491,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/15",
"outcome": "BodyAssignment",
"line": 492,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/16",
"outcome": "BodyWhile",
"line": 493,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/17",
"outcome": "BodyFor",
"line": 494,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/27/tail/arm/18",
"outcome": "BodyEmpty",
"line": 495,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/29/statement/1/decision/body",
"outcome": "body",
"line": 514,
"state": "covered",
"hits": "59870"
},
{
"id": "declaration/29/statement/1/decision/exit",
"outcome": "exit",
"line": 514,
"state": "covered",
"hits": "41930"
},
{
"id": "declaration/30/statement/4/value/arm/0",
"outcome": "BodyBlock",
"line": 531,
"state": "covered",
"hits": "28195"
},
{
"id": "declaration/30/statement/4/value/arm/1",
"outcome": "BodyLiteral",
"line": 532,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/2",
"outcome": "BodyInterpolation",
"line": 533,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/3",
"outcome": "BodyLocalUse",
"line": 534,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/4",
"outcome": "BodyFunction",
"line": 535,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/5",
"outcome": "BodyAnonymousFunction",
"line": 536,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/6",
"outcome": "BodyCall",
"line": 537,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/7",
"outcome": "BodyArray",
"line": 538,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/8",
"outcome": "BodyUnary",
"line": 539,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/9",
"outcome": "BodyBinary",
"line": 540,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/10",
"outcome": "BodyField",
"line": 541,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/11",
"outcome": "BodyIndex",
"line": 542,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/12",
"outcome": "BodyIf",
"line": 543,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/13",
"outcome": "BodyMatch",
"line": 544,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/14",
"outcome": "BodyBinding",
"line": 545,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/15",
"outcome": "BodyAssignment",
"line": 546,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/16",
"outcome": "BodyWhile",
"line": 547,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/17",
"outcome": "BodyFor",
"line": 548,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/4/value/arm/18",
"outcome": "BodyEmpty",
"line": 549,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/5/value/decision/true",
"outcome": "true",
"line": 551,
"state": "covered",
"hits": "18456"
},
{
"id": "declaration/30/statement/5/value/decision/false",
"outcome": "false",
"line": 551,
"state": "covered",
"hits": "9739"
},
{
"id": "declaration/30/statement/5/value/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 551,
"state": "covered",
"hits": "18456"
},
{
"id": "declaration/30/statement/5/value/condition/decision/skip-right",
"outcome": "skip-right",
"line": 551,
"state": "covered",
"hits": "9739"
},
{
"id": "declaration/30/statement/7/decision/body",
"outcome": "body",
"line": 555,
"state": "covered",
"hits": "43727"
},
{
"id": "declaration/30/statement/7/decision/exit",
"outcome": "exit",
"line": 555,
"state": "covered",
"hits": "28195"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/decision/true",
"outcome": "true",
"line": 556,
"state": "covered",
"hits": "25271"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/decision/false",
"outcome": "false",
"line": 556,
"state": "covered",
"hits": "18456"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/0",
"outcome": "BodyBinding",
"line": 558,
"state": "covered",
"hits": "10195"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/0/body/args/0/args/1/arm/0",
"outcome": "Some",
"line": 561,
"state": "covered",
"hits": "10195"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/0/body/args/0/args/1/arm/1",
"outcome": "None",
"line": 562,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/1",
"outcome": "BodyAssignment",
"line": 568,
"state": "covered",
"hits": "8765"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/2",
"outcome": "BodyWhile",
"line": 572,
"state": "covered",
"hits": "1269"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/3",
"outcome": "BodyFor",
"line": 576,
"state": "covered",
"hits": "1335"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/4",
"outcome": "BodyEmpty",
"line": 581,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/5",
"outcome": "BodyLiteral",
"line": 582,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/6",
"outcome": "BodyInterpolation",
"line": 583,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/7",
"outcome": "BodyLocalUse",
"line": 584,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/8",
"outcome": "BodyFunction",
"line": 585,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/9",
"outcome": "BodyAnonymousFunction",
"line": 586,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/10",
"outcome": "BodyCall",
"line": 587,
"state": "covered",
"hits": "1544"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/11",
"outcome": "BodyArray",
"line": 588,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/12",
"outcome": "BodyUnary",
"line": 589,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/13",
"outcome": "BodyBinary",
"line": 590,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/14",
"outcome": "BodyField",
"line": 591,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/15",
"outcome": "BodyIndex",
"line": 592,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/16",
"outcome": "BodyIf",
"line": 593,
"state": "covered",
"hits": "1832"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/17",
"outcome": "BodyBlock",
"line": 594,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/statement/0/value/arm/18",
"outcome": "BodyMatch",
"line": 595,
"state": "covered",
"hits": "331"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/tail/arm/0",
"outcome": "None",
"line": 598,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/30/statement/7/body/statement/0/value/true/tail/arm/1",
"outcome": "Some",
"line": 599,
"state": "covered",
"hits": "25271"
},
{
"id": "declaration/30/statement/8/value/decision/true",
"outcome": "true",
"line": 606,
"state": "covered",
"hits": "18456"
},
{
"id": "declaration/30/statement/8/value/decision/false",
"outcome": "false",
"line": 606,
"state": "covered",
"hits": "9739"
},
{
"id": "declaration/30/statement/8/value/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 606,
"state": "covered",
"hits": "18456"
},
{
"id": "declaration/30/statement/8/value/condition/decision/skip-right",
"outcome": "skip-right",
"line": 606,
"state": "covered",
"hits": "9739"
},
{
"id": "declaration/31/statement/0/value/arm/0",
"outcome": "BodyInterpolation",
"line": 621,
"state": "covered",
"hits": "443"
},
{
"id": "declaration/31/statement/0/value/arm/1",
"outcome": "BodyLiteral",
"line": 622,
"state": "covered",
"hits": "30626"
},
{
"id": "declaration/31/statement/0/value/arm/2",
"outcome": "BodyLocalUse",
"line": 623,
"state": "covered",
"hits": "67131"
},
{
"id": "declaration/31/statement/0/value/arm/3",
"outcome": "BodyFunction",
"line": 624,
"state": "covered",
"hits": "87"
},
{
"id": "declaration/31/statement/0/value/arm/4",
"outcome": "BodyAnonymousFunction",
"line": 625,
"state": "covered",
"hits": "381"
},
{
"id": "declaration/31/statement/0/value/arm/4/body/block/statement/2/decision/body",
"outcome": "body",
"line": 628,
"state": "covered",
"hits": "100"
},
{
"id": "declaration/31/statement/0/value/arm/4/body/block/statement/2/decision/exit",
"outcome": "exit",
"line": 628,
"state": "covered",
"hits": "381"
},
{
"id": "declaration/31/statement/0/value/arm/4/body/block/tail/decision/true",
"outcome": "true",
"line": 630,
"state": "covered",
"hits": "291"
},
{
"id": "declaration/31/statement/0/value/arm/4/body/block/tail/decision/false",
"outcome": "false",
"line": 630,
"state": "covered",
"hits": "90"
},
{
"id": "declaration/31/statement/0/value/arm/5",
"outcome": "BodyCall",
"line": 637,
"state": "covered",
"hits": "39195"
},
{
"id": "declaration/31/statement/0/value/arm/6",
"outcome": "BodyArray",
"line": 642,
"state": "covered",
"hits": "2645"
},
{
"id": "declaration/31/statement/0/value/arm/7",
"outcome": "BodyUnary",
"line": 643,
"state": "covered",
"hits": "976"
},
{
"id": "declaration/31/statement/0/value/arm/8",
"outcome": "BodyBinary",
"line": 644,
"state": "covered",
"hits": "30349"
},
{
"id": "declaration/31/statement/0/value/arm/9",
"outcome": "BodyField",
"line": 649,
"state": "covered",
"hits": "9569"
},
{
"id": "declaration/31/statement/0/value/arm/10",
"outcome": "BodyIndex",
"line": 650,
"state": "covered",
"hits": "3075"
},
{
"id": "declaration/31/statement/0/value/arm/11",
"outcome": "BodyIf",
"line": 654,
"state": "covered",
"hits": "6537"
},
{
"id": "declaration/31/statement/0/value/arm/12",
"outcome": "BodyBlock",
"line": 660,
"state": "covered",
"hits": "3219"
},
{
"id": "declaration/31/statement/0/value/arm/13",
"outcome": "BodyMatch",
"line": 661,
"state": "covered",
"hits": "1965"
},
{
"id": "declaration/31/statement/0/value/arm/13/body/block/statement/2/decision/body",
"outcome": "body",
"line": 664,
"state": "covered",
"hits": "6705"
},
{
"id": "declaration/31/statement/0/value/arm/13/body/block/statement/2/decision/exit",
"outcome": "exit",
"line": 664,
"state": "covered",
"hits": "1965"
},
{
"id": "declaration/31/statement/0/value/arm/13/body/block/statement/2/body/statement/1/value/decision/true",
"outcome": "true",
"line": 666,
"state": "covered",
"hits": "6705"
},
{
"id": "declaration/31/statement/0/value/arm/13/body/block/statement/2/body/statement/1/value/decision/false",
"outcome": "false",
"line": 666,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/31/statement/0/value/arm/13/body/block/statement/2/body/statement/1/value/true/statement/0/decision/body",
"outcome": "body",
"line": 667,
"state": "covered",
"hits": "7633"
},
{
"id": "declaration/31/statement/0/value/arm/13/body/block/statement/2/body/statement/1/value/true/statement/0/decision/exit",
"outcome": "exit",
"line": 667,
"state": "covered",
"hits": "6705"
},
{
"id": "declaration/31/statement/0/value/arm/14",
"outcome": "BodyBinding",
"line": 679,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/31/statement/0/value/arm/15",
"outcome": "BodyAssignment",
"line": 680,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/31/statement/0/value/arm/16",
"outcome": "BodyWhile",
"line": 681,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/31/statement/0/value/arm/17",
"outcome": "BodyFor",
"line": 682,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/31/statement/0/value/arm/18",
"outcome": "BodyEmpty",
"line": 683,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/tail/arm/0",
"outcome": "FunctionDeclaration",
"line": 696,
"state": "covered",
"hits": "8919"
},
{
"id": "declaration/32/tail/arm/0/body/block/statement/2/decision/body",
"outcome": "body",
"line": 699,
"state": "covered",
"hits": "2039527"
},
{
"id": "declaration/32/tail/arm/0/body/block/statement/2/decision/exit",
"outcome": "exit",
"line": 699,
"state": "covered",
"hits": "8919"
},
{
"id": "declaration/32/tail/arm/0/body/block/statement/2/body/tail/decision/true",
"outcome": "true",
"line": 700,
"state": "covered",
"hits": "8919"
},
{
"id": "declaration/32/tail/arm/0/body/block/statement/2/body/tail/decision/false",
"outcome": "false",
"line": 700,
"state": "covered",
"hits": "2030608"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/0",
"outcome": "None",
"line": 705,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1",
"outcome": "Some",
"line": 706,
"state": "covered",
"hits": "8919"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/0",
"outcome": "BodyIdentityChecked",
"line": 707,
"state": "covered",
"hits": "8917"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/0/body/decision/true",
"outcome": "true",
"line": 707,
"state": "covered",
"hits": "8917"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/0/body/decision/false",
"outcome": "false",
"line": 707,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/0/body/true/statement/2/decision/body",
"outcome": "body",
"line": 710,
"state": "covered",
"hits": "13246"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/0/body/true/statement/2/decision/exit",
"outcome": "exit",
"line": 710,
"state": "covered",
"hits": "8917"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/0/body/true/statement/2/body/statement/0/value/decision/true",
"outcome": "true",
"line": 711,
"state": "covered",
"hits": "13246"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/0/body/true/statement/2/body/statement/0/value/decision/false",
"outcome": "false",
"line": 711,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/0/body/true/statement/3/value/decision/true",
"outcome": "true",
"line": 725,
"state": "covered",
"hits": "8917"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/0/body/true/statement/3/value/decision/false",
"outcome": "false",
"line": 725,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/1",
"outcome": "BodyDeferred",
"line": 748,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/32/tail/arm/0/body/block/tail/arm/1/body/arm/2",
"outcome": "BodyInvalid",
"line": 749,
"state": "covered",
"hits": "1"
},
{
"id": "declaration/32/tail/arm/1",
"outcome": "ImportDeclaration",
"line": 753,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/tail/arm/2",
"outcome": "TypeDeclaration",
"line": 754,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/tail/arm/3",
"outcome": "RecordDeclaration",
"line": 755,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/32/tail/arm/4",
"outcome": "EnumDeclaration",
"line": 756,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/33/statement/2/decision/body",
"outcome": "body",
"line": 767,
"state": "covered",
"hits": "24"
},
{
"id": "declaration/33/statement/2/decision/exit",
"outcome": "exit",
"line": 767,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/33/statement/2/body/statement/0/value/arm/0",
"outcome": "ImportDeclaration",
"line": 769,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/33/statement/2/body/statement/0/value/arm/1",
"outcome": "TypeDeclaration",
"line": 770,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/33/statement/2/body/statement/0/value/arm/2",
"outcome": "RecordDeclaration",
"line": 771,
"state": "covered",
"hits": "4"
},
{
"id": "declaration/33/statement/2/body/statement/0/value/arm/3",
"outcome": "EnumDeclaration",
"line": 772,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/33/statement/2/body/statement/0/value/arm/4",
"outcome": "FunctionDeclaration",
"line": 773,
"state": "covered",
"hits": "14"
},
{
"id": "declaration/33/statement/2/body/statement/1/value/decision/true",
"outcome": "true",
"line": 775,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/33/statement/2/body/statement/1/value/decision/false",
"outcome": "false",
"line": 775,
"state": "covered",
"hits": "22"
},
{
"id": "declaration/35/statement/4/decision/body",
"outcome": "body",
"line": 800,
"state": "covered",
"hits": "421"
},
{
"id": "declaration/35/statement/4/decision/exit",
"outcome": "exit",
"line": 800,
"state": "covered",
"hits": "381"
},
{
"id": "declaration/36/statement/2/decision/body",
"outcome": "body",
"line": 817,
"state": "covered",
"hits": "825"
},
{
"id": "declaration/36/statement/2/decision/exit",
"outcome": "exit",
"line": 817,
"state": "covered",
"hits": "238"
},
{
"id": "declaration/36/statement/2/body/statement/1/decision/body",
"outcome": "body",
"line": 819,
"state": "covered",
"hits": "220"
},
{
"id": "declaration/36/statement/2/body/statement/1/decision/exit",
"outcome": "exit",
"line": 819,
"state": "covered",
"hits": "825"
},
{
"id": "declaration/36/statement/2/body/statement/1/body/statement/0/value/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 819,
"state": "covered",
"hits": "148"
},
{
"id": "declaration/36/statement/2/body/statement/1/body/statement/0/value/decision/skip-right",
"outcome": "skip-right",
"line": 819,
"state": "covered",
"hits": "72"
},
{
"id": "declaration/36/statement/2/body/tail/decision/true",
"outcome": "true",
"line": 820,
"state": "covered",
"hits": "237"
},
{
"id": "declaration/36/statement/2/body/tail/decision/false",
"outcome": "false",
"line": 820,
"state": "covered",
"hits": "588"
},
{
"id": "declaration/36/statement/2/body/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 820,
"state": "covered",
"hits": "340"
},
{
"id": "declaration/36/statement/2/body/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 820,
"state": "covered",
"hits": "485"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/decision/body",
"outcome": "body",
"line": 824,
"state": "covered",
"hits": "7556"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/decision/exit",
"outcome": "exit",
"line": 824,
"state": "covered",
"hits": "237"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/body/statement/0/value/arm/0",
"outcome": "FunctionDeclaration",
"line": 826,
"state": "covered",
"hits": "6376"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/body/statement/0/value/arm/0/body/block/tail/decision/true",
"outcome": "true",
"line": 827,
"state": "covered",
"hits": "5944"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/body/statement/0/value/arm/0/body/block/tail/decision/false",
"outcome": "false",
"line": 827,
"state": "covered",
"hits": "432"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/body/statement/0/value/arm/0/body/block/tail/true/tail/arm/0",
"outcome": "Some",
"line": 828,
"state": "covered",
"hits": "5944"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/body/statement/0/value/arm/0/body/block/tail/true/tail/arm/1",
"outcome": "None",
"line": 829,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/body/statement/0/value/arm/1",
"outcome": "ImportDeclaration",
"line": 837,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/body/statement/0/value/arm/2",
"outcome": "TypeDeclaration",
"line": 838,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/body/statement/0/value/arm/3",
"outcome": "RecordDeclaration",
"line": 839,
"state": "covered",
"hits": "236"
},
{
"id": "declaration/36/statement/2/body/tail/true/statement/1/body/statement/0/value/arm/4",
"outcome": "EnumDeclaration",
"line": 840,
"state": "covered",
"hits": "944"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/decision/body",
"outcome": "body",
"line": 845,
"state": "covered",
"hits": "4964"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/decision/exit",
"outcome": "exit",
"line": 845,
"state": "covered",
"hits": "588"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/0",
"outcome": "ImportDeclaration",
"line": 847,
"state": "covered",
"hits": "729"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/1",
"outcome": "TypeDeclaration",
"line": 848,
"state": "covered",
"hits": "277"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/1/body/args/0/args/1/arm/0",
"outcome": "None",
"line": 855,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/1/body/args/0/args/1/arm/1",
"outcome": "Some",
"line": 856,
"state": "covered",
"hits": "277"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/2",
"outcome": "RecordDeclaration",
"line": 873,
"state": "covered",
"hits": "454"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/2/body/block/statement/2/value/arm/0",
"outcome": "None",
"line": 877,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/2/body/block/statement/2/value/arm/1",
"outcome": "Some",
"line": 880,
"state": "covered",
"hits": "454"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/2/body/block/statement/2/value/arm/1/body/block/statement/0/decision/body",
"outcome": "body",
"line": 881,
"state": "covered",
"hits": "1134"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/2/body/block/statement/2/value/arm/1/body/block/statement/0/decision/exit",
"outcome": "exit",
"line": 881,
"state": "covered",
"hits": "454"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/3",
"outcome": "EnumDeclaration",
"line": 895,
"state": "covered",
"hits": "247"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/3/body/block/statement/3/decision/body",
"outcome": "body",
"line": 899,
"state": "covered",
"hits": "848"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/3/body/block/statement/3/decision/exit",
"outcome": "exit",
"line": 899,
"state": "covered",
"hits": "247"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/3/body/block/statement/3/body/statement/2/decision/body",
"outcome": "body",
"line": 902,
"state": "covered",
"hits": "494"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/3/body/block/statement/3/body/statement/2/decision/exit",
"outcome": "exit",
"line": 902,
"state": "covered",
"hits": "848"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/3/body/block/statement/3/body/statement/2/body/statement/1/value/arm/0",
"outcome": "None",
"line": 905,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/3/body/block/statement/3/body/statement/2/body/statement/1/value/arm/1",
"outcome": "Some",
"line": 906,
"state": "covered",
"hits": "494"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/4",
"outcome": "FunctionDeclaration",
"line": 931,
"state": "covered",
"hits": "3257"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/4/body/decision/true",
"outcome": "true",
"line": 931,
"state": "covered",
"hits": "282"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/statement/0/value/arm/4/body/decision/false",
"outcome": "false",
"line": 931,
"state": "covered",
"hits": "2975"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0",
"outcome": "None",
"line": 934,
"state": "covered",
"hits": "1013"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/0",
"outcome": "FunctionDeclaration",
"line": 935,
"state": "covered",
"hits": "284"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/0/body/decision/true",
"outcome": "true",
"line": 935,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/0/body/decision/false",
"outcome": "false",
"line": 935,
"state": "covered",
"hits": "282"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/0/body/true/statement/1/decision/body",
"outcome": "body",
"line": 937,
"state": "covered",
"hits": "86"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/0/body/true/statement/1/decision/exit",
"outcome": "exit",
"line": 937,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/0/body/true/statement/1/body/tail/decision/true",
"outcome": "true",
"line": 938,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/0/body/true/statement/1/body/tail/decision/false",
"outcome": "false",
"line": 938,
"state": "covered",
"hits": "86"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/0/body/true/statement/1/body/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 938,
"state": "covered",
"hits": "2"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/0/body/true/statement/1/body/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 938,
"state": "covered",
"hits": "84"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/1",
"outcome": "ImportDeclaration",
"line": 948,
"state": "covered",
"hits": "729"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/2",
"outcome": "TypeDeclaration",
"line": 949,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/3",
"outcome": "RecordDeclaration",
"line": 950,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/0/body/arm/4",
"outcome": "EnumDeclaration",
"line": 951,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/2/body/tail/false/statement/0/body/tail/arm/1",
"outcome": "Some",
"line": 953,
"state": "covered",
"hits": "3951"
},
{
"id": "declaration/36/statement/3/decision/body",
"outcome": "body",
"line": 960,
"state": "covered",
"hits": "8919"
},
{
"id": "declaration/36/statement/3/decision/exit",
"outcome": "exit",
"line": 960,
"state": "covered",
"hits": "238"
},
{
"id": "declaration/36/statement/3/body/statement/1/decision/body",
"outcome": "body",
"line": 962,
"state": "covered",
"hits": "405"
},
{
"id": "declaration/36/statement/3/body/statement/1/decision/exit",
"outcome": "exit",
"line": 962,
"state": "covered",
"hits": "8919"
},
{
"id": "declaration/36/statement/3/body/statement/1/body/statement/0/value/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 962,
"state": "covered",
"hits": "405"
},
{
"id": "declaration/36/statement/3/body/statement/1/body/statement/0/value/decision/skip-right",
"outcome": "skip-right",
"line": 962,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/3/body/tail/decision/true",
"outcome": "true",
"line": 963,
"state": "covered",
"hits": "8919"
},
{
"id": "declaration/36/statement/3/body/tail/decision/false",
"outcome": "false",
"line": 963,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/3/body/tail/true/statement/0/decision/body",
"outcome": "body",
"line": 964,
"state": "covered",
"hits": "381"
},
{
"id": "declaration/36/statement/3/body/tail/true/statement/0/decision/exit",
"outcome": "exit",
"line": 964,
"state": "covered",
"hits": "8919"
},
{
"id": "declaration/36/statement/3/body/tail/true/statement/0/body/tail/decision/true",
"outcome": "true",
"line": 965,
"state": "covered",
"hits": "381"
},
{
"id": "declaration/36/statement/3/body/tail/true/statement/0/body/tail/decision/false",
"outcome": "false",
"line": 965,
"state": "zero",
"hits": "0"
},
{
"id": "declaration/36/statement/3/body/tail/true/statement/0/body/tail/condition/decision/evaluate-right",
"outcome": "evaluate-right",
"line": 965,
"state": "covered",
"hits": "381"
},
{
"id": "declaration/36/statement/3/body/tail/true/statement/0/body/tail/condition/decision/skip-right",
"outcome": "skip-right",
"line": 965,
"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": "import",
"line": 17
},
{
"id": "declaration/4",
"reason": "import",
"line": 25
},
{
"id": "declaration/5",
"reason": "import",
"line": 34
},
{
"id": "declaration/6",
"reason": "import",
"line": 35
},
{
"id": "declaration/7",
"reason": "import",
"line": 41
},
{
"id": "declaration/8",
"reason": "import",
"line": 45
},
{
"id": "declaration/9",
"reason": "import",
"line": 46
},
{
"id": "declaration/10",
"reason": "import",
"line": 47
},
{
"id": "declaration/11",
"reason": "record-declaration",
"line": 53
}
]