| OLD | NEW |
| 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 = '<'; | 13 const LESS_THAN = '<'; |
| 10 | 14 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); |
| OLD | NEW |