7cd34e372c
BUG= R=efortuna@google.com Review URL: https://codereview.chromium.org//16975021 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24209 260f80e4-7a28-3924-810f-c04153c831b5
60 lines
1.1 KiB
Dart
Executable File
60 lines
1.1 KiB
Dart
Executable File
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
/**
|
|
* This library is used solely for testing during development and is not
|
|
* intended to be run by the testing machines.
|
|
*/
|
|
// TODO(tmandel): Remove this file once docgen is ready for more clear tests.
|
|
library DummyLibrary;
|
|
|
|
import 'dart:json';
|
|
import 'dart:math';
|
|
|
|
/// Doc comment for top-level variable.
|
|
int _variable1 = 0;
|
|
|
|
void set variable1(int abc) => _variable1 = abc;
|
|
|
|
abstract class B {
|
|
|
|
}
|
|
|
|
/**
|
|
* Doc comment for class A.
|
|
*/
|
|
/*
|
|
* Normal comment for class A.
|
|
*/
|
|
class A implements B {
|
|
|
|
/**
|
|
* Markdown _test_ for **class** [A]
|
|
*/
|
|
int _someNumber;
|
|
|
|
A() {
|
|
_someNumber = 12;
|
|
}
|
|
|
|
int get someNumber => _someNumber;
|
|
|
|
void doThis(int a) {
|
|
print(a);
|
|
}
|
|
|
|
int multi(int a) {
|
|
return a * _someNumber;
|
|
}
|
|
|
|
}
|
|
|
|
main() {
|
|
A a = new A();
|
|
print(a.someNumber);
|
|
}
|
|
|
|
A getA(int testInt, [String testString="default"]) {
|
|
return new A();
|
|
} |