[
  {
    "fragmentId": "method:hh1uha:createmauiapp__fragment",
    "ownerFileId": "file:1uay25w:mauiprogram-cs",
    "ownerSymbolId": "method:hh1uha:createmauiapp",
    "ownerSymbolName": "CreateMauiApp",
    "entryNodeId": "method:hh1uha:createmauiapp__entry",
    "exitNodeIds": [
      "method:hh1uha:createmauiapp__action_57_createmauiapp_return_57_1__return",
      "method:hh1uha:createmauiapp__action_57_return_57__return",
      "method:hh1uha:createmauiapp__action_63_createmauiapp_throw_63_3__throw"
    ],
    "nodes": [
      {
        "id": "method:hh1uha:createmauiapp__entry",
        "kind": "entry",
        "label": "CreateMauiApp entry",
        "line": 12,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.99,
        "detail": "Create and configure the MAUI app builder, register application and platform services, configure debugging tools in DEBUG, and build/return the app; catches startup exceptions and rethrows after logging."
      },
      {
        "id": "method:hh1uha:createmauiapp__action_14_try_catch_14__linear",
        "kind": "statement",
        "label": "Catch startup exceptions, log to Debug and rethrow",
        "line": 14,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7,
        "detail": "catch (Exception ex) { Debug.WriteLine(...); throw; }"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_14_createmauiapp_try_14_0__try",
        "kind": "try",
        "label": "Begins protected execution",
        "line": 14,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.84,
        "detail": "try"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_16_create_16__linear",
        "kind": "statement",
        "label": "Create builder",
        "line": 16,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7,
        "detail": "var builder = MauiApp.CreateBuilder() - creates MAUI host builder"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_22_compile_time_conditional_22__linear",
        "kind": "statement",
        "label": "DEBUG-only tooling and logging",
        "line": 22,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7,
        "detail": "#if DEBUG region enabling Blazor dev tools and debug logging"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_28_service_registration_28__linear",
        "kind": "statement",
        "label": "Register platform and infrastructure singletons",
        "line": 28,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7,
        "detail": "AddSingleton<IPlatformService, MauiPlatformService>(), AddSingleton<INativeStorageService, MauiStorageService>()"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_32_service_registration_32__linear",
        "kind": "statement",
        "label": "Register scoped identity services and auth provider",
        "line": 32,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7,
        "detail": "AddScoped<NexusAuthenticationStateProvider>(), AddScoped<AuthenticationStateProvider>(sp => sp.GetRequiredService<NexusAuthenticationStateProvider>()), AddAuthorizationCore()"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_38_service_registration_38__linear",
        "kind": "statement",
        "label": "Register network HttpClient with BaseAddress",
        "line": 38,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7,
        "detail": "AddScoped(sp => new HttpClient { BaseAddress = new Uri(\"http://10.0.2.2:5000\") })"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_41_service_registration_41__linear",
        "kind": "statement",
        "label": "Register UI state and feature services (scoped)",
        "line": 41,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7,
        "detail": "AddScoped for IThemeService, IFocusModeService, IQuizStateService, IReaderNavigationService, IKnowledgeGraphService, IReaderInteractionService, KnowledgeCoordinator, ISyncService, IIdentityService"
      },
      {
        "id": "method:hh1uha:createmauiapp__call_51_AddApplication",
        "kind": "call",
        "label": "AddApplication",
        "line": 51,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.88,
        "detail": "IServiceCollection extension call to register application services"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_53_library_integration_53__linear",
        "kind": "statement",
        "label": "Register MediatR handlers from application assembly",
        "line": 53,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7,
        "detail": "builder.Services.AddMediatR(cfg => cfg.RegisterServicesFromAssemblies(...))"
      },
      {
        "id": "method:hh1uha:createmauiapp__call_54_Assembly",
        "kind": "call",
        "label": "Assembly",
        "line": 54,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.88,
        "detail": "Assembly reference passed into MediatR registration"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_57_createmauiapp_return_57_1__return",
        "kind": "return",
        "label": "Returns result",
        "line": 57,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7,
        "detail": "return builder.Build();"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_57_return_57__return",
        "kind": "return",
        "label": "Build and return app",
        "line": 57,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7,
        "detail": "return builder.Build()"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_59_createmauiapp_catch_59_2__catch",
        "kind": "catch",
        "label": "catch Exception ex",
        "line": 59,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.86,
        "detail": "catch (Exception ex)"
      },
      {
        "id": "method:hh1uha:createmauiapp__action_63_createmauiapp_throw_63_3__throw",
        "kind": "throw",
        "label": "Throws exception",
        "line": 63,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.9,
        "detail": "throw;"
      }
    ],
    "edges": [
      {
        "id": "method:hh1uha:createmauiapp__entry__method:hh1uha:createmauiapp__action_14_try_catch_14__linear",
        "from": "method:hh1uha:createmauiapp__entry",
        "to": "method:hh1uha:createmauiapp__action_14_try_catch_14__linear",
        "kind": "next",
        "line": 14,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7
      },
      {
        "id": "method:hh1uha:createmauiapp__action_14_try_catch_14__linear__method:hh1uha:createmauiapp__action_14_createmauiapp_try_14_0__try",
        "from": "method:hh1uha:createmauiapp__action_14_try_catch_14__linear",
        "to": "method:hh1uha:createmauiapp__action_14_createmauiapp_try_14_0__try",
        "kind": "next",
        "line": 14,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.84
      },
      {
        "id": "method:hh1uha:createmauiapp__action_14_createmauiapp_try_14_0__try__method:hh1uha:createmauiapp__action_16_create_16__linear",
        "from": "method:hh1uha:createmauiapp__action_14_createmauiapp_try_14_0__try",
        "to": "method:hh1uha:createmauiapp__action_16_create_16__linear",
        "kind": "next",
        "line": 16,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7
      },
      {
        "id": "method:hh1uha:createmauiapp__action_16_create_16__linear__method:hh1uha:createmauiapp__action_22_compile_time_conditional_22__linear",
        "from": "method:hh1uha:createmauiapp__action_16_create_16__linear",
        "to": "method:hh1uha:createmauiapp__action_22_compile_time_conditional_22__linear",
        "kind": "next",
        "line": 22,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7
      },
      {
        "id": "method:hh1uha:createmauiapp__action_22_compile_time_conditional_22__linear__method:hh1uha:createmauiapp__action_28_service_registration_28__linear",
        "from": "method:hh1uha:createmauiapp__action_22_compile_time_conditional_22__linear",
        "to": "method:hh1uha:createmauiapp__action_28_service_registration_28__linear",
        "kind": "next",
        "line": 28,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7
      },
      {
        "id": "method:hh1uha:createmauiapp__action_28_service_registration_28__linear__method:hh1uha:createmauiapp__action_32_service_registration_32__linear",
        "from": "method:hh1uha:createmauiapp__action_28_service_registration_28__linear",
        "to": "method:hh1uha:createmauiapp__action_32_service_registration_32__linear",
        "kind": "next",
        "line": 32,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7
      },
      {
        "id": "method:hh1uha:createmauiapp__action_32_service_registration_32__linear__method:hh1uha:createmauiapp__action_38_service_registration_38__linear",
        "from": "method:hh1uha:createmauiapp__action_32_service_registration_32__linear",
        "to": "method:hh1uha:createmauiapp__action_38_service_registration_38__linear",
        "kind": "next",
        "line": 38,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7
      },
      {
        "id": "method:hh1uha:createmauiapp__action_38_service_registration_38__linear__method:hh1uha:createmauiapp__action_41_service_registration_41__linear",
        "from": "method:hh1uha:createmauiapp__action_38_service_registration_38__linear",
        "to": "method:hh1uha:createmauiapp__action_41_service_registration_41__linear",
        "kind": "next",
        "line": 41,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7
      },
      {
        "id": "method:hh1uha:createmauiapp__action_41_service_registration_41__linear__call_method:hh1uha:createmauiapp__call_51_AddApplication",
        "from": "method:hh1uha:createmauiapp__action_41_service_registration_41__linear",
        "to": "method:hh1uha:createmauiapp__call_51_AddApplication",
        "kind": "call",
        "label": "IServiceCollection extension call to register application services",
        "line": 51,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.88
      },
      {
        "id": "method:hh1uha:createmauiapp__call_51_AddApplication__method:hh1uha:createmauiapp__action_53_library_integration_53__linear",
        "from": "method:hh1uha:createmauiapp__call_51_AddApplication",
        "to": "method:hh1uha:createmauiapp__action_53_library_integration_53__linear",
        "kind": "next",
        "line": 53,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7
      },
      {
        "id": "method:hh1uha:createmauiapp__action_53_library_integration_53__linear__call_method:hh1uha:createmauiapp__call_54_Assembly",
        "from": "method:hh1uha:createmauiapp__action_53_library_integration_53__linear",
        "to": "method:hh1uha:createmauiapp__call_54_Assembly",
        "kind": "call",
        "label": "Assembly reference passed into MediatR registration",
        "line": 54,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.88
      },
      {
        "id": "method:hh1uha:createmauiapp__call_54_Assembly__method:hh1uha:createmauiapp__action_57_createmauiapp_return_57_1__return",
        "from": "method:hh1uha:createmauiapp__call_54_Assembly",
        "to": "method:hh1uha:createmauiapp__action_57_createmauiapp_return_57_1__return",
        "kind": "return",
        "line": 57,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7
      },
      {
        "id": "method:hh1uha:createmauiapp__action_57_createmauiapp_return_57_1__return__method:hh1uha:createmauiapp__action_57_return_57__return",
        "from": "method:hh1uha:createmauiapp__action_57_createmauiapp_return_57_1__return",
        "to": "method:hh1uha:createmauiapp__action_57_return_57__return",
        "kind": "return",
        "line": 57,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.7
      },
      {
        "id": "method:hh1uha:createmauiapp__action_57_return_57__return__method:hh1uha:createmauiapp__action_59_createmauiapp_catch_59_2__catch",
        "from": "method:hh1uha:createmauiapp__action_57_return_57__return",
        "to": "method:hh1uha:createmauiapp__action_59_createmauiapp_catch_59_2__catch",
        "kind": "exception",
        "line": 59,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.86
      },
      {
        "id": "method:hh1uha:createmauiapp__action_59_createmauiapp_catch_59_2__catch__method:hh1uha:createmauiapp__action_63_createmauiapp_throw_63_3__throw",
        "from": "method:hh1uha:createmauiapp__action_59_createmauiapp_catch_59_2__catch",
        "to": "method:hh1uha:createmauiapp__action_63_createmauiapp_throw_63_3__throw",
        "kind": "exception",
        "line": 63,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "confidence": 0.9
      }
    ],
    "jumpTargets": [
      {
        "id": "method:hh1uha:createmauiapp__call_51_AddApplication__jump_NexusReader_Application_AddApplication",
        "fromNodeId": "method:hh1uha:createmauiapp__call_51_AddApplication",
        "kind": "call-target",
        "targetPath": "NexusReader.Application",
        "targetHint": "AddApplication",
        "line": 51,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "reason": "Call target AddApplication in NexusReader.Application could not be matched to an extracted method symbol.",
        "status": "unresolved"
      },
      {
        "id": "method:hh1uha:createmauiapp__call_54_Assembly__jump_NexusReader_Application_DependencyInjection_Assembly",
        "fromNodeId": "method:hh1uha:createmauiapp__call_54_Assembly",
        "kind": "call-target",
        "targetPath": "NexusReader.Application.DependencyInjection",
        "targetHint": "Assembly",
        "line": 54,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "reason": "Call target Assembly in NexusReader.Application.DependencyInjection could not be matched to an extracted method symbol.",
        "status": "unresolved"
      }
    ],
    "exceptionTargets": [
      {
        "id": "method:hh1uha:createmauiapp__action_63_createmauiapp_throw_63_3__throw__exception_escape",
        "fromNodeId": "method:hh1uha:createmauiapp__action_63_createmauiapp_throw_63_3__throw",
        "kind": "exception-target",
        "line": 63,
        "sourcePath": "NexusReader.Maui/MauiProgram.cs",
        "reason": "Thrown exception exits the current method without a resolved catch target.",
        "status": "unresolved"
      }
    ],
    "loopBackEdges": [],
    "mergeNodeIds": [],
    "language": "csharp",
    "confidence": 0.98,
    "lineSpan": {
      "start": 12,
      "end": 65
    },
    "unsupportedConstructs": [],
    "evidence": [
      {
        "path": "NexusReader.Maui/MauiProgram.cs",
        "line": 12,
        "summary": "Control-flow fragment extracted for method CreateMauiApp.",
        "kind": "file-summary"
      }
    ]
  }
]