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

Unified Diff: runtime/observatory/lib/src/elements/flag_list.dart

Issue 2298563002: Removed const from classes arrays in Observatory (Closed)
Patch Set: Created 4 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
Index: runtime/observatory/lib/src/elements/flag_list.dart
diff --git a/runtime/observatory/lib/src/elements/flag_list.dart b/runtime/observatory/lib/src/elements/flag_list.dart
index 1fdb3d508db0f9dcbc51a8b8c75fdec54b0525db..e207251359dc1c06c17a047a750fe365b063d396 100644
--- a/runtime/observatory/lib/src/elements/flag_list.dart
+++ b/runtime/observatory/lib/src/elements/flag_list.dart
@@ -136,15 +136,15 @@ class FlagListElement extends HtmlElement implements Renderable {
static List<Element> _renderFlag(M.Flag flag) {
return [
- new SpanElement()..classes = const ['comment']
+ new SpanElement()..classes = ['comment']
..text = '// ${flag.comment}',
- new DivElement()..classes = flag.modified ? const ['flag', 'modified']
- : const ['flag', 'unmodified']
+ new DivElement()..classes = flag.modified ? ['flag', 'modified']
+ : ['flag', 'unmodified']
..children = [
- new SpanElement()..classes = const ['name']
+ new SpanElement()..classes = ['name']
..text = flag.name,
new SpanElement()..text = '=',
- new SpanElement()..classes = const ['value']
+ new SpanElement()..classes = ['value']
..text = flag.valueAsString ?? 'NULL'
],
new BRElement(),
« no previous file with comments | « runtime/observatory/lib/src/elements/field_view.dart ('k') | runtime/observatory/lib/src/elements/function_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698