@@ -1337,14 +1337,17 @@ pub struct SourceInfo {
13371337 /// The location in its containing file of the source code that this node represents.
13381338 pub span : lsp_positions:: Span ,
13391339 /// The kind of syntax entity this node represents (e.g. `function`, `class`, `method`, etc.).
1340- pub syntax_type : Option < Handle < InternedString > > ,
1340+ pub syntax_type : ControlledOption < Handle < InternedString > > ,
13411341 /// The full content of the line containing this node in its source file.
13421342 pub containing_line : ControlledOption < Handle < InternedString > > ,
13431343 /// The location in its containing file of the source code that this node's definiens represents.
13441344 /// This is used for things like the bodies of functions, rather than the RHSes of equations.
13451345 /// If you need one of these to make the type checker happy, but you don't have one, just use
13461346 /// lsp_positions::Span::default(), as this will correspond to the all-0s spans which mean "no definiens".
13471347 pub definiens_span : lsp_positions:: Span ,
1348+ /// The fully qualified name is a representation of the symbol that captures its name and its
1349+ /// embedded context (e.g. `foo.bar` for the symbol `bar` defined in the module `foo`).
1350+ pub fully_qualified_name : ControlledOption < Handle < InternedString > > ,
13481351}
13491352
13501353impl StackGraph {
@@ -1565,13 +1568,16 @@ impl StackGraph {
15651568 span : source_info. span . clone ( ) ,
15661569 syntax_type : source_info
15671570 . syntax_type
1568- . map ( |st| self . add_string ( & other[ st] ) ) ,
1571+ . into_option ( )
1572+ . map ( |st| self . add_string ( & other[ st] ) )
1573+ . into ( ) ,
15691574 containing_line : source_info
15701575 . containing_line
15711576 . into_option ( )
15721577 . map ( |cl| self . add_string ( & other[ cl] ) )
15731578 . into ( ) ,
15741579 definiens_span : source_info. definiens_span . clone ( ) ,
1580+ fully_qualified_name : ControlledOption :: default ( ) ,
15751581 } ;
15761582 }
15771583 if let Some ( debug_info) = other. node_debug_info ( other_node) {
0 commit comments