set method

void set(
  1. Token name,
  2. Object? value
)

Implementation

void set(Token name, Object? value) {
  fields[name.lexeme] = value;
}