getVarId method

int getVarId(
  1. String name
)

Gets or creates a unique ID for a variable.

Implementation

int getVarId(String name) {
  return _varIds.putIfAbsent(name, () => _varCounter++);
}