blob: 651a6a9fd954827dbced7b65cfc7c1687c78a018 [file] [log] [blame]
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'field.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
class _$Field extends Field {
@override
final BuiltList<Expression> annotations;
@override
final BuiltList<String> docs;
@override
final Code? assignment;
@override
final bool static;
@override
final String name;
@override
final Reference? type;
@override
final FieldModifier modifier;
factory _$Field([void Function(FieldBuilder)? updates]) =>
(new FieldBuilder()..update(updates)).build() as _$Field;
_$Field._(
{required this.annotations,
required this.docs,
this.assignment,
required this.static,
required this.name,
this.type,
required this.modifier})
: super._() {
BuiltValueNullFieldError.checkNotNull(annotations, 'Field', 'annotations');
BuiltValueNullFieldError.checkNotNull(docs, 'Field', 'docs');
BuiltValueNullFieldError.checkNotNull(static, 'Field', 'static');
BuiltValueNullFieldError.checkNotNull(name, 'Field', 'name');
BuiltValueNullFieldError.checkNotNull(modifier, 'Field', 'modifier');
}
@override
Field rebuild(void Function(FieldBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
_$FieldBuilder toBuilder() => new _$FieldBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is Field &&
annotations == other.annotations &&
docs == other.docs &&
assignment == other.assignment &&
static == other.static &&
name == other.name &&
type == other.type &&
modifier == other.modifier;
}
@override
int get hashCode {
return $jf($jc(
$jc(
$jc(
$jc(
$jc($jc($jc(0, annotations.hashCode), docs.hashCode),
assignment.hashCode),
static.hashCode),
name.hashCode),
type.hashCode),
modifier.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('Field')
..add('annotations', annotations)
..add('docs', docs)
..add('assignment', assignment)
..add('static', static)
..add('name', name)
..add('type', type)
..add('modifier', modifier))
.toString();
}
}
class _$FieldBuilder extends FieldBuilder {
_$Field? _$v;
@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
Code? get assignment {
_$this;
return super.assignment;
}
@override
set assignment(Code? assignment) {
_$this;
super.assignment = assignment;
}
@override
bool get static {
_$this;
return super.static;
}
@override
set static(bool static) {
_$this;
super.static = static;
}
@override
String? get name {
_$this;
return super.name;
}
@override
set name(String? name) {
_$this;
super.name = name;
}
@override
Reference? get type {
_$this;
return super.type;
}
@override
set type(Reference? type) {
_$this;
super.type = type;
}
@override
FieldModifier get modifier {
_$this;
return super.modifier;
}
@override
set modifier(FieldModifier modifier) {
_$this;
super.modifier = modifier;
}
_$FieldBuilder() : super._();
FieldBuilder get _$this {
final $v = _$v;
if ($v != null) {
super.annotations = $v.annotations.toBuilder();
super.docs = $v.docs.toBuilder();
super.assignment = $v.assignment;
super.static = $v.static;
super.name = $v.name;
super.type = $v.type;
super.modifier = $v.modifier;
_$v = null;
}
return this;
}
@override
void replace(Field other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Field;
}
@override
void update(void Function(FieldBuilder)? updates) {
if (updates != null) updates(this);
}
@override
_$Field build() {
_$Field _$result;
try {
_$result = _$v ??
new _$Field._(
annotations: annotations.build(),
docs: docs.build(),
assignment: assignment,
static: BuiltValueNullFieldError.checkNotNull(
static, 'Field', 'static'),
name:
BuiltValueNullFieldError.checkNotNull(name, 'Field', 'name'),
type: type,
modifier: BuiltValueNullFieldError.checkNotNull(
modifier, 'Field', 'modifier'));
} catch (_) {
late String _$failedField;
try {
_$failedField = 'annotations';
annotations.build();
_$failedField = 'docs';
docs.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'Field', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new