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

Side by Side Diff: utils/apidoc/lib/metadata.dart

Issue 12035057: First half of the new HTML json docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed unneeded file. Created 7 years, 11 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
« no previous file with comments | « utils/apidoc/html_diff.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 library metadata;
2
3 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart' ;
4
5 /// Returns the metadata for the given string or null if not found.
6 InstanceMirror findMetadata(List<InstanceMirror> metadataList, String find) {
7 return metadataList.firstMatching(
8 (metadata) {
9 if (metadata is TypeInstanceMirror) {
10 return metadata.representedType.simpleName == find;
11 }
12 return metadata.type.simpleName == find;
13 }, orElse: () => null);
14 }
OLDNEW
« no previous file with comments | « utils/apidoc/html_diff.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698