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

Unified Diff: pkg/docgen/example/test.dart

Issue 16975021: "Reverting 24208" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/docgen/bin/docgen.dart ('k') | pkg/docgen/lib/docgen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/example/test.dart
diff --git a/pkg/docgen/example/test.dart b/pkg/docgen/example/test.dart
new file mode 100755
index 0000000000000000000000000000000000000000..d93b63ff75ba99495ee83e4801ae63f174032dd8
--- /dev/null
+++ b/pkg/docgen/example/test.dart
@@ -0,0 +1,60 @@
+// 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();
+}
« no previous file with comments | « pkg/docgen/bin/docgen.dart ('k') | pkg/docgen/lib/docgen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698