{"type":"data","nodes":[null,null,{"type":"data","data":[{"version":1,"api":2},"0.1.77",{"NativePositionMapper":3,"NativeMapper":10,"SpanResult":14,"is_empty":18,"original_to_expanded":18,"expanded_to_original":18,"is_in_generated":18,"generated_by":18,"map_span_to_original":18,"map_span_to_expanded":18},{"name":4,"kind":5,"signature":6,"description":7,"examples":8},"NativePositionMapper","struct","pub struct NativePositionMapper","Bidirectional position mapper for translating between original and expanded source positions.\n\nThis mapper enables IDE features like error reporting, go-to-definition, and hover\nto work correctly with macro-expanded code by translating positions between the\noriginal source (what the user wrote) and the expanded source (what the compiler sees).",[9],"const mapper = new PositionMapper(sourceMapping);\n\n// Convert original position to expanded\nconst expandedPos = mapper.original_to_expanded(42);\n\n// Convert expanded position back to original (if not in generated code)\nconst originalPos = mapper.expanded_to_original(100);\n\n// Check if a position is in macro-generated code\nif (mapper.is_in_generated(pos)) {\n    const macro = mapper.generated_by(pos); // e.g., \"Debug\"\n}",{"name":11,"kind":5,"signature":12,"description":13},"NativeMapper","pub struct NativeMapper","Wrapper around `NativePositionMapper` for NAPI compatibility.\n\nThis provides the same functionality as `NativePositionMapper` but with a\ndifferent JavaScript class name. Used internally by [`NativePlugin::get_mapper`].",{"name":15,"kind":5,"signature":16,"description":17},"SpanResult","pub struct SpanResult","A span (range) in source code, represented as start position and length.\n\nUsed for mapping diagnostics and other positional information.",null],"uses":{}}]}
