161}
162
163▶func parseRemapRules(value string) []remapRule {
164 rules := []remapRule{}
165
· · ·
177}
178
179▶func newRemapConfig(remapAll string, remapUnknown string) remapConfig {
180 return remapConfig{
181 all: parseRemapRules(remapAll),
· · ·
312// ConfigureGc needs to be set outside of ProcessConstants because it should only be enabled in command line
313// mode https://github.com/boyter/scc/issues/32
314▶func ConfigureGc() {
315 gcPercent = debug.SetGCPercent(gcPercent)
316}
· · ·
317
318// ConfigureLazy is a simple setter used to turn on lazy loading used only by command line
319▶func ConfigureLazy(lazy bool) {
320 isLazy = lazy
321}
· · ·
323// ProcessConstants is responsible for setting up the language features based on the JSON file that is stored in constants
324// Needs to be called at least once in order for anything to actually happen
325▶func ProcessConstants() {
326 startTime := makeTimestampNano()
327 for name, value := range languageDatabase {
+ 12 more matches in this file