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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1688113004: Remove unused or unneeded stuff from java_core.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.generated.engine; 5 library analyzer.src.generated.engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 } 874 }
875 875
876 /** 876 /**
877 * Return `true` if the given [fileName] is assumed to contain Dart source 877 * Return `true` if the given [fileName] is assumed to contain Dart source
878 * code. 878 * code.
879 */ 879 */
880 static bool isDartFileName(String fileName) { 880 static bool isDartFileName(String fileName) {
881 if (fileName == null) { 881 if (fileName == null) {
882 return false; 882 return false;
883 } 883 }
884 return javaStringEqualsIgnoreCase( 884 String extension = FileNameUtilities.getExtension(fileName).toLowerCase();
885 FileNameUtilities.getExtension(fileName), SUFFIX_DART); 885 return extension == SUFFIX_DART;
886 } 886 }
887 887
888 /** 888 /**
889 * Return `true` if the given [fileName] is assumed to contain HTML. 889 * Return `true` if the given [fileName] is assumed to contain HTML.
890 */ 890 */
891 static bool isHtmlFileName(String fileName) { 891 static bool isHtmlFileName(String fileName) {
892 if (fileName == null) { 892 if (fileName == null) {
893 return false; 893 return false;
894 } 894 }
895 String extension = FileNameUtilities.getExtension(fileName); 895 String extension = FileNameUtilities.getExtension(fileName).toLowerCase();
896 return javaStringEqualsIgnoreCase(extension, SUFFIX_HTML) || 896 return extension == SUFFIX_HTML || extension == SUFFIX_HTM;
897 javaStringEqualsIgnoreCase(extension, SUFFIX_HTM);
898 } 897 }
899 } 898 }
900 899
901 /** 900 /**
902 * The analysis errors and line information for the errors. 901 * The analysis errors and line information for the errors.
903 */ 902 */
904 abstract class AnalysisErrorInfo { 903 abstract class AnalysisErrorInfo {
905 /** 904 /**
906 * Return the errors that as a result of the analysis, or `null` if there were 905 * Return the errors that as a result of the analysis, or `null` if there were
907 * no errors. 906 * no errors.
(...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 * The data that was created from the source. 2475 * The data that was created from the source.
2477 */ 2476 */
2478 final E data; 2477 final E data;
2479 2478
2480 /** 2479 /**
2481 * Initialize a newly created holder to associate the given [data] with the 2480 * Initialize a newly created holder to associate the given [data] with the
2482 * given [modificationTime]. 2481 * given [modificationTime].
2483 */ 2482 */
2484 TimestampedData(this.modificationTime, this.data); 2483 TimestampedData(this.modificationTime, this.data);
2485 } 2484 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698