OLD | NEW |
| (Empty) |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
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. | |
4 | |
5 library library.name.wiith.dots.init; | |
6 | |
7 /// This library is purely for testing purposes, to ensure | |
8 /// that we have a library that has dots in its name and | |
9 /// that it works properly | |
10 /// | |
11 /// In addition, it's nice to have something which has paragraph | |
12 /// breaks inside a triple-slash doc comment. | |
13 /// | |
14 /// Like this. | |
15 | |
16 /// This is a top level field holding the number three; | |
17 int topLevelInt = 3; | |
18 | |
19 /// This is a class with various ways of getting the number three. | |
20 /// | |
21 /// It also has a comment with paragraph breaks. | |
22 class SomeClass { | |
23 /// This is a method that returns the number three. See | |
24 /// [three] | |
25 someMethod() => 3; | |
26 | |
27 /// This is a symbolic representation of the number three. | |
28 int three = 3; | |
29 } | |
30 | |
31 /// This is another class. | |
32 class AnotherClass { | |
33 /// This method returns [List<int>] containing the number | |
34 /// three three times. Compare with [SomeClass.someMethod]. | |
35 List<int> anotherMethod() { | |
36 return const [3, 3, 3]; | |
37 } | |
38 } | |
OLD | NEW |