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

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: Revert use of Pattern.allMatches 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
« 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 b4bdecbc5815b264c742738de0d0e1d975e1d610..c7d784ee5e621e01aece1798875266128fcde849 100644
--- a/pkg/dartdoc/lib/dartdoc.dart
+++ b/pkg/dartdoc/lib/dartdoc.dart
@@ -1463,7 +1463,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);
}
@@ -1698,7 +1698,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++) {
« 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