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

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

Issue 10661022: Issue 3752. Support for @override annotations (as structured doc comments) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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) 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 4
5 package com.google.dart.compiler.ast; 5 package com.google.dart.compiler.ast;
6 6
7 import com.google.dart.compiler.Source; 7 import com.google.dart.compiler.Source;
8 import com.google.dart.compiler.common.SourceInfo; 8 import com.google.dart.compiler.common.SourceInfo;
9 9
10 public class DartComment extends DartNode { 10 public class DartComment extends DartNode {
11 11
12 @SuppressWarnings("unused") 12 @SuppressWarnings("unused")
13 private static final long serialVersionUID = 6066713446767517627L; 13 private static final long serialVersionUID = 6066713446767517627L;
14 14
15 public static enum Style { 15 public static enum Style {
16 END_OF_LINE, BLOCK, DART_DOC; 16 END_OF_LINE, BLOCK, DART_DOC;
17 } 17 }
18 18
19 private Style style; 19 private Style style;
20 20
21 public DartComment(Source source, int start, int length, int line, int col, St yle style) { 21 public DartComment(Source source, int start, int length, Style style) {
22 setSourceInfo(new SourceInfo(source, start, length)); 22 setSourceInfo(new SourceInfo(source, start, length));
23 this.style = style; 23 this.style = style;
24 } 24 }
25 25
26 /** 26 /**
27 * Return <code>true<code> if this comment is a block comment. 27 * Return <code>true<code> if this comment is a block comment.
28 * 28 *
29 * @return <code>true<code> if this comment is a block comment 29 * @return <code>true<code> if this comment is a block comment
30 */ 30 */
31 public boolean isBlock() { 31 public boolean isBlock() {
(...skipping 21 matching lines...) Expand all
53 @Override 53 @Override
54 public void visitChildren(ASTVisitor<?> visitor) { 54 public void visitChildren(ASTVisitor<?> visitor) {
55 } 55 }
56 56
57 @Override 57 @Override
58 public <R> R accept(ASTVisitor<R> visitor) { 58 public <R> R accept(ASTVisitor<R> visitor) {
59 return null; 59 return null;
60 } 60 }
61 61
62 } 62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698