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

Side by Side Diff: compiler/java/com/google/dart/compiler/ast/DartNodeWithMetadata.java

Issue 10860012: Add support for metadata annotation syntax (issue 4056) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 package com.google.dart.compiler.ast;
6
7 import java.util.List;
8
9 /**
10 * The abstract class {@code DartNodeWithMetadata} defines the behavior of nodes that can have
11 * metadata associated with them.
12 */
13 public abstract class DartNodeWithMetadata extends DartNode {
14 private NodeList<DartMetadata> metadata = NodeList.create(this);
scheglov 2012/08/17 17:37:03 Spec: "Metadata consists of series of annotations
Brian Wilkerson 2012/08/17 18:28:02 Done
15
16 protected DartNodeWithMetadata() {
17 super();
18 }
19
20 public NodeList<DartMetadata> getMetadata() {
21 return metadata;
22 }
23
24 public void setMetadata(List<DartMetadata> metadata) {
25 this.metadata.addAll(metadata);
26 }
27
28 @Override
29 public void visitChildren(ASTVisitor<?> visitor) {
30 metadata.accept(visitor);
31 }
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698