when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult declaration(
- Declaration? declaration
- required TResult expression(
- Expression? expression
- required TResult oneOf(
- List<
ExpectationType> expectations
- List<
- required TResult token(),
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(Declaration? declaration) declaration,
required TResult Function(Expression? expression) expression,
required TResult Function(List<ExpectationType> expectations) oneOf,
required TResult Function(TokenType token, String? description) token,
}) =>
throw _privateConstructorUsedError;