import * as vscode from 'vscode' ; export function symbolContains ( outer , inner ) { return outer . location . range . contains ( inner . location . range ) ; } export function childSymbols ( allSymbols , parent , name ) { return allSymbols . filter ( ( s ) => s . name === name && s . containerName === `${ parent . containerName }.${ parent . name }` && symbolContains ( parent , s ) ) ; } export function warningOn ( symbol , text ) { return new vscode . Diagnostic ( symbol . location . range , text , vscode . DiagnosticSeverity . Warning ) ; }