blob: 28c7356c4e96996ebdbea59f687a7950a07a7032 [file] [log] [blame]
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'mixin.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
class _$Mixin extends Mixin {
@override
final bool base;
@override
final BuiltList<Expression> annotations;
@override
final BuiltList<String> docs;
@override
final Reference? on;
@override
final BuiltList<Reference> implements;
@override
final BuiltList<Reference> types;
@override
final BuiltList<Method> methods;
@override
final BuiltList<Field> fields;
@override
final String name;
factory _$Mixin([void Function(MixinBuilder)? updates]) =>
(new MixinBuilder()..update(updates)).build() as _$Mixin;
_$Mixin._(
{required this.base,
required this.annotations,
required this.docs,
this.on,
required this.implements,
required this.types,
required this.methods,
required this.fields,
required this.name})
: super._() {
BuiltValueNullFieldError.checkNotNull(base, r'Mixin', 'base');
BuiltValueNullFieldError.checkNotNull(annotations, r'Mixin', 'annotations');
BuiltValueNullFieldError.checkNotNull(docs, r'Mixin', 'docs');
BuiltValueNullFieldError.checkNotNull(implements, r'Mixin', 'implements');
BuiltValueNullFieldError.checkNotNull(types, r'Mixin', 'types');
BuiltValueNullFieldError.checkNotNull(methods, r'Mixin', 'methods');
BuiltValueNullFieldError.checkNotNull(fields, r'Mixin', 'fields');
BuiltValueNullFieldError.checkNotNull(name, r'Mixin', 'name');
}
@override
Mixin rebuild(void Function(MixinBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
_$MixinBuilder toBuilder() => new _$MixinBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is Mixin &&
base == other.base &&
annotations == other.annotations &&
docs == other.docs &&
on == other.on &&
implements == other.implements &&
types == other.types &&
methods == other.methods &&
fields == other.fields &&
name == other.name;
}
@override
int get hashCode {
var _$hash = 0;
_$hash = $jc(_$hash, base.hashCode);
_$hash = $jc(_$hash, annotations.hashCode);
_$hash = $jc(_$hash, docs.hashCode);
_$hash = $jc(_$hash, on.hashCode);
_$hash = $jc(_$hash, implements.hashCode);
_$hash = $jc(_$hash, types.hashCode);
_$hash = $jc(_$hash, methods.hashCode);
_$hash = $jc(_$hash, fields.hashCode);
_$hash = $jc(_$hash, name.hashCode);
_$hash = $jf(_$hash);
return _$hash;
}
@override
String toString() {
return (newBuiltValueToStringHelper(r'Mixin')
..add('base', base)
..add('annotations', annotations)
..add('docs', docs)
..add('on', on)
..add('implements', implements)
..add('types', types)
..add('methods', methods)
..add('fields', fields)
..add('name', name))
.toString();
}
}
class _$MixinBuilder extends MixinBuilder {
_$Mixin? _$v;
@override
bool get base {
_$this;
return super.base;
}
@override
set base(bool base) {
_$this;
super.base = base;
}
@override
ListBuilder<Expression> get annotations {
_$this;
return super.annotations;
}
@override
set annotations(ListBuilder<Expression> annotations) {
_$this;
super.annotations = annotations;
}
@override
ListBuilder<String> get docs {
_$this;
return super.docs;
}
@override
set docs(ListBuilder<String> docs) {
_$this;
super.docs = docs;
}
@override
Reference? get on {
_$this;
return super.on;
}
@override
set on(Reference? on) {
_$this;
super.on = on;
}
@override
ListBuilder<Reference> get implements {
_$this;
return super.implements;
}
@override
set implements(ListBuilder<Reference> implements) {
_$this;
super.implements = implements;
}
@override
ListBuilder<Reference> get types {
_$this;
return super.types;
}
@override
set types(ListBuilder<Reference> types) {
_$this;
super.types = types;
}
@override
ListBuilder<Method> get methods {
_$this;
return super.methods;
}
@override
set methods(ListBuilder<Method> methods) {
_$this;
super.methods = methods;
}
@override
ListBuilder<Field> get fields {
_$this;
return super.fields;
}
@override
set fields(ListBuilder<Field> fields) {
_$this;
super.fields = fields;
}
@override
String? get name {
_$this;
return super.name;
}
@override
set name(String? name) {
_$this;
super.name = name;
}
_$MixinBuilder() : super._();
MixinBuilder get _$this {
final $v = _$v;
if ($v != null) {
super.base = $v.base;
super.annotations = $v.annotations.toBuilder();
super.docs = $v.docs.toBuilder();
super.on = $v.on;
super.implements = $v.implements.toBuilder();
super.types = $v.types.toBuilder();
super.methods = $v.methods.toBuilder();
super.fields = $v.fields.toBuilder();
super.name = $v.name;
_$v = null;
}
return this;
}
@override
void replace(Mixin other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Mixin;
}
@override
void update(void Function(MixinBuilder)? updates) {
if (updates != null) updates(this);
}
@override
Mixin build() => _build();
_$Mixin _build() {
_$Mixin _$result;
try {
_$result = _$v ??
new _$Mixin._(
base:
BuiltValueNullFieldError.checkNotNull(base, r'Mixin', 'base'),
annotations: annotations.build(),
docs: docs.build(),
on: on,
implements: implements.build(),
types: types.build(),
methods: methods.build(),
fields: fields.build(),
name: BuiltValueNullFieldError.checkNotNull(
name, r'Mixin', 'name'));
} catch (_) {
late String _$failedField;
try {
_$failedField = 'annotations';
annotations.build();
_$failedField = 'docs';
docs.build();
_$failedField = 'implements';
implements.build();
_$failedField = 'types';
types.build();
_$failedField = 'methods';
methods.build();
_$failedField = 'fields';
fields.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
r'Mixin', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}
// ignore_for_file: deprecated_member_use_from_same_package,type=lint