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

Side by Side Diff: tests/compiler/dart2js/backend_dart/sexpr_test.dart

Issue 1021813002: Redo "Use an explicit 'this' parameter instead of 'This' nodes." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library dart_backend.sexpr_test; 5 library dart_backend.sexpr_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/src/dart2jslib.dart'; 10 import 'package:compiler/src/dart2jslib.dart';
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 , "TypeOperator" 153 , "TypeOperator"
154 154
155 // Primitives 155 // Primitives
156 , "Constant" 156 , "Constant"
157 , "CreateFunction" 157 , "CreateFunction"
158 , "GetMutableVariable" 158 , "GetMutableVariable"
159 , "LiteralList" 159 , "LiteralList"
160 , "LiteralMap" 160 , "LiteralMap"
161 // Parameters are encoded by name only and hence are not in this list. 161 // Parameters are encoded by name only and hence are not in this list.
162 , "ReifyTypeVar" 162 , "ReifyTypeVar"
163 , "This" 163
164 , "(this)" // 'this' Parameter declarations
165 , "this" // 'this' Parameter uses
166
164 ]; 167 ];
165 168
166 asyncTest(() => testStringifier(CODE, tokens).then((List<String> sexprs) { 169 asyncTest(() => testStringifier(CODE, tokens).then((List<String> sexprs) {
167 final functions = testUnstringifier(sexprs); 170 final functions = testUnstringifier(sexprs);
168 171
169 // Ensure that 172 // Ensure that
170 // stringified(CODE) == stringified(unstringified(stringified(CODE))) 173 // stringified(CODE) == stringified(unstringified(stringified(CODE)))
171 Expect.listEquals(sexprs, stringifyAll(functions)); 174 Expect.listEquals(sexprs, stringifyAll(functions));
172 })); 175 }));
173 } 176 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698