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

Unified Diff: runtime/vm/object.cc

Issue 12517005: Add a command line option to generate source code for a script (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
« runtime/vm/object.h ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 19934)
+++ runtime/vm/object.cc (working copy)
@@ -5330,14 +5330,19 @@
RawString* Script::Source() const {
String& source = String::Handle(raw_ptr()->source_);
if (source.IsNull()) {
- const TokenStream& token_stream = TokenStream::Handle(tokens());
- return token_stream.GenerateSource();
+ return GenerateSource();
bakster 2013/03/14 08:42:16 Why do you have an else part after return? if (so
siva 2013/03/14 09:38:46 Done.
} else {
return raw_ptr()->source_;
}
}
+RawString* Script::GenerateSource() const {
+ const TokenStream& token_stream = TokenStream::Handle(tokens());
+ return token_stream.GenerateSource();
+}
+
+
void Script::set_url(const String& value) const {
StorePointer(&raw_ptr()->url_, value.raw());
}
« runtime/vm/object.h ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698