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

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

Issue 10983089: Issue 3968. Report error if cycle in redirecting factory constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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.common.collect.ImmutableSet; 6 import com.google.common.collect.ImmutableSet;
7 import com.google.dart.compiler.ast.DartMethodDefinition; 7 import com.google.dart.compiler.ast.DartMethodDefinition;
8 import com.google.dart.compiler.type.FunctionType; 8 import com.google.dart.compiler.type.FunctionType;
9 import com.google.dart.compiler.type.Type; 9 import com.google.dart.compiler.type.Type;
10 import com.google.dart.compiler.type.Types; 10 import com.google.dart.compiler.type.Types;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 public boolean hasBody() { 79 public boolean hasBody() {
80 return false; 80 return false;
81 } 81 }
82 82
83 @Override 83 @Override
84 public ConstructorElement getDefaultConstructor() { 84 public ConstructorElement getDefaultConstructor() {
85 return defaultConstructor; 85 return defaultConstructor;
86 } 86 }
87 87
88 @Override 88 @Override
89 public ConstructorElement getRedirectingFactoryConstructor() {
90 return null;
91 }
92
93 @Override
89 public void setDefaultConstructor(ConstructorElement defaultConstructor) { 94 public void setDefaultConstructor(ConstructorElement defaultConstructor) {
90 this.defaultConstructor = defaultConstructor; 95 this.defaultConstructor = defaultConstructor;
91 } 96 }
92 97
93 @Override 98 @Override
94 public Type getReturnType() { 99 public Type getReturnType() {
95 return functionType.getReturnType(); 100 return functionType.getReturnType();
96 } 101 }
97 102
98 @Override 103 @Override
(...skipping 24 matching lines...) Expand all
123 @Override 128 @Override
124 public Element lookupLocalElement(String name) { 129 public Element lookupLocalElement(String name) {
125 return null; 130 return null;
126 } 131 }
127 132
128 @Override 133 @Override
129 public Set<Element> getOverridden() { 134 public Set<Element> getOverridden() {
130 return ImmutableSet.of(); 135 return ImmutableSet.of();
131 } 136 }
132 } 137 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698