Пример #1
0
 static DocumentHighlight ToDocumentHighlight(ISyntaxRegion syntaxRegion)
 {
     return(new DocumentHighlight
     {
         Range = syntaxRegion.GetNameRange(),
         Kind = DocumentHighlightKind.Text
     });
 }
Пример #2
0
 static Location ToLocation(ISyntaxRegion reference, DModule module)
 {
     return(new Location
     {
         Range = reference.GetNameRange(),
         Uri = new Uri(module.FileName)
     });
 }