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

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

Issue 1361163002: remove docgen remnants from repo, update CHANGELOG (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: remove unused code Created 5 years, 2 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
« no previous file with comments | « utils/apidoc/html_diff.dart ('k') | utils/apidoc/mdn/README.txt » ('j') | 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 '../../../pkg/compiler/lib/src/mirrors/source_mirrors.dart';
4 import '../../../pkg/compiler/lib/src/mirrors/mirrors_util.dart';
5
6 /// Returns the metadata for the given string or null if not found.
7 InstanceMirror findMetadata(List<InstanceMirror> metadataList, String find) {
8 return metadataList.firstWhere(
9 (metadata) {
10 if (metadata is TypeInstanceMirror) {
11 return nameOf(metadata.representedType) == find;
12 }
13 return nameOf(metadata.type) == find;
14 }, orElse: () => null);
15 }
OLDNEW
« no previous file with comments | « utils/apidoc/html_diff.dart ('k') | utils/apidoc/mdn/README.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698