static DocumentHighlight ToDocumentHighlight(ISyntaxRegion syntaxRegion) { return(new DocumentHighlight { Range = syntaxRegion.GetNameRange(), Kind = DocumentHighlightKind.Text }); }
static Location ToLocation(ISyntaxRegion reference, DModule module) { return(new Location { Range = reference.GetNameRange(), Uri = new Uri(module.FileName) }); }