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

Side by Side Diff: pkg/docgen/example/test.dart

Issue 17000002: Added markdown reference recognition and output to JSON. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added copyright information to docgen.dart Created 7 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
« no previous file with comments | « pkg/docgen/bin/docgen.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 /** 5 /**
6 * This library is used solely for testing during development and is not 6 * This library is used solely for testing during development and is not
7 * intended to be run by the testing machines. 7 * intended to be run by the testing machines.
8 */ 8 */
9 // TODO(tmandel): Remove this file once docgen is ready for more clear tests. 9 // TODO(tmandel): Remove this file once docgen is ready for more clear tests.
10 library DummyLibrary; 10 library DummyLibrary;
(...skipping 12 matching lines...) Expand all
23 23
24 /** 24 /**
25 * Doc comment for class A. 25 * Doc comment for class A.
26 */ 26 */
27 /* 27 /*
28 * Normal comment for class A. 28 * Normal comment for class A.
29 */ 29 */
30 class A implements B { 30 class A implements B {
31 31
32 /** 32 /**
33 * Markdown _test_ for **class** `A` 33 * Markdown _test_ for **class** [A]
34 */ 34 */
35 int _someNumber; 35 int _someNumber;
36 36
37 A() { 37 A() {
38 _someNumber = 12; 38 _someNumber = 12;
39 } 39 }
40 40
41 int get someNumber => _someNumber; 41 int get someNumber => _someNumber;
42 42
43 void doThis(int a) { 43 void doThis(int a) {
44 print(a); 44 print(a);
45 } 45 }
46 46
47 int multi(int a) { 47 int multi(int a) {
48 return a * _someNumber; 48 return a * _someNumber;
49 } 49 }
50 50
51 } 51 }
52 52
53 main() { 53 main() {
54 A a = new A(); 54 A a = new A();
55 print(a.someNumber); 55 print(a.someNumber);
56 } 56 }
57 57
58 A getA(int testInt, [String testString="default"]) { 58 A getA(int testInt, [String testString="default"]) {
59 return new A(); 59 return new A();
60 } 60 }
OLDNEW
« no previous file with comments | « pkg/docgen/bin/docgen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698