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

Side by Side Diff: pkg/docgen/lib/src/models/library.dart

Issue 929353004: Handle mutually recursive re-exports in dartdocgen (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 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 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 library docgen.models.library; 5 library docgen.models.library;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:markdown/markdown.dart' as markdown; 9 import 'package:markdown/markdown.dart' as markdown;
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 /// created, else creates it. 46 /// created, else creates it.
47 factory Library(LibraryMirror mirror) { 47 factory Library(LibraryMirror mirror) {
48 var library = getDocgenObject(mirror); 48 var library = getDocgenObject(mirror);
49 if (library is DummyMirror) { 49 if (library is DummyMirror) {
50 library = new Library._(mirror); 50 library = new Library._(mirror);
51 } 51 }
52 return library; 52 return library;
53 } 53 }
54 54
55 Library._(LibraryMirror libraryMirror) : super(libraryMirror) { 55 Library._(LibraryMirror libraryMirror) : super(libraryMirror) {
56 var exported = calcExportedItems(libraryMirror); 56 var exported = calcExportedItems(libraryMirror, {});
57 var exportedClasses = addAll(exported['classes'], 57 var exportedClasses = addAll(exported['classes'],
58 dart2js_util.typesOf(libraryMirror.declarations)); 58 dart2js_util.typesOf(libraryMirror.declarations));
59 updateLibraryPackage(mirror); 59 updateLibraryPackage(mirror);
60 exportedClasses.forEach((String mirrorName, TypeMirror mirror) { 60 exportedClasses.forEach((String mirrorName, TypeMirror mirror) {
61 if (mirror is TypedefMirror) { 61 if (mirror is TypedefMirror) {
62 // This is actually a Dart2jsTypedefMirror, and it does define value, 62 // This is actually a Dart2jsTypedefMirror, and it does define value,
63 // but we don't have visibility to that type. 63 // but we don't have visibility to that type.
64 if (includePrivateMembers || !mirror.isPrivate) { 64 if (includePrivateMembers || !mirror.isPrivate) {
65 typedefs[dart2js_util.nameOf(mirror)] = new Typedef(mirror, this); 65 typedefs[dart2js_util.nameOf(mirror)] = new Typedef(mirror, this);
66 } 66 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 bool get isPrivate => false; 183 bool get isPrivate => false;
184 184
185 Indexable get owner => null; 185 Indexable get owner => null;
186 186
187 // This is a known incomplete implementation of Indexable 187 // This is a known incomplete implementation of Indexable
188 // overriding noSuchMethod to remove static warnings 188 // overriding noSuchMethod to remove static warnings
189 noSuchMethod(Invocation invocation) { 189 noSuchMethod(Invocation invocation) {
190 throw new UnimplementedError(invocation.memberName.toString()); 190 throw new UnimplementedError(invocation.memberName.toString());
191 } 191 }
192 } 192 }
OLDNEW
« no previous file with comments | « no previous file | pkg/docgen/lib/src/models/model_helpers.dart » ('j') | pkg/docgen/lib/src/models/model_helpers.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698