示例#1
0
        public static bool TryPop <T>(
            this ArrayBuilder <T> builder,
            [MaybeNullWhen(false)] out T result
            )
        {
            if (builder.Count > 0)
            {
                result = builder.Pop();
                return(true);
            }

            result = default;
            return(false);
        }
示例#2
0
 public SyntaxNodeOrToken PopToken()
 {
     discriminatorStack.Pop();
     return(tokenStack.Pop());
 }