Browse Source

dynamite: move TypeResult into it's own lib

pull/370/head
Nikolas Rimikis 2 years ago
parent
commit
ccfc475388
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 8
      packages/dynamite/dynamite/lib/dynamite.dart
  2. 2
      packages/dynamite/dynamite/lib/src/type_result/base.dart
  3. 2
      packages/dynamite/dynamite/lib/src/type_result/enum.dart
  4. 2
      packages/dynamite/dynamite/lib/src/type_result/list.dart
  5. 2
      packages/dynamite/dynamite/lib/src/type_result/map.dart
  6. 2
      packages/dynamite/dynamite/lib/src/type_result/object.dart
  7. 9
      packages/dynamite/dynamite/lib/src/type_result/type_result.dart
  8. 2
      packages/dynamite/dynamite/test/type_result_test.dart

8
packages/dynamite/dynamite/lib/dynamite.dart

@ -9,13 +9,7 @@ import 'package:dynamite/src/models/open_api.dart';
import 'package:dynamite/src/models/parameter.dart' as spec_parameter; import 'package:dynamite/src/models/parameter.dart' as spec_parameter;
import 'package:dynamite/src/models/path_item.dart'; import 'package:dynamite/src/models/path_item.dart';
import 'package:dynamite/src/models/schema.dart'; import 'package:dynamite/src/models/schema.dart';
import 'package:intersperse/intersperse.dart'; import 'package:dynamite/src/type_result/type_result.dart';
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;
part 'src/openapi_builder.dart'; part 'src/openapi_builder.dart';
part 'src/type_result/base.dart';
part 'src/type_result/enum.dart';
part 'src/type_result/list.dart';
part 'src/type_result/map.dart';
part 'src/type_result/object.dart';
part 'src/type_result/type_result.dart';

2
packages/dynamite/dynamite/lib/src/type_result/base.dart

@ -1,4 +1,4 @@
part of '../../dynamite.dart'; part of 'type_result.dart';
class TypeResultBase extends TypeResult { class TypeResultBase extends TypeResult {
TypeResultBase( TypeResultBase(

2
packages/dynamite/dynamite/lib/src/type_result/enum.dart

@ -1,4 +1,4 @@
part of '../../dynamite.dart'; part of 'type_result.dart';
class TypeResultEnum extends TypeResult { class TypeResultEnum extends TypeResult {
TypeResultEnum( TypeResultEnum(

2
packages/dynamite/dynamite/lib/src/type_result/list.dart

@ -1,4 +1,4 @@
part of '../../dynamite.dart'; part of 'type_result.dart';
class TypeResultList extends TypeResult { class TypeResultList extends TypeResult {
TypeResultList( TypeResultList(

2
packages/dynamite/dynamite/lib/src/type_result/map.dart

@ -1,4 +1,4 @@
part of '../../dynamite.dart'; part of 'type_result.dart';
class TypeResultMap extends TypeResult { class TypeResultMap extends TypeResult {
TypeResultMap( TypeResultMap(

2
packages/dynamite/dynamite/lib/src/type_result/object.dart

@ -1,4 +1,4 @@
part of '../../dynamite.dart'; part of 'type_result.dart';
const _contentString = 'ContentString'; const _contentString = 'ContentString';

9
packages/dynamite/dynamite/lib/src/type_result/type_result.dart

@ -1,4 +1,11 @@
part of '../../dynamite.dart'; import 'package:intersperse/intersperse.dart';
import 'package:meta/meta.dart';
part 'base.dart';
part 'enum.dart';
part 'list.dart';
part 'map.dart';
part 'object.dart';
abstract class TypeResult { abstract class TypeResult {
TypeResult( TypeResult(

2
packages/dynamite/dynamite/test/type_result_test.dart

@ -1,4 +1,4 @@
import 'package:dynamite/dynamite.dart'; import 'package:dynamite/src/type_result/type_result.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
void main() { void main() {

Loading…
Cancel
Save