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

Side by Side Diff: compiler/java/com/google/dart/compiler/resolver/SyntheticDefaultConstructorElement.java

Issue 9703096: Remove Element.getNode() method (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for review comments Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 package com.google.dart.compiler.resolver; 4 package com.google.dart.compiler.resolver;
5 5
6 import com.google.dart.compiler.ast.DartMethodDefinition; 6 import com.google.dart.compiler.ast.DartMethodDefinition;
7 import com.google.dart.compiler.type.FunctionType; 7 import com.google.dart.compiler.type.FunctionType;
8 import com.google.dart.compiler.type.Type; 8 import com.google.dart.compiler.type.Type;
9 import com.google.dart.compiler.type.Types; 9 import com.google.dart.compiler.type.Types;
10 10
11 import java.util.Collections; 11 import java.util.Collections;
12 import java.util.List; 12 import java.util.List;
13 13
14 /** 14 /**
15 * {@link ConstructorElement} for implicit default constructor. 15 * {@link ConstructorElement} for implicit default constructor.
16 */ 16 */
17 public class SyntheticDefaultConstructorElement extends AbstractNodeElement 17 public class SyntheticDefaultConstructorElement extends AbstractNodeElement
18 implements 18 implements
19 ConstructorElement { 19 ConstructorNodeElement {
20 private final ClassElement enclosingClass; 20 private final ClassElement enclosingClass;
21 private final FunctionType functionType; 21 private final FunctionType functionType;
22 private ConstructorElement defaultConstructor; 22 private ConstructorElement defaultConstructor;
23 23
24 public SyntheticDefaultConstructorElement(DartMethodDefinition method, 24 public SyntheticDefaultConstructorElement(DartMethodDefinition method,
25 ClassElement enclosingClass, 25 ClassElement enclosingClass,
26 CoreTypeProvider typeProvider) { 26 CoreTypeProvider typeProvider) {
27 super(method, ""); 27 super(method, "");
28 this.enclosingClass = enclosingClass; 28 this.enclosingClass = enclosingClass;
29 if (typeProvider != null) { 29 if (typeProvider != null) {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 @Override 116 @Override
117 public Iterable<Element> getMembers() { 117 public Iterable<Element> getMembers() {
118 return Collections.emptyList(); 118 return Collections.emptyList();
119 } 119 }
120 120
121 @Override 121 @Override
122 public Element lookupLocalElement(String name) { 122 public Element lookupLocalElement(String name) {
123 return null; 123 return null;
124 } 124 }
125 } 125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698