@@ -25,7 +25,7 @@ import (
25
25
const kindPrototype = "prototype"
26
26
const kindFunction = "function"
27
27
28
- //const KIND_PROTOTYPE_MODIFIERS = "prototype_modifiers"
28
+ // const KIND_PROTOTYPE_MODIFIERS = "prototype_modifiers"
29
29
30
30
const keywordTemplate = "template"
31
31
const keywordStatic = "static"
@@ -101,7 +101,7 @@ func addPrototype(tag *Tag) {
101
101
}
102
102
tag .Prototype = code + ";"
103
103
} else {
104
- //tag.Code is 99% multiline, recreate it
104
+ // tag.Code is 99% multiline, recreate it
105
105
code := findTemplateMultiline (tag )
106
106
tag .Prototype = code + ";"
107
107
}
@@ -128,7 +128,7 @@ func (p *Parser) removeDefinedProtypes() {
128
128
129
129
for _ , tag := range p .tags {
130
130
if definedPrototypes [tag .Prototype ] {
131
- //if ctx.DebugLevel >= 10 {
131
+ // if ctx.DebugLevel >= 10 {
132
132
// ctx.GetLogger().Fprintln(os.Stdout, constants.LOG_LEVEL_DEBUG, constants.MSG_SKIPPING_TAG_ALREADY_DEFINED, tag.FunctionName)
133
133
//}
134
134
tag .SkipMe = true
@@ -154,7 +154,7 @@ func (p *Parser) skipTagsWhere(skipFunc skipFuncType) {
154
154
for _ , tag := range p .tags {
155
155
if ! tag .SkipMe {
156
156
skip := skipFunc (tag )
157
- //if skip && p.debugLevel >= 10 {
157
+ // if skip && p.debugLevel >= 10 {
158
158
// ctx.GetLogger().Fprintln(os.Stdout, constants.LOG_LEVEL_DEBUG, constants.MSG_SKIPPING_TAG_WITH_REASON, tag.FunctionName, runtime.FuncForPC(reflect.ValueOf(skipFunc).Pointer()).Name())
159
159
//}
160
160
tag .SkipMe = skip
@@ -167,8 +167,8 @@ func removeTralingSemicolon(s string) string {
167
167
}
168
168
169
169
func removeSpacesAndTabs (s string ) string {
170
- s = strings .Replace (s , " " , "" , - 1 )
171
- s = strings .Replace (s , "\t " , "" , - 1 )
170
+ s = strings .ReplaceAll (s , " " , "" )
171
+ s = strings .ReplaceAll (s , "\t " , "" )
172
172
return s
173
173
}
174
174
@@ -205,7 +205,7 @@ func parseTag(row string) *Tag {
205
205
// and just cuts off the filename at the first double quote it
206
206
// sees. This means any backslashes are still escaped, and need
207
207
// to be unescape, and any quotes will just break the build.
208
- tag .Filename = strings .Replace (parts [1 ], "\\ \\ " , "\\ " , - 1 )
208
+ tag .Filename = strings .ReplaceAll (parts [1 ], "\\ \\ " , "\\ " )
209
209
210
210
parts = parts [2 :]
211
211
0 commit comments