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/path_item.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;
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 {
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 {
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 {
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 {
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';

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 {
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';
void main() {

Loading…
Cancel
Save