lu4p
|
234174b418
|
don't obfuscate some literals which might break typechecking
|
4 years ago |
Daniel Martí
|
5604a2aa9e
|
avoid importing fmt in strings test
Reduces its 'go test -short' time from ~3s to ~2.4s on my laptop, since
we have to compile fewer dependencies.
|
4 years ago |
Daniel Martí
|
a09b197fe2
|
remove the code to handle a nil file.Imports
I could not reproduce the supposed panic, even after I was able to reach
a nil x.Imports in that line in question with the modified test.
|
4 years ago |
lu4p
|
dd1fc4ed87
|
don't replace all consts with vars
In some cases, such as iotas or when constants are later required to be constants,
we could break compilation. Be more conservative.
Fixes #32.
|
4 years ago |
lu4p
|
077d02d43a
|
add basic literal obfuscation, starting with strings
Fixes #16.
|
4 years ago |