projects
/
fur
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cecb7b
)
Remove unecessary pushing/popping for string literals
author
David Kerkeslager
<kerkeslager@gmail.com>
Wed, 24 Jul 2019 16:56:26 +0000
(12:56 -0400)
committer
David Kerkeslager
<kerkeslager@gmail.com>
Wed, 24 Jul 2019 16:56:26 +0000
(12:56 -0400)
normalization.py
patch
|
blob
|
history
diff --git
a/normalization.py
b/normalization.py
index
f6c4246
..
291646a
100644
(file)
--- a/
normalization.py
+++ b/
normalization.py
@@
-207,16
+207,10
@@
def normalize_list_literal_expression(counter, expression):
)
def normalize_string_literal_expression(counter, expression):
- variable = '${}'.format(counter)
return (
- counter + 1,
- (
- NormalVariableInitializationStatement(
- variable=variable,
- expression=NormalStringLiteralExpression(string=expression.string),
- ),
- ),
- NormalVariableExpression(variable=variable),
+ counter,
+ (),
+ NormalStringLiteralExpression(string=expression.string),
)
NormalStructureLiteralExpression = collections.namedtuple(