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

Unified Diff: runtime/vm/object.h

Issue 1071703002: Remove some duplication in code that extracts the source for a function. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 12fc18d330ac0e76cb5a751d42bbbf876d6a0d20..58590858a74526bde3a9123e4479cfe90364cf6f 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1709,7 +1709,7 @@ class Function : public Object {
RawString* QualifiedUserVisibleName() const;
virtual RawString* DictionaryName() const { return name(); }
- RawString* GetSource();
+ RawString* GetSource() const;
// Build a string of the form 'C<T, R>(T, {b: B, c: C}) => R' representing the
// internal signature of the given function. In this example, T and R are
@@ -2790,8 +2790,6 @@ class Script : public Object {
RawLibrary* FindLibrary() const;
RawString* GetLine(intptr_t line_number) const;
- RawString* GetSnippet(intptr_t from_token_pos,
- intptr_t to_token_pos) const;
RawString* GetSnippet(intptr_t from_line,
intptr_t from_column,
intptr_t to_line,

Powered by Google App Engine
This is Rietveld 408576698