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

Side by Side Diff: pkg/analyzer/lib/src/summary/resynthesize.dart

Issue 1966783003: First steps toward AST-based type inference involving closures. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 library summary_resynthesizer; 5 library summary_resynthesizer;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 case UnlinkedConstOperation.assignToRef: 453 case UnlinkedConstOperation.assignToRef:
454 case UnlinkedConstOperation.assignToProperty: 454 case UnlinkedConstOperation.assignToProperty:
455 case UnlinkedConstOperation.assignToIndex: 455 case UnlinkedConstOperation.assignToIndex:
456 case UnlinkedConstOperation.extractIndex: 456 case UnlinkedConstOperation.extractIndex:
457 case UnlinkedConstOperation.invokeMethod: 457 case UnlinkedConstOperation.invokeMethod:
458 case UnlinkedConstOperation.cascadeSectionBegin: 458 case UnlinkedConstOperation.cascadeSectionBegin:
459 case UnlinkedConstOperation.cascadeSectionEnd: 459 case UnlinkedConstOperation.cascadeSectionEnd:
460 case UnlinkedConstOperation.typeCast: 460 case UnlinkedConstOperation.typeCast:
461 case UnlinkedConstOperation.typeCheck: 461 case UnlinkedConstOperation.typeCheck:
462 case UnlinkedConstOperation.throwException: 462 case UnlinkedConstOperation.throwException:
463 case UnlinkedConstOperation.pushLocalFunctionReference:
463 throw new UnimplementedError( 464 throw new UnimplementedError(
464 'Unexpected $operation in a constant expression.'); 465 'Unexpected $operation in a constant expression.');
465 } 466 }
466 } 467 }
467 return stack.single; 468 return stack.single;
468 } 469 }
469 470
470 List<Expression> _buildArguments() { 471 List<Expression> _buildArguments() {
471 List<Expression> arguments; 472 List<Expression> arguments;
472 { 473 {
(...skipping 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after
2718 static String _getElementIdentifier(String name, ReferenceKind kind) { 2719 static String _getElementIdentifier(String name, ReferenceKind kind) {
2719 if (kind == ReferenceKind.topLevelPropertyAccessor || 2720 if (kind == ReferenceKind.topLevelPropertyAccessor ||
2720 kind == ReferenceKind.propertyAccessor) { 2721 kind == ReferenceKind.propertyAccessor) {
2721 if (!name.endsWith('=')) { 2722 if (!name.endsWith('=')) {
2722 return name + '?'; 2723 return name + '?';
2723 } 2724 }
2724 } 2725 }
2725 return name; 2726 return name;
2726 } 2727 }
2727 } 2728 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698