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

Unified Diff: lib/compiler/implementation/tree/nodes.dart

Issue 10880068: - Change "static final" to "static const" in the lib/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « lib/compiler/implementation/ssa/types.dart ('k') | lib/compiler/implementation/tree/prettyprint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/tree/nodes.dart
===================================================================
--- lib/compiler/implementation/tree/nodes.dart (revision 11400)
+++ lib/compiler/implementation/tree/nodes.dart (working copy)
@@ -708,41 +708,41 @@
class StringQuoting {
- static final StringQuoting SINGLELINE_DQ =
+ static const StringQuoting SINGLELINE_DQ =
const StringQuoting($DQ, raw: false, leftQuoteLength: 1);
- static final StringQuoting RAW_SINGLELINE_DQ =
+ static const StringQuoting RAW_SINGLELINE_DQ =
const StringQuoting($DQ, raw: true, leftQuoteLength: 1);
- static final StringQuoting MULTILINE_DQ =
+ static const StringQuoting MULTILINE_DQ =
const StringQuoting($DQ, raw: false, leftQuoteLength: 3);
- static final StringQuoting RAW_MULTILINE_DQ =
+ static const StringQuoting RAW_MULTILINE_DQ =
const StringQuoting($DQ, raw: true, leftQuoteLength: 3);
- static final StringQuoting MULTILINE_NL_DQ =
+ static const StringQuoting MULTILINE_NL_DQ =
const StringQuoting($DQ, raw: false, leftQuoteLength: 4);
- static final StringQuoting RAW_MULTILINE_NL_DQ =
+ static const StringQuoting RAW_MULTILINE_NL_DQ =
const StringQuoting($DQ, raw: true, leftQuoteLength: 4);
- static final StringQuoting MULTILINE_NL2_DQ =
+ static const StringQuoting MULTILINE_NL2_DQ =
const StringQuoting($DQ, raw: false, leftQuoteLength: 5);
- static final StringQuoting RAW_MULTILINE_NL2_DQ =
+ static const StringQuoting RAW_MULTILINE_NL2_DQ =
const StringQuoting($DQ, raw: true, leftQuoteLength: 5);
- static final StringQuoting SINGLELINE_SQ =
+ static const StringQuoting SINGLELINE_SQ =
const StringQuoting($SQ, raw: false, leftQuoteLength: 1);
- static final StringQuoting RAW_SINGLELINE_SQ =
+ static const StringQuoting RAW_SINGLELINE_SQ =
const StringQuoting($SQ, raw: true, leftQuoteLength: 1);
- static final StringQuoting MULTILINE_SQ =
+ static const StringQuoting MULTILINE_SQ =
const StringQuoting($SQ, raw: false, leftQuoteLength: 3);
- static final StringQuoting RAW_MULTILINE_SQ =
+ static const StringQuoting RAW_MULTILINE_SQ =
const StringQuoting($SQ, raw: true, leftQuoteLength: 3);
- static final StringQuoting MULTILINE_NL_SQ =
+ static const StringQuoting MULTILINE_NL_SQ =
const StringQuoting($SQ, raw: false, leftQuoteLength: 4);
- static final StringQuoting RAW_MULTILINE_NL_SQ =
+ static const StringQuoting RAW_MULTILINE_NL_SQ =
const StringQuoting($SQ, raw: true, leftQuoteLength: 4);
- static final StringQuoting MULTILINE_NL2_SQ =
+ static const StringQuoting MULTILINE_NL2_SQ =
const StringQuoting($SQ, raw: false, leftQuoteLength: 5);
- static final StringQuoting RAW_MULTILINE_NL2_SQ =
+ static const StringQuoting RAW_MULTILINE_NL2_SQ =
const StringQuoting($SQ, raw: true, leftQuoteLength: 5);
- static final List<StringQuoting> mapping = const <StringQuoting>[
+ static const List<StringQuoting> mapping = const <StringQuoting>[
SINGLELINE_DQ,
RAW_SINGLELINE_DQ,
MULTILINE_DQ,
@@ -1096,13 +1096,13 @@
/** Bit pattern to easy check what modifiers are present. */
final int flags;
- static final int FLAG_STATIC = 1;
- static final int FLAG_ABSTRACT = FLAG_STATIC << 1;
- static final int FLAG_FINAL = FLAG_ABSTRACT << 1;
- static final int FLAG_VAR = FLAG_FINAL << 1;
- static final int FLAG_CONST = FLAG_VAR << 1;
- static final int FLAG_FACTORY = FLAG_CONST << 1;
- static final int FLAG_EXTERNAL = FLAG_FACTORY << 1;
+ static const int FLAG_STATIC = 1;
+ static const int FLAG_ABSTRACT = FLAG_STATIC << 1;
+ static const int FLAG_FINAL = FLAG_ABSTRACT << 1;
+ static const int FLAG_VAR = FLAG_FINAL << 1;
+ static const int FLAG_CONST = FLAG_VAR << 1;
+ static const int FLAG_FACTORY = FLAG_CONST << 1;
+ static const int FLAG_EXTERNAL = FLAG_FACTORY << 1;
Modifiers(NodeList nodes) : this.withFlags(nodes, computeFlags(nodes.nodes));
« no previous file with comments | « lib/compiler/implementation/ssa/types.dart ('k') | lib/compiler/implementation/tree/prettyprint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698