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

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

Issue 2644533002: Mostly use entities in use.dart (Closed)
Patch Set: Fixes Created 3 years, 11 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) 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 1726 matching lines...) Expand 10 before | Expand all | Expand 10 after
1737 * system. 1737 * system.
1738 */ 1738 */
1739 FunctionSignature _functionSignatureCache; 1739 FunctionSignature _functionSignatureCache;
1740 1740
1741 FormalElementX(ElementKind elementKind, FunctionTypedElement enclosingElement, 1741 FormalElementX(ElementKind elementKind, FunctionTypedElement enclosingElement,
1742 this.definitions, Identifier identifier) 1742 this.definitions, Identifier identifier)
1743 : this.identifier = identifier, 1743 : this.identifier = identifier,
1744 super(identifier.source, elementKind, enclosingElement); 1744 super(identifier.source, elementKind, enclosingElement);
1745 1745
1746 FormalElementX.unnamed(ElementKind elementKind, 1746 FormalElementX.unnamed(ElementKind elementKind,
1747 FunctionTypedElement enclosingElement, 1747 FunctionTypedElement enclosingElement, this.definitions)
1748 this.definitions)
1749 : this.identifier = null, 1748 : this.identifier = null,
1750 super("<unnamed>", elementKind, enclosingElement); 1749 super("<unnamed>", elementKind, enclosingElement);
1751 1750
1752 /// Whether this is an unnamed parameter in a Function type. 1751 /// Whether this is an unnamed parameter in a Function type.
1753 bool get isUnnamed => identifier == null; 1752 bool get isUnnamed => identifier == null;
1754 1753
1755 FunctionTypedElement get functionDeclaration => enclosingElement; 1754 FunctionTypedElement get functionDeclaration => enclosingElement;
1756 1755
1757 Modifiers get modifiers => definitions.modifiers; 1756 Modifiers get modifiers => definitions.modifiers;
1758 1757
(...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after
3430 body = node.asFunctionExpression().body; 3429 body = node.asFunctionExpression().body;
3431 } 3430 }
3432 return new ParsedResolvedAst( 3431 return new ParsedResolvedAst(
3433 declaration, 3432 declaration,
3434 node, 3433 node,
3435 body, 3434 body,
3436 definingElement.treeElements, 3435 definingElement.treeElements,
3437 definingElement.compilationUnit.script.resourceUri); 3436 definingElement.compilationUnit.script.resourceUri);
3438 } 3437 }
3439 } 3438 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698