public IToken GetUsingStopIndex(CSharpParser.Compilation_unitContext context)
 {
     return(context?.using_directive()?.LastOrDefault()?.Stop
            ?? context?.extern_alias_directive()?.LastOrDefault()?.Stop
            ?? context?.BYTE_ORDER_MARK()?.Symbol
            ?? context.Start);
 }
 public IToken GetNamespaceStopIndex(CSharpParser.Compilation_unitContext context)
 {
     return(context?.namespace_member_declaration()?.LastOrDefault()?.Stop
            ?? context?.global_attributes()?.Stop
            ?? context?.using_directive()?.LastOrDefault()?.Stop
            ?? context?.extern_alias_directive()?.LastOrDefault()?.Stop
            ?? context?.BYTE_ORDER_MARK()?.Symbol
            ?? context.Start);
 }