2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-06-27 06:43:13 +00:00
This commit is contained in:
2021-07-21 12:18:01 +03:00
parent 737397da11
commit 6be04c39ed
27 changed files with 659 additions and 513 deletions

View File

@ -2,9 +2,9 @@ import 'package:source_gen/source_gen.dart';
import 'package:build/build.dart';
import 'package:yaml/yaml.dart';
Builder iipService(BuilderOptions options) {
return LibraryBuilder(TemplateGenerator(), generatedExtension: '.info.dart');
}
//Builder iipService(BuilderOptions options) {
//return LibraryBuilder(TemplateBuilder(), generatedExtension: '.info.dart');
//}
class TemplateBuilder implements Builder {
//BuilderOptions options;
@ -36,12 +36,12 @@ class TemplateBuilder implements Builder {
}
}
class TemplateGenerator extends Generator {
@override
String generate(LibraryReader library, BuildStep buildStep) {
return '''
// Source library: ${library.element.source.uri}
const Testinggggg = 3;
''';
}
}
// class TemplateBuilder extends Generator {
// @override
// String generate(LibraryReader library, BuildStep buildStep) {
// return '''
// // Source library: ${library.element.source.uri}
// const Testinggggg = 3;
// ''';
// }
// }