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

Side by Side Diff: test/codegen/cascade.dart

Issue 1056183003: use VariableElement instead of VariableElementImpl in _isStateless (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 class A { 5 class A {
6 var x; 6 var x;
7 } 7 }
8 8
9 void test_closure_with_mutate() { 9 void test_closure_with_mutate() {
10 var a = new A(); 10 var a = new A();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 print(b); 61 print(b);
62 } 62 }
63 63
64 void test_VariableDeclaration_first() { 64 void test_VariableDeclaration_first() {
65 var a = [] 65 var a = []
66 ..length = 2 66 ..length = 2
67 ..add(3), 67 ..add(3),
68 b = 2; 68 b = 2;
69 print(a); 69 print(a);
70 } 70 }
71
72 class Base<T> {
73 final List<T> x = <T>[];
74 }
75
76 class Foo extends Base<int> {
77 void test_final_field_generic(t) {
78 x..add(1)..add(2)..add(3)..add(4);
79 }
80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698