keyComands property

List<Command> keyComands
final

Implementation

static final List<Command> keyComands = [
  Command(
    prefix: '\@',
    command: 'import',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.addImport(value);
      return self;
    },
  ),
  Command(
    prefix: '\@',
    command: 'extends',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.setExtends(value);
      return self;
    },
  ),
  Command(
    prefix: '\@',
    command: 'mixin',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.setMixin(value);
      return self;
    },
  ),
  Command(
    prefix: '\@',
    command: 'ignore',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.setIgnored();
      return defaultCommandCallback(self, testSubject, key: key, value: value);
    },
  ),
   Command(
    prefix: '\@',
    command: 'override',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.enableOverridden();
      return defaultCommandCallback(self, testSubject, key: key, value: value);
    },
  ),
  Command(
    prefix: '@',
    command: '_',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.type = key.substring(2);
      self.name = value;
      return self;
    },
  ),
  Command(
    type: String,
    callback: defaultCommandCallback,
  ),
];