| 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 "";
|
| + }
|
| }
|
|
|