- Add VariableSpec class with magnitude field validation - Add Formula class supporting multiple input/output variables - Support d4rt_code as string or object with code field - Add comprehensive tests for parsing and serialization - Fix broken test import in pruebas_d4rt_test.dart Follows README.md format requirements exactly
37 lines
1.4 KiB
Dart
37 lines
1.4 KiB
Dart
// import 'package:analyzer/dart/analysis/results.dart';
|
|
// import 'package:analyzer/file_system/physical_file_system.dart';
|
|
// import 'package:analyzer/src/dart/analysis/analysis_context_collection.dart';
|
|
// import 'package:analyzer/src/dart/analysis/byte_store.dart';
|
|
//
|
|
// void main() async {
|
|
// {
|
|
// var byteStore = MemoryByteStore();
|
|
//
|
|
// var collection = AnalysisContextCollectionImpl(
|
|
// resourceProvider: PhysicalResourceProvider.INSTANCE,
|
|
// includedPaths: ['/Users/scheglov/dart/2024-04-30/disposable_macro'],
|
|
// byteStore: byteStore,
|
|
// );
|
|
//
|
|
// var timer = Stopwatch()..start();
|
|
// for (var analysisContext in collection.contexts) {
|
|
// print(analysisContext.contextRoot.root.path);
|
|
// var analysisSession = analysisContext.currentSession;
|
|
// for (var path in analysisContext.contextRoot.analyzedFiles()) {
|
|
// if (path.endsWith('.dart')) {
|
|
// var unitResult = await analysisSession.getResolvedUnit(path);
|
|
// unitResult as ResolvedUnitResult;
|
|
// print(' ${unitResult.path}');
|
|
// var ep = '\n ';
|
|
// print(' errors:$ep${unitResult.diagnostics.join(ep)}');
|
|
// // print('---');
|
|
// // print(unitResult.content);
|
|
// // print('---');
|
|
// }
|
|
// }
|
|
// }
|
|
// print('[time: ${timer.elapsedMilliseconds} ms]');
|
|
//
|
|
// await collection.dispose();
|
|
// }
|
|
// }
|