private void AssertHasType(TokenKind kind) { if (tokenStream.Current.Kind != kind) throw new UnexpectedTokenException(tokenStream.Current, kind) { }; }