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

Unified Diff: pkg/analyzer/lib/src/generated/ast.dart

Issue 137143010: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: pkg/analyzer/lib/src/generated/ast.dart
diff --git a/pkg/analyzer/lib/src/generated/ast.dart b/pkg/analyzer/lib/src/generated/ast.dart
index 324c06bec1469dce3faee2a6daf8b8e4ca8542d5..05c9a1d89cb63fef1c1d869eec10ce640605fd04 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -6137,7 +6137,7 @@ abstract class Identifier extends Expression {
* @param name the name being tested
* @return `true` if the given name is private
*/
- static bool isPrivateName(String name) => name.startsWith("_");
+ static bool isPrivateName(String name) => StringUtilities.startsWithChar(name, 0x5F);
/**
* Return the best element available for this operator. If resolution was able to find a better
@@ -10139,7 +10139,7 @@ class SimpleStringLiteral extends StringLiteral {
if (lexeme.length < 6) {
return false;
}
- return lexeme.endsWith("\"\"\"") || lexeme.endsWith("'''");
+ return StringUtilities.endsWith3(lexeme, 0x22, 0x22, 0x22) || StringUtilities.endsWith3(lexeme, 0x27, 0x27, 0x27);
}
/**

Powered by Google App Engine
This is Rietveld 408576698