| OLD | NEW |
| 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; |
| 11 | 11 |
| 12 import 'dart:json'; | 12 import 'dart:json'; |
| 13 import 'dart:math'; | 13 import 'dart:math'; |
| 14 import 'package:args/args.dart'; |
| 15 |
| 16 part 'second.dart'; |
| 17 part 'sub_dir/sub_directory.dart'; |
| 14 | 18 |
| 15 /// Doc comment for top-level variable. | 19 /// Doc comment for top-level variable. |
| 16 int _variable1 = 0; | 20 int _variable1 = 0; |
| 17 | 21 |
| 18 void set variable1(int abc) => _variable1 = abc; | 22 void set variable1(int abc) => _variable1 = abc; |
| 19 | 23 |
| 20 abstract class B { | 24 void _printVariable1() => print(_variable1); |
| 25 |
| 26 abstract class _B { |
| 21 | 27 |
| 22 } | 28 } |
| 23 | 29 |
| 24 /** | 30 /** |
| 25 * Doc comment for class A. | 31 * Doc comment for class A. |
| 32 * |
| 33 * Multiline Test |
| 26 */ | 34 */ |
| 27 /* | 35 /* |
| 28 * Normal comment for class A. | 36 * Normal comment for class A. |
| 29 */ | 37 */ |
| 30 class A implements B { | 38 class A implements _B { |
| 31 | 39 |
| 32 /** | 40 /** |
| 33 * Markdown _test_ for **class** [A] | 41 * Markdown _test_ for **class** [A] |
| 34 */ | 42 */ |
| 35 int _someNumber; | 43 int _someNumber; |
| 36 | 44 |
| 37 A() { | 45 A() { |
| 38 _someNumber = 12; | 46 _someNumber = 12; |
| 39 } | 47 } |
| 48 |
| 49 A.withThree() { |
| 50 _someNumber = 3; |
| 51 } |
| 40 | 52 |
| 53 /// Originally set to 12 in constructor [A], use [A.withThree] for 3. |
| 41 int get someNumber => _someNumber; | 54 int get someNumber => _someNumber; |
| 42 | 55 |
| 43 void doThis(int a) { | 56 void doThis(int a) { |
| 44 print(a); | 57 print(a); |
| 45 } | 58 } |
| 46 | 59 |
| 47 int multi(int a) { | 60 int multi(int a) { |
| 48 return a * _someNumber; | 61 return a * _someNumber; |
| 49 } | 62 } |
| 50 | 63 |
| 51 } | 64 } |
| 52 | 65 |
| 66 /// trying to link to [ArgParser] |
| 53 main() { | 67 main() { |
| 54 A a = new A(); | 68 A a = new A(); |
| 55 print(a.someNumber); | 69 print(a.someNumber); |
| 70 C c = new C(); |
| 71 c.doThis(5); |
| 56 } | 72 } |
| 57 | 73 |
| 58 A getA(int testInt, [String testString="default"]) { | 74 A getA(int testInt, [String testString="default"]) { |
| 59 return new A(); | 75 return new A(); |
| 60 } | 76 } |
| OLD | NEW |