Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: lib/src/util/dart.dart

Issue 1008483003: Add a function to parse metadata into a usable object. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Code review changes Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/runner/parse_metadata.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/dart.dart
diff --git a/lib/src/util/dart.dart b/lib/src/util/dart.dart
index 76f10b51fa15fb9240e172fbfdedb7fd3a907563..5cf02e538f3fc43bac40be3f9707dd6b77c2aab3 100644
--- a/lib/src/util/dart.dart
+++ b/lib/src/util/dart.dart
@@ -71,13 +71,3 @@ void _isolateBuffer(message) {
});
});
}
-
-/// Parse all the annotations at the beginning of a Dart file.
-///
-/// This will parse annotations until the first non-annotation production is
-/// reached.
-List<Annotation> parseAnnotations(String path) {
- var contents = new File(path).readAsStringSync();
- var directives = parseDirectives(contents, name: path).directives;
- return directives.isEmpty ? [] : directives.first.metadata;
-}
« no previous file with comments | « lib/src/runner/parse_metadata.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698