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

Issue 12605009: Fix source generation for strings that have \$ in them. (Closed)

Created:
7 years, 9 months ago by siva
Modified:
7 years, 9 months ago
Reviewers:
bakster, Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix source generation for strings that have \$ in them. Committed: https://code.google.com/p/dart/source/detail?r=20025

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -11 lines) Patch
M runtime/bin/main.cc View 1 chunk +11 lines, -11 lines 0 comments Download
M runtime/vm/object.cc View 3 chunks +8 lines, -0 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
siva
7 years, 9 months ago (2013-03-14 13:30:07 UTC) #1
bakster
lgtm
7 years, 9 months ago (2013-03-14 13:45:04 UTC) #2
siva
Committed patchset #1 manually as r20025 (presubmit successful).
7 years, 9 months ago (2013-03-14 14:12:40 UTC) #3
Ivan Posva
Needs more work. -Ivan https://chromiumcodereview.appspot.com/12605009/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/12605009/diff/1/runtime/vm/object.cc#newcode4857 runtime/vm/object.cc:4857: if ((literal.CharAt(i) == '$')) { ...
7 years, 9 months ago (2013-03-18 18:12:22 UTC) #4
siva
7 years, 9 months ago (2013-03-19 17:08:31 UTC) #5
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12605009/diff/1/runtime/vm/object.cc
File runtime/vm/object.cc (right):

https://chromiumcodereview.appspot.com/12605009/diff/1/runtime/vm/object.cc#n...
runtime/vm/object.cc:4857: if ((literal.CharAt(i) == '$')) {
The raw string processing was interfering with treating this as a Special
character. I have a CL uploaded that always translates raw strings to regular
strings and does not attempt to preserve raw strings as is in the generated
code.

That should avoid this problem.

On 2013/03/18 18:12:22, Ivan Posva wrote:
> $ should be a SpecialCharacter and then you would not need this extra handling
> here and in other places. Also as it is now if fails to properly escape $ in
two
> byte strings.

Powered by Google App Engine
This is Rietveld 408576698