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

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

Issue 11275097: Merge SourceLocation and Source (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: RegExp used for line numbers Created 8 years, 1 month 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
Index: pkg/dartdoc/lib/dartdoc.dart
diff --git a/pkg/dartdoc/lib/dartdoc.dart b/pkg/dartdoc/lib/dartdoc.dart
index 5776958651642ee8a942041980b340d2b4fa059c..cd8e96e2fc59b89c4a8586b8be67d31d0f04917c 100644
--- a/pkg/dartdoc/lib/dartdoc.dart
+++ b/pkg/dartdoc/lib/dartdoc.dart
@@ -1454,7 +1454,7 @@ class Dartdoc {
/** Get the doc comment associated with the given library. */
DocComment getLibraryComment(LibraryMirror library) {
// Look for a comment for the entire library.
- final comment = _comments.findLibrary(library.location.source);
+ final comment = _comments.findLibrary(library.location);
if (comment == null) return null;
return createDocComment(comment);
}
@@ -1689,7 +1689,7 @@ class Dartdoc {
* Remove leading indentation to line up with first line.
*/
unindentCode(SourceLocation span) {
- final column = getLocationColumn(span);
+ final column = span.column;
final lines = span.text.split('\n');
// TODO(rnystrom): Dirty hack.
for (var i = 1; i < lines.length; i++) {

Powered by Google App Engine
This is Rietveld 408576698