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

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

Issue 2955353002: Split inference type-info accessors into members, parameters and local functions (Closed)
Patch Set: Cleanup 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
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 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after
2223 2223
2224 accept(ElementVisitor visitor, arg) { 2224 accept(ElementVisitor visitor, arg) {
2225 return visitor.visitSetterElement(this, arg); 2225 return visitor.visitSetterElement(this, arg);
2226 } 2226 }
2227 } 2227 }
2228 2228
2229 class LocalFunctionElementX extends BaseFunctionElementX 2229 class LocalFunctionElementX extends BaseFunctionElementX
2230 implements LocalFunctionElement { 2230 implements LocalFunctionElement {
2231 final FunctionExpression node; 2231 final FunctionExpression node;
2232 2232
2233 MethodElement callMethod;
2234
2233 LocalFunctionElementX(String name, FunctionExpression this.node, 2235 LocalFunctionElementX(String name, FunctionExpression this.node,
2234 ElementKind kind, Modifiers modifiers, ExecutableElement enclosing) 2236 ElementKind kind, Modifiers modifiers, ExecutableElement enclosing)
2235 : super(name, kind, modifiers, enclosing); 2237 : super(name, kind, modifiers, enclosing);
2236 2238
2237 ExecutableElement get executableContext => enclosingElement; 2239 ExecutableElement get executableContext => enclosingElement;
2238 2240
2239 MemberElement get memberContext => executableContext.memberContext; 2241 MemberElement get memberContext => executableContext.memberContext;
2240 2242
2241 bool get hasNode => true; 2243 bool get hasNode => true;
2242 2244
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
3573 body = node.asFunctionExpression().body; 3575 body = node.asFunctionExpression().body;
3574 } 3576 }
3575 return new ParsedResolvedAst( 3577 return new ParsedResolvedAst(
3576 declaration, 3578 declaration,
3577 node, 3579 node,
3578 body, 3580 body,
3579 definingElement.treeElements, 3581 definingElement.treeElements,
3580 definingElement.compilationUnit.script.resourceUri); 3582 definingElement.compilationUnit.script.resourceUri);
3581 } 3583 }
3582 } 3584 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698