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

Unified Diff: pkg/analyzer-experimental/lib/src/generated/java_engine.dart

Issue 12502002: Update analyzer-experimental. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
Index: pkg/analyzer-experimental/lib/src/generated/java_engine.dart
diff --git a/pkg/analyzer-experimental/lib/src/generated/java_engine.dart b/pkg/analyzer-experimental/lib/src/generated/java_engine.dart
index b1c131a42afaae2cb0dfb9fec80d207397f9857c..770acf512fd5b0293361ae7ab9508937e8ff24c7 100644
--- a/pkg/analyzer-experimental/lib/src/generated/java_engine.dart
+++ b/pkg/analyzer-experimental/lib/src/generated/java_engine.dart
@@ -1,56 +1,18 @@
library java.engine;
-import "dart:io";
-import "java_core.dart";
-import "source.dart";
-import "error.dart";
-import "ast.dart";
-import "element.dart";
-
-//class AnalysisException implements Exception {
-// String toString() => "AnalysisException";
-//}
-
-//class AnalysisEngine {
-// static getInstance() {
-// throw new UnsupportedOperationException();
-// }
-//}
-
-//class AnalysisContext {
-// Element getElement(ElementLocation location) {
-// throw new UnsupportedOperationException();
-// }
-//}
-
-//class AnalysisContextImpl extends AnalysisContext {
-// getSourceFactory() {
-// throw new UnsupportedOperationException();
-// }
-// LibraryElement getLibraryElementOrNull(Source source) {
-// return null;
-// }
-// LibraryElement getLibraryElement(Source source) {
-// throw new UnsupportedOperationException();
-// }
-// void recordLibraryElements(Map<Source, LibraryElement> elementMap) {
-// throw new UnsupportedOperationException();
-// }
-// getPublicNamespace(LibraryElement library) {
-// throw new UnsupportedOperationException();
-// }
-// CompilationUnit parse(Source source, AnalysisErrorListener errorListener) {
-// throw new UnsupportedOperationException();
-// }
-//}
-
class StringUtilities {
static List<String> EMPTY_ARRAY = new List(0);
}
-File createFile(String path) => new File(path);
-
-class OSUtilities {
- static bool isWindows() => Platform.operatingSystem == 'windows';
- static bool isMac() => Platform.operatingSystem == 'macos';
+class FileNameUtilities {
+ static String getExtension(String fileName) {
+ if (fileName == null) {
+ return "";
+ }
+ int index = fileName.lastIndexOf('.');
+ if (index >= 0) {
+ return fileName.substring(index + 1);
+ }
+ return "";
+ }
}

Powered by Google App Engine
This is Rietveld 408576698