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

Unified Diff: pkg/dartdoc/lib/dartdoc.dart

Issue 11345026: Move location to DeclarationMirror (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/dartdoc/lib/mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/dartdoc.dart
diff --git a/pkg/dartdoc/lib/dartdoc.dart b/pkg/dartdoc/lib/dartdoc.dart
index 04b091d9f1190fbedb3c5af988857d04c8130ad0..0128d618555602b88a8e1354da212a65b53152e3 100644
--- a/pkg/dartdoc/lib/dartdoc.dart
+++ b/pkg/dartdoc/lib/dartdoc.dart
@@ -1439,7 +1439,7 @@ class Dartdoc {
/**
* Documents the source code contained within [location].
*/
- void docCode(Location location) {
+ void docCode(SourceLocation location) {
if (includeSource) {
writeln('<pre class="source">');
writeln(md.escapeHtml(unindentCode(location)));
@@ -1688,7 +1688,7 @@ class Dartdoc {
/**
* Remove leading indentation to line up with first line.
*/
- unindentCode(Location span) {
+ unindentCode(SourceLocation span) {
final column = getLocationColumn(span);
final lines = span.text.split('\n');
// TODO(rnystrom): Dirty hack.
@@ -1703,7 +1703,7 @@ class Dartdoc {
/**
* Takes a string of Dart code and turns it into sanitized HTML.
*/
- formatCode(Location span) {
+ formatCode(SourceLocation span) {
final code = unindentCode(span);
// Syntax highlight.
« no previous file with comments | « no previous file | pkg/dartdoc/lib/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698