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

Side by Side Diff: sdk/lib/_internal/docgen/examples/test.dart

Issue 16839004: Moved docgen out of the sdk into pkg/ (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added copyright information., 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 | « sdk/lib/_internal/docgen/docgen.dart ('k') | sdk/lib/_internal/docgen/lib/dart2yaml.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /**
2 * This library is used solely for testing during development and is not
3 * intended to be run by the testing machines.
4 */
5 // TODO(tmandel): Remove this file once docgen is ready for more clear tests.
6 library DummyLibrary;
7
8 import 'dart:json';
9 import 'dart:math';
10
11 /// Doc comment for top-level variable.
12 int _variable1 = 0;
13
14 void set variable1(int abc) => _variable1 = abc;
15
16 abstract class B {
17
18 }
19
20 /**
21 * Doc comment for class A.
22 */
23 /*
24 * Normal comment for class A.
25 */
26 class A implements B {
27
28 /**
29 * Markdown _test_ for **class** `A`
30 */
31 int _someNumber;
32
33 A() {
34 _someNumber = 12;
35 }
36
37 int get someNumber => _someNumber;
38
39 void doThis(int a) {
40 print(a);
41 }
42
43 int multi(int a) {
44 return a * _someNumber;
45 }
46
47 }
48
49 main() {
50 A a = new A();
51 print(a.someNumber);
52 }
53
54 A getA(int testInt, [String testString="default"]) {
55 return new A();
56 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/docgen/docgen.dart ('k') | sdk/lib/_internal/docgen/lib/dart2yaml.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698