Skip to content

Commit

Permalink
Fix errors that where thrown after the merge
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikvdkaaden committed Mar 8, 2024
1 parent 0d2e636 commit 84adcdf
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 32 deletions.
2 changes: 1 addition & 1 deletion floor_generator/lib/misc/extension/string_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ extension NullableStringExtension on String? {
if (this == null) {
return 'null';
} else {
return "'${escape(this!)}'";
return "'${this!.toEscaped()}'";
}
}
}
Expand Down
83 changes: 52 additions & 31 deletions floor_generator/test/fakes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,6 @@ class FakeClassElement implements ClassElement {
@override
Source get source => throw UnimplementedError();

@override
List<InterfaceType> get superclassConstraints => throw UnimplementedError();

@override
InterfaceType? get supertype => throw UnimplementedError();

Expand Down Expand Up @@ -298,28 +295,14 @@ class FakeClassElement implements ClassElement {
@override
bool get isDartCoreEnum => throw UnimplementedError();

@override
// TODO: implement augmentation
ClassAugmentationElement? get augmentation => throw UnimplementedError();

@override
// TODO: implement augmented
AugmentedClassElement get augmented => throw UnimplementedError();

@override
// TODO: implement enclosingElement3
CompilationUnitElement get enclosingElement3 => throw UnimplementedError();

@override
// TODO: implement hasMustBeOverridden
bool get hasMustBeOverridden => throw UnimplementedError();

@override
bool isAccessibleIn2(LibraryElement library) {
// TODO: implement isAccessibleIn2
throw UnimplementedError();
}

@override
// TODO: implement children
List<Element> get children => throw UnimplementedError();
Expand Down Expand Up @@ -377,6 +360,34 @@ class FakeClassElement implements ClassElement {
@override
// TODO: implement sinceSdkVersion
Version? get sinceSdkVersion => throw UnimplementedError();

@override
// TODO: implement augmentationTarget
ClassElement? get augmentationTarget => throw UnimplementedError();

@override
// TODO: implement hasImmutable
bool get hasImmutable => throw UnimplementedError();

@override
// TODO: implement hasRedeclare
bool get hasRedeclare => throw UnimplementedError();

@override
// TODO: implement hasVisibleOutsideTemplate
bool get hasVisibleOutsideTemplate => throw UnimplementedError();

@override
// TODO: implement isAugmentation
bool get isAugmentation => throw UnimplementedError();

@override
// TODO: implement isInline
bool get isInline => throw UnimplementedError();

@override
// TODO: implement augmentation
ClassElement? get augmentation => throw UnimplementedError();
}

class FakeFieldElement implements FieldElement {
Expand Down Expand Up @@ -581,24 +592,10 @@ class FakeFieldElement implements FieldElement {
@override
Element get nonSynthetic => throw UnimplementedError();

@override
// TODO: implement augmentation
FieldAugmentationElement? get augmentation => throw UnimplementedError();

@override
// TODO: implement enclosingElement3
Element get enclosingElement3 => throw UnimplementedError();

@override
// TODO: implement hasMustBeOverridden
bool get hasMustBeOverridden => throw UnimplementedError();

@override
bool isAccessibleIn2(LibraryElement library) {
// TODO: implement isAccessibleIn2
throw UnimplementedError();
}

@override
// TODO: implement children
List<Element> get children => throw UnimplementedError();
Expand All @@ -614,6 +611,30 @@ class FakeFieldElement implements FieldElement {
@override
// TODO: implement sinceSdkVersion
Version? get sinceSdkVersion => throw UnimplementedError();

@override
// TODO: implement augmentationTarget
FieldElement? get augmentationTarget => throw UnimplementedError();

@override
// TODO: implement hasImmutable
bool get hasImmutable => throw UnimplementedError();

@override
// TODO: implement hasRedeclare
bool get hasRedeclare => throw UnimplementedError();

@override
// TODO: implement hasVisibleOutsideTemplate
bool get hasVisibleOutsideTemplate => throw UnimplementedError();

@override
// TODO: implement isAugmentation
bool get isAugmentation => throw UnimplementedError();

@override
// TODO: implement augmentation
FieldElement? get augmentation => throw UnimplementedError();
}

class FakeDartObject implements DartObject {
Expand Down

0 comments on commit 84adcdf

Please sign in to comment.