Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }