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

Side by Side Diff: pkg/docgen/lib/src/utils.dart

Issue 202193002: pkg/dartdoc: moving files around, fix library names (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixed year Created 6 years, 9 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 | « pkg/docgen/lib/src/models.dart ('k') | pkg/docgen/test/generate_json_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
3 // BSD-style license that can be found in the LICENSE file.
4
1 library docgen.utils; 5 library docgen.utils;
2 6
3 import '../../../../sdk/lib/_internal/compiler/implementation/mirrors/source_mir rors.dart'; 7 import '../../../../sdk/lib/_internal/compiler/implementation/mirrors/source_mir rors.dart';
4 import '../../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_ut il.dart' 8 import '../../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_ut il.dart'
5 as dart2js_util; 9 as dart2js_util;
6 import '../../../../sdk/lib/_internal/libraries.dart'; 10 import '../../../../sdk/lib/_internal/libraries.dart';
7 11
8 // HTML escaped version of '<' character. 12 // HTML escaped version of '<' character.
9 const LESS_THAN = '&lt;'; 13 const LESS_THAN = '&lt;';
10 14
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 98 }
95 99
96 typedef DeclarationMirror LookupFunction(DeclarationSourceMirror declaration, 100 typedef DeclarationMirror LookupFunction(DeclarationSourceMirror declaration,
97 String name); 101 String name);
98 102
99 /// For a given name, determine if we need to resolve it as a qualified name 103 /// For a given name, determine if we need to resolve it as a qualified name
100 /// or a simple name in the source mirors. 104 /// or a simple name in the source mirors.
101 LookupFunction determineLookupFunc(String name) => name.contains('.') ? 105 LookupFunction determineLookupFunc(String name) => name.contains('.') ?
102 dart2js_util.lookupQualifiedInScope : 106 dart2js_util.lookupQualifiedInScope :
103 (mirror, name) => mirror.lookupInScope(name); 107 (mirror, name) => mirror.lookupInScope(name);
OLDNEW
« no previous file with comments | « pkg/docgen/lib/src/models.dart ('k') | pkg/docgen/test/generate_json_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698