Chromium Code Reviews| 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. |
|
Andrei Mouravski
2013/06/18 10:17:45
Yeah. Do that. Make an issue. :]
| |
| 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 | 14 |
| 15 /// Doc comment for top-level variable. | 15 /// Doc comment for top-level variable. |
| 16 int _variable1 = 0; | 16 int _variable1 = 0; |
| 17 | 17 |
| 18 void set variable1(int abc) => _variable1 = abc; | 18 void set variable1(int abc) => _variable1 = abc; |
| 19 | 19 |
| 20 abstract class B { | 20 void _printVariable1() => print(_variable1); |
|
Andrei Mouravski
2013/06/18 10:17:45
Log, don't print.
janicejl
2013/06/18 18:42:46
This is just a test file for the docgen. Should I
| |
| 21 | |
| 22 abstract class _B { | |
| 21 | 23 |
| 22 } | 24 } |
| 23 | 25 |
| 24 /** | 26 /** |
| 25 * Doc comment for class A. | 27 * Doc comment for class A. |
| 26 */ | 28 */ |
| 27 /* | 29 /* |
| 28 * Normal comment for class A. | 30 * Normal comment for class A. |
| 29 */ | 31 */ |
| 30 class A implements B { | 32 class A implements _B { |
| 31 | 33 |
| 32 /** | 34 /** |
| 33 * Markdown _test_ for **class** [A] | 35 * Markdown _test_ for **class** [A] |
| 34 */ | 36 */ |
| 35 int _someNumber; | 37 int _someNumber; |
| 36 | 38 |
| 37 A() { | 39 A() { |
| 38 _someNumber = 12; | 40 _someNumber = 12; |
| 39 } | 41 } |
| 40 | 42 |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 51 } | 53 } |
| 52 | 54 |
| 53 main() { | 55 main() { |
| 54 A a = new A(); | 56 A a = new A(); |
| 55 print(a.someNumber); | 57 print(a.someNumber); |
| 56 } | 58 } |
| 57 | 59 |
| 58 A getA(int testInt, [String testString="default"]) { | 60 A getA(int testInt, [String testString="default"]) { |
| 59 return new A(); | 61 return new A(); |
| 60 } | 62 } |
| OLD | NEW |