Skip to content

Commit

Permalink
Updated packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
eggnstone committed Jul 18, 2024
1 parent bba786e commit 16dd38b
Show file tree
Hide file tree
Showing 10 changed files with 126 additions and 43 deletions.
6 changes: 6 additions & 0 deletions .idea/runConfigurations/Tests_in_BlockCommentsTests_dart.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/runConfigurations/Tests_in_dart_format.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion TODO.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TODO
====
- Indent assignments when multiline
- Error "Missed some text" does not fully carry over to the plugin when the text contains <text>
- Error "Missed some text" does not fully carry over to the plugin when the text contains "<" or ">"
-- e.g. <DartFormatException>.
-- e.g. offset < lastConsumedPosition
- favicon.ico does not work when called from plugin.
Expand Down
40 changes: 26 additions & 14 deletions lib/src/Data/Config.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ mixin _$Config {
/// Whether to remove trailing commas.
bool get removeTrailingCommas => throw _privateConstructorUsedError;

/// Serializes this Config to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of Config
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$ConfigCopyWith<Config> get copyWith => throw _privateConstructorUsedError;
}

Expand Down Expand Up @@ -79,6 +83,8 @@ class _$ConfigCopyWithImpl<$Res, $Val extends Config>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of Config
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -160,6 +166,8 @@ class __$$ConfigImplCopyWithImpl<$Res>
_$ConfigImpl _value, $Res Function(_$ConfigImpl) _then)
: super(_value, _then);

/// Create a copy of Config
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -308,7 +316,7 @@ class _$ConfigImpl extends _Config {
other.removeTrailingCommas == removeTrailingCommas));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
Expand All @@ -322,7 +330,9 @@ class _$ConfigImpl extends _Config {
maxEmptyLines,
removeTrailingCommas);

@JsonKey(ignore: true)
/// Create a copy of Config
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$ConfigImplCopyWith<_$ConfigImpl> get copyWith =>
Expand Down Expand Up @@ -351,44 +361,46 @@ abstract class _Config extends Config {

factory _Config.fromJson(Map<String, dynamic> json) = _$ConfigImpl.fromJson;

@override

/// Whether to add a new line after a closing brace.
bool get addNewLineAfterClosingBrace;
@override
bool get addNewLineAfterClosingBrace;

/// Whether to add a new line after an opening brace.
bool get addNewLineAfterOpeningBrace;
@override
bool get addNewLineAfterOpeningBrace;

/// Whether to add a new line after a semicolon.
bool get addNewLineAfterSemicolon;
@override
bool get addNewLineAfterSemicolon;

/// Whether to add a new line at the end of the text.
bool get addNewLineAtEndOfText;
@override
bool get addNewLineAtEndOfText;

/// Whether to add a new line before a closing brace.
bool get addNewLineBeforeClosingBrace;
@override
bool get addNewLineBeforeClosingBrace;

/// Whether to add a new line before an opening brace.
bool get addNewLineBeforeOpeningBrace;
@override
bool get addNewLineBeforeOpeningBrace;

/// The number of spaces to use for indentation. -1 = do not change indentation.
int get indentationSpacesPerLevel;
@override
int get indentationSpacesPerLevel;

/// The maximum number of empty lines to allow. -1 = do not change empty lines.
int get maxEmptyLines;
@override
int get maxEmptyLines;

/// Whether to remove trailing commas.
@override
bool get removeTrailingCommas;

/// Create a copy of Config
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$ConfigImplCopyWith<_$ConfigImpl> get copyWith =>
throw _privateConstructorUsedError;
}
17 changes: 14 additions & 3 deletions lib/src/Data/Indentation.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ mixin _$Indentation {
String get name => throw _privateConstructorUsedError;
IndentationType get type => throw _privateConstructorUsedError;

@JsonKey(ignore: true)
/// Create a copy of Indentation
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$IndentationCopyWith<Indentation> get copyWith =>
throw _privateConstructorUsedError;
}
Expand All @@ -43,6 +45,8 @@ class _$IndentationCopyWithImpl<$Res, $Val extends Indentation>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of Indentation
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -81,6 +85,8 @@ class __$$IndentationImplCopyWithImpl<$Res>
_$IndentationImpl _value, $Res Function(_$IndentationImpl) _then)
: super(_value, _then);

/// Create a copy of Indentation
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -127,7 +133,9 @@ class _$IndentationImpl implements _Indentation {
@override
int get hashCode => Object.hash(runtimeType, name, type);

@JsonKey(ignore: true)
/// Create a copy of Indentation
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$IndentationImplCopyWith<_$IndentationImpl> get copyWith =>
Expand All @@ -143,8 +151,11 @@ abstract class _Indentation implements Indentation {
String get name;
@override
IndentationType get type;

/// Create a copy of Indentation
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$IndentationImplCopyWith<_$IndentationImpl> get copyWith =>
throw _privateConstructorUsedError;
}
21 changes: 17 additions & 4 deletions lib/src/Data/JsonResponse.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ mixin _$JsonResponse {
@JsonKey(includeIfNull: false, name: 'Message')
String? get message => throw _privateConstructorUsedError;

/// Serializes this JsonResponse to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of JsonResponse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$JsonResponseCopyWith<JsonResponse> get copyWith =>
throw _privateConstructorUsedError;
}
Expand Down Expand Up @@ -63,6 +67,8 @@ class _$JsonResponseCopyWithImpl<$Res, $Val extends JsonResponse>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of JsonResponse
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -123,6 +129,8 @@ class __$$JsonResponseImplCopyWithImpl<$Res>
_$JsonResponseImpl _value, $Res Function(_$JsonResponseImpl) _then)
: super(_value, _then);

/// Create a copy of JsonResponse
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -207,12 +215,14 @@ class _$JsonResponseImpl implements _JsonResponse {
(identical(other.message, message) || other.message == message));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType, statusCode, status, currentVersion, latestVersion, message);

@JsonKey(ignore: true)
/// Create a copy of JsonResponse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$JsonResponseImplCopyWith<_$JsonResponseImpl> get copyWith =>
Expand Down Expand Up @@ -255,8 +265,11 @@ abstract class _JsonResponse implements JsonResponse {
@override
@JsonKey(includeIfNull: false, name: 'Message')
String? get message;

/// Create a copy of JsonResponse
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$JsonResponseImplCopyWith<_$JsonResponseImpl> get copyWith =>
throw _privateConstructorUsedError;
}
17 changes: 14 additions & 3 deletions lib/src/Data/Tuple.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ mixin _$Tuple<T1, T2> {
T1 get item1 => throw _privateConstructorUsedError;
T2 get item2 => throw _privateConstructorUsedError;

@JsonKey(ignore: true)
/// Create a copy of Tuple
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$TupleCopyWith<T1, T2, Tuple<T1, T2>> get copyWith =>
throw _privateConstructorUsedError;
}
Expand All @@ -43,6 +45,8 @@ class _$TupleCopyWithImpl<T1, T2, $Res, $Val extends Tuple<T1, T2>>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of Tuple
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -81,6 +85,8 @@ class __$$TupleImplCopyWithImpl<T1, T2, $Res>
_$TupleImpl<T1, T2> _value, $Res Function(_$TupleImpl<T1, T2>) _then)
: super(_value, _then);

/// Create a copy of Tuple
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -130,7 +136,9 @@ class _$TupleImpl<T1, T2> implements _Tuple<T1, T2> {
const DeepCollectionEquality().hash(item1),
const DeepCollectionEquality().hash(item2));

@JsonKey(ignore: true)
/// Create a copy of Tuple
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$TupleImplCopyWith<T1, T2, _$TupleImpl<T1, T2>> get copyWith =>
Expand All @@ -144,8 +152,11 @@ abstract class _Tuple<T1, T2> implements Tuple<T1, T2> {
T1 get item1;
@override
T2 get item2;

/// Create a copy of Tuple
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$TupleImplCopyWith<T1, T2, _$TupleImpl<T1, T2>> get copyWith =>
throw _privateConstructorUsedError;
}
17 changes: 14 additions & 3 deletions lib/src/Data/Version.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ mixin _$Version {
int get minor => throw _privateConstructorUsedError;
int get patch => throw _privateConstructorUsedError;

@JsonKey(ignore: true)
/// Create a copy of Version
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$VersionCopyWith<Version> get copyWith => throw _privateConstructorUsedError;
}

Expand All @@ -42,6 +44,8 @@ class _$VersionCopyWithImpl<$Res, $Val extends Version>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of Version
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -84,6 +88,8 @@ class __$$VersionImplCopyWithImpl<$Res>
_$VersionImpl _value, $Res Function(_$VersionImpl) _then)
: super(_value, _then);

/// Create a copy of Version
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -133,7 +139,9 @@ class _$VersionImpl extends _Version {
@override
int get hashCode => Object.hash(runtimeType, major, minor, patch);

@JsonKey(ignore: true)
/// Create a copy of Version
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$VersionImplCopyWith<_$VersionImpl> get copyWith =>
Expand All @@ -151,8 +159,11 @@ abstract class _Version extends Version {
int get minor;
@override
int get patch;

/// Create a copy of Version
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$VersionImplCopyWith<_$VersionImpl> get copyWith =>
throw _privateConstructorUsedError;
}
Loading

0 comments on commit 16dd38b

Please sign in to comment.