anchor.diff:      dirty = true;
     }
   
  -  void setMode(bool release) {
  -    if (release != !dev) {
  -      dev = !release;
  +  void setMode(VersionKind value) {
  +    if (value != level) {
  +      level = value;
         dirty = true;
       }
     }
  
positive.code: const String kYamlVersionPrefix = 'version: ';
  const String kDev = '-dev';
  
  void main(List<String> args) {
    // If we're run from the `tools` dir, set the cwd to the repo root.
    if (path.basename(Directory.current.path) == 'tools')
  
negative.code:   void read();
  
    void interpret(String value) {
      level = value.endsWith(kDev) ? VersionKind.dev : VersionKind.release;
      if (level == VersionKind.dev)
        value = value.substring(0, value.length - kDev.length);
      version.addAll(value.split('.').map<int>(int.parse));
    }
  