checkVersion method

void checkVersion()

Implementation

void checkVersion() {
  final version = readInt();
  if (version != SERIALIZED_VERSION) {
    throw ('Could not deserialize ATN with version $version (expected $SERIALIZED_VERSION).');
  }
}