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

Unified Diff: mojo/dart/packages/mojom/lib/src/utils.dart

Issue 1658763002: mojom.dart: Allow package name != directory name (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 | « mojo/dart/packages/mojom/lib/src/mojom_finder.dart ('k') | mojo/dart/packages/mojom/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/packages/mojom/lib/src/utils.dart
diff --git a/mojo/dart/packages/mojom/lib/src/utils.dart b/mojo/dart/packages/mojom/lib/src/utils.dart
index 75f34ff89290dbde1185956be77df2fff9fb0b0e..417b9c45c72758fcba0cc3e82e56b2c2eaa262cd 100644
--- a/mojo/dart/packages/mojom/lib/src/utils.dart
+++ b/mojo/dart/packages/mojom/lib/src/utils.dart
@@ -15,6 +15,7 @@ import 'package:path/path.dart' as path;
bool isMojomDart(String path) => path.endsWith('.mojom.dart');
bool isMojom(String path) => path.endsWith('.mojom');
bool isDotMojoms(String path) => path.endsWith(".mojoms");
+bool isPubspecYaml(String path) => path.endsWith("pubspec.yaml");
String makeAbsolute(String p) =>
path.isAbsolute(p) ? path.normalize(p) : path.normalize(path.absolute(p));
« no previous file with comments | « mojo/dart/packages/mojom/lib/src/mojom_finder.dart ('k') | mojo/dart/packages/mojom/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698