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

Side by Side Diff: pkg/compiler/lib/src/tree/unparser.dart

Issue 2128243002: Fixes bug in scoping for generic methods. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 import '../tokens/token.dart' show Token; 5 import '../tokens/token.dart' show Token;
6 import '../tokens/token_constants.dart' as Tokens 6 import '../tokens/token_constants.dart' as Tokens
7 show IDENTIFIER_TOKEN, KEYWORD_TOKEN, PLUS_TOKEN; 7 show IDENTIFIER_TOKEN, KEYWORD_TOKEN, PLUS_TOKEN;
8 import '../util/util.dart'; 8 import '../util/util.dart';
9 import 'nodes.dart'; 9 import 'nodes.dart';
10 10
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } 253 }
254 if (node.returnType != null && !stripTypes) { 254 if (node.returnType != null && !stripTypes) {
255 visit(node.returnType); 255 visit(node.returnType);
256 write(' '); 256 write(' ');
257 } 257 }
258 if (node.getOrSet != null) { 258 if (node.getOrSet != null) {
259 write(node.getOrSet.value); 259 write(node.getOrSet.value);
260 write(' '); 260 write(' ');
261 } 261 }
262 unparseFunctionName(node.name); 262 unparseFunctionName(node.name);
263 visit(node.typeVariables);
263 visit(node.parameters); 264 visit(node.parameters);
264 if (node.initializers != null) { 265 if (node.initializers != null) {
265 space(); 266 space();
266 write(':'); 267 write(':');
267 space(); 268 space();
268 unparseNodeListFrom(node.initializers, node.initializers.nodes, 269 unparseNodeListFrom(node.initializers, node.initializers.nodes,
269 spaces: true); 270 spaces: true);
270 } 271 }
271 if (node.asyncModifier != null) { 272 if (node.asyncModifier != null) {
272 if (node.getOrSet != null) { 273 if (node.getOrSet != null) {
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 } 897 }
897 898
898 visitStatement(Statement node) { 899 visitStatement(Statement node) {
899 throw 'internal error'; // Should not be called. 900 throw 'internal error'; // Should not be called.
900 } 901 }
901 902
902 visitStringNode(StringNode node) { 903 visitStringNode(StringNode node) {
903 throw 'internal error'; // Should not be called. 904 throw 'internal error'; // Should not be called.
904 } 905 }
905 } 906 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | tests/language/generic_local_functions_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698