Removed some cruft from ApiDoc.

Review URL: https://codereview.chromium.org//12208017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18151 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
amouravski@google.com 2013-02-05 19:00:21 +00:00
parent 8a4e4cbadc
commit cd51673fce
7 changed files with 11 additions and 28 deletions

View file

@ -1465,9 +1465,6 @@ class Dartdoc {
}
}
DocComment createDocComment(String text, [ClassMirror inheritedFrom]) =>
new DocComment(text, inheritedFrom);
/** Get the doc comment associated with the given library. */
DocComment getLibraryComment(LibraryMirror library) => getComment(library);
@ -1511,7 +1508,7 @@ class Dartdoc {
}
}
if (comment == null) return null;
return createDocComment(comment, inheritedFrom);
return new DocComment(comment, inheritedFrom);
}
/**

View file

@ -7104,7 +7104,7 @@ class DomError native "*DOMError" {
// BSD-style license that can be found in the LICENSE file.
/// @domName DOMException
@DomName('DOMException')
class DomException native "*DOMException" {
static const String INDEX_SIZE = 'IndexSizeError';
@ -16202,8 +16202,7 @@ class MediaSource extends EventTarget native "*MediaSource" {
// BSD-style license that can be found in the LICENSE file.
/// @domName MediaStream; @docsEditable true@DomName('MediaStream')
@DomName('MediaStream')
class MediaStream extends EventTarget native "*MediaStream" {
@DomName('MediaStream.endedEvent')

View file

@ -7853,7 +7853,7 @@ class DomError extends NativeFieldWrapperClass1 {
// BSD-style license that can be found in the LICENSE file.
/// @domName DOMException
@DomName('DOMException')
class DomException extends NativeFieldWrapperClass1 {
static const String INDEX_SIZE = 'IndexSizeError';
@ -17795,8 +17795,7 @@ class MediaSource extends EventTarget {
// BSD-style license that can be found in the LICENSE file.
/// @domName MediaStream; @docsEditable true@DomName('MediaStream')
@DomName('MediaStream')
class MediaStream extends EventTarget {
MediaStream.internal() : super.internal();

View file

@ -4,8 +4,7 @@
part of $LIBRARYNAME;
/// @domName $DOMNAME
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
static const String INDEX_SIZE = 'IndexSizeError';
static const String HIERARCHY_REQUEST = 'HierarchyRequestError';

View file

@ -4,8 +4,7 @@
part of $LIBRARYNAME;
/// @domName $DOMNAME; @docsEditable true$ANNOTATIONS
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
$!MEMBERS
/**

View file

@ -258,16 +258,6 @@ class Apidoc extends doc.Dartdoc {
super.docLibrary(library);
}
/** Override definition from parent class to strip out annotation tags. */
doc.DocComment createDocComment(String text,
[ClassMirror inheritedFrom]) {
String strippedText =
text.replaceAll(new RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)"),
'').trim();
if (strippedText.isEmpty) return null;
return super.createDocComment(strippedText, inheritedFrom);
}
doc.DocComment getLibraryComment(LibraryMirror library) {
return super.getLibraryComment(library);
}

View file

@ -156,8 +156,8 @@ class HtmlDiff {
final domNameMetadata = findMetadata(htmlType.metadata, 'DomName');
if (domNameMetadata != null) {
var domNames = <String>[];
var tags = deprecatedFutureValue(domNameMetadata.getField('name'));
for (var s in tags.reflectee.split(',')) {
var names = deprecatedFutureValue(domNameMetadata.getField('name'));
for (var s in names.reflectee.split(',')) {
domNames.add(s.trim());
}
@ -180,8 +180,8 @@ class HtmlDiff {
final domNameMetadata = findMetadata(htmlMember.metadata, 'DomName');
if (domNameMetadata != null) {
var domNames = <String>[];
var tags = deprecatedFutureValue(domNameMetadata.getField('name'));
for (var s in tags.reflectee.split(',')) {
var names = deprecatedFutureValue(domNameMetadata.getField('name'));
for (var s in names.reflectee.split(',')) {
domNames.add(s.trim());
}