import { Range , Position } from 'vscode-languageserver/node' ; import { TextDocument } from 'vscode-languageserver-textdocument' ; param document return export function isSystemVerilogDocument ( document ) { return document ?. languageId === 'systemverilog' ; } param document return export function isVerilogDocument ( document ) { return document ?. languageId === 'verilog' ; } param line return export function getLineRange ( line , offendingSymbol , startPosition ) { let endPosition ; if ( startPosition == null ) { startPosition = 0 ; } if ( offendingSymbol == null || offendingSymbol === undefined ) { endPosition = Number . MAX_VALUE ; } else { endPosition = startPosition + offendingSymbol . length ; } return Range . create ( Position . create ( line , startPosition ) , Position . create ( line , endPosition ) ) ; }