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

Unified Diff: pkg/analyzer/lib/src/lint/util.dart

Issue 2989363002: Deprecate unintended APIs. (Closed)
Patch Set: add CamelCaseString Created 3 years, 4 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 | « pkg/analyzer/lib/src/lint/linter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/lint/util.dart
diff --git a/pkg/analyzer/lib/src/lint/util.dart b/pkg/analyzer/lib/src/lint/util.dart
index e1c63af6a62eb1ec5fdcb3363a293cc91afe8e01..f82bb1e883da317e32d7a7bb3080f44e7d597bec 100644
--- a/pkg/analyzer/lib/src/lint/util.dart
+++ b/pkg/analyzer/lib/src/lint/util.dart
@@ -50,31 +50,39 @@ String createLibraryNamePrefix(
}
/// Returns `true` if this [fileName] is a Dart file.
+@deprecated // Never intended for public use.
bool isDartFileName(String fileName) => fileName.endsWith('.dart');
/// Returns `true` if this [name] is a legal Dart identifier.
+@deprecated // Never intended for public use.
bool isIdentifier(String name) => _identifier.hasMatch(name);
/// Returns `true` of the given [name] is composed only of `_`s.
+@deprecated // Never intended for public use.
bool isJustUnderscores(String name) => _underscores.hasMatch(name);
/// Returns `true` if this [id] is `lowerCamelCase`.
+@deprecated // Never intended for public use.
bool isLowerCamelCase(String id) =>
id.length == 1 && isUpperCase(id.codeUnitAt(0)) ||
id == '_' ||
_lowerCamelCase.hasMatch(id);
/// Returns `true` if this [id] is `lower_camel_case_with_underscores`.
+@deprecated // Never intended for public use.
bool isLowerCaseUnderScore(String id) => _lowerCaseUnderScore.hasMatch(id);
/// Returns `true` if this [id] is `lower_camel_case_with_underscores_or.dots`.
+@deprecated // Never intended for public use.
bool isLowerCaseUnderScoreWithDots(String id) =>
_lowerCaseUnderScoreWithDots.hasMatch(id);
/// Returns `true` if this [fileName] is a Pubspec file.
+@deprecated // Never intended for public use.
bool isPubspecFileName(String fileName) => _pubspec.hasMatch(fileName);
/// Returns `true` if the given code unit [c] is upper case.
+@deprecated // Never intended for public use.
bool isUpperCase(int c) => c >= 0x40 && c <= 0x5A;
class Spelunker {
« no previous file with comments | « pkg/analyzer/lib/src/lint/linter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698