protected internal virtual void Add(IToken t) { if (n >= tokens.Length) { tokens = Arrays.CopyOf(tokens, tokens.Length * 2); } if (t is IWritableToken) { ((IWritableToken)t).TokenIndex = GetBufferStartIndex() + n; } tokens[n++] = t; }