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

Unified Diff: dart/compiler/java/com/google/dart/compiler/resolver/FieldElementImplementation.java

Issue 20722006: Removed compiler/ directory from repository (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: dart/compiler/java/com/google/dart/compiler/resolver/FieldElementImplementation.java
diff --git a/dart/compiler/java/com/google/dart/compiler/resolver/FieldElementImplementation.java b/dart/compiler/java/com/google/dart/compiler/resolver/FieldElementImplementation.java
deleted file mode 100644
index d60a14425044f87c2049b4cc99fc587f1cebc363..0000000000000000000000000000000000000000
--- a/dart/compiler/java/com/google/dart/compiler/resolver/FieldElementImplementation.java
+++ /dev/null
@@ -1,128 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-package com.google.dart.compiler.resolver;
-
-import com.google.common.collect.ImmutableSet;
-import com.google.dart.compiler.ast.DartField;
-import com.google.dart.compiler.ast.DartNode;
-import com.google.dart.compiler.ast.DartObsoleteMetadata;
-import com.google.dart.compiler.ast.Modifiers;
-import com.google.dart.compiler.common.SourceInfo;
-import com.google.dart.compiler.type.Type;
-
-import java.util.Set;
-
-class FieldElementImplementation extends AbstractNodeElement implements FieldElement, FieldNodeElement {
- private final EnclosingElement holder;
- private final SourceInfo nameLocation;
- private DartObsoleteMetadata metadata;
- private Modifiers modifiers;
- private Type type;
- private MethodNodeElement getter;
- private MethodNodeElement setter;
- private Type constantType;
- private Set<Element> overridden = ImmutableSet.of();
-
- FieldElementImplementation(DartNode node,
- SourceInfo nameLocation,
- String name,
- EnclosingElement holder,
- DartObsoleteMetadata metadata,
- Modifiers modifiers) {
- super(node, name);
- this.holder = holder;
- this.metadata = metadata;
- this.modifiers = modifiers;
- this.nameLocation = nameLocation;
- }
-
- @Override
- public Type getType() {
- return type;
- }
-
- @Override
- public void setType(Type type) {
- this.type = type;
- }
-
- @Override
- public ElementKind getKind() {
- return ElementKind.FIELD;
- }
-
- @Override
- public SourceInfo getNameLocation() {
- return nameLocation;
- }
-
- @Override
- public EnclosingElement getEnclosingElement() {
- return holder;
- }
-
- @Override
- public DartObsoleteMetadata getMetadata() {
- return metadata;
- }
-
- @Override
- public Modifiers getModifiers() {
- return modifiers;
- }
-
- @Override
- public boolean isStatic() {
- return modifiers.isStatic();
- }
-
- public static FieldElementImplementation fromNode(DartField node,
- EnclosingElement holder,
- DartObsoleteMetadata metadata,
- Modifiers modifiers) {
- return new FieldElementImplementation(node,
- node.getName().getSourceInfo(),
- (node.getAccessor() != null && node.getAccessor().getModifiers().isSetter() ? "setter " : "") + node.getName().getName(),
- holder,
- metadata,
- modifiers);
- }
-
- @Override
- public MethodNodeElement getGetter() {
- return getter;
- }
-
- @Override
- public MethodNodeElement getSetter() {
- return setter;
- }
-
- void setGetter(MethodNodeElement getter) {
- this.getter = getter;
- }
-
- void setSetter(MethodNodeElement setter) {
- this.setter = setter;
- }
-
- @Override
- public Type getConstantType() {
- return constantType;
- }
-
- @Override
- public void setConstantType(Type type) {
- constantType = type;
- }
-
- public void setOverridden(Set<Element> overridden) {
- this.overridden = overridden;
- }
-
- public Set<Element> getOverridden() {
- return overridden;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698