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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartCommentRefName.java

Issue 11377039: Issue 6251. Resolve and rename type and constructor references in [new Type.name]. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: compiler/java/com/google/dart/compiler/ast/DartCommentRefName.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartCommentRefName.java b/compiler/java/com/google/dart/compiler/ast/DartCommentRefName.java
new file mode 100644
index 0000000000000000000000000000000000000000..e39c50afc12b32fde672492d3f4717ec5b044434
--- /dev/null
+++ b/compiler/java/com/google/dart/compiler/ast/DartCommentRefName.java
@@ -0,0 +1,49 @@
+// 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.ast;
+
+import com.google.dart.compiler.resolver.Element;
+import com.google.dart.compiler.resolver.NodeElement;
+
+/**
+ * <code>[new name]</code> in {@link DartComment}.
+ */
+public final class DartCommentRefName extends DartNode {
+ private final String name;
+ private NodeElement element;
+
+ public DartCommentRefName(String name) {
+ assert name != null;
+ this.name = name;
+ }
+
+ @Override
+ public String toString() {
+ return name;
+ }
+
+ @Override
+ public NodeElement getElement() {
+ return element;
+ }
+
+ @Override
+ public void setElement(Element element) {
+ this.element = (NodeElement) element;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ @Override
+ public void visitChildren(ASTVisitor<?> visitor) {
+ }
+
+ @Override
+ public <R> R accept(ASTVisitor<R> visitor) {
+ return visitor.visitCommentRefName(this);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698