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

Side by Side Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 2983483002: Check function type equivalence (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/types.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 elements.modelx; 5 library elements.modelx;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show Identifiers; 8 import '../common/names.dart' show Identifiers;
9 import '../common/resolution.dart' show Resolution, ParsingContext; 9 import '../common/resolution.dart' show Resolution, ParsingContext;
10 import '../compiler.dart' show Compiler; 10 import '../compiler.dart' show Compiler;
(...skipping 2630 matching lines...) Expand 10 before | Expand all | Expand 10 after
2641 enclosing) { 2641 enclosing) {
2642 _resolvedAst = new SynthesizedResolvedAst( 2642 _resolvedAst = new SynthesizedResolvedAst(
2643 this, ResolvedAstKind.FORWARDING_CONSTRUCTOR); 2643 this, ResolvedAstKind.FORWARDING_CONSTRUCTOR);
2644 } 2644 }
2645 2645
2646 SynthesizedConstructorElementX.forDefault( 2646 SynthesizedConstructorElementX.forDefault(
2647 this.definingConstructor, Element enclosing) 2647 this.definingConstructor, Element enclosing)
2648 : super('', ElementKind.GENERATIVE_CONSTRUCTOR, Modifiers.EMPTY, 2648 : super('', ElementKind.GENERATIVE_CONSTRUCTOR, Modifiers.EMPTY,
2649 enclosing) { 2649 enclosing) {
2650 functionSignature = new FunctionSignatureX( 2650 functionSignature = new FunctionSignatureX(
2651 type: new ResolutionFunctionType.synthesized(enclosingClass.thisType)); 2651 type: new ResolutionFunctionType.synthesized(
2652 const ResolutionDynamicType()));
2652 _resolvedAst = 2653 _resolvedAst =
2653 new SynthesizedResolvedAst(this, ResolvedAstKind.DEFAULT_CONSTRUCTOR); 2654 new SynthesizedResolvedAst(this, ResolvedAstKind.DEFAULT_CONSTRUCTOR);
2654 } 2655 }
2655 2656
2656 bool get isDefaultConstructor { 2657 bool get isDefaultConstructor {
2657 return _resolvedAst.kind == ResolvedAstKind.DEFAULT_CONSTRUCTOR; 2658 return _resolvedAst.kind == ResolvedAstKind.DEFAULT_CONSTRUCTOR;
2658 } 2659 }
2659 2660
2660 FunctionExpression parseNode(ParsingContext parsing) => null; 2661 FunctionExpression parseNode(ParsingContext parsing) => null;
2661 2662
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
3601 body = node.asFunctionExpression().body; 3602 body = node.asFunctionExpression().body;
3602 } 3603 }
3603 return new ParsedResolvedAst( 3604 return new ParsedResolvedAst(
3604 declaration, 3605 declaration,
3605 node, 3606 node,
3606 body, 3607 body,
3607 definingElement.treeElements, 3608 definingElement.treeElements,
3608 definingElement.compilationUnit.script.resourceUri); 3609 definingElement.compilationUnit.script.resourceUri);
3609 } 3610 }
3610 } 3611 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698