MCPcopy
hub / github.com/gopherjs/gopherjs / newLocalVariable

Method newLocalVariable

compiler/utils.go:268–270  ·  view source on GitHub ↗

newLocalVariable assigns a new JavaScript variable name for the given Go local variable name. In this context "local" means "in scope of the current" functionContext.

(name string)

Source from the content-addressed store, hash-verified

266// local variable name. In this context "local" means "in scope of the current"
267// functionContext.
268func (fc *funcContext) newLocalVariable(name string) string {
269 return fc.newVariable(name, false)
270}
271
272// newVariable assigns a new JavaScript variable name for the given Go variable
273// or type.

Callers 12

translateStmtMethod · 0.95
translateAssignMethod · 0.95
translateResultsMethod · 0.95
expandTupleArgsMethod · 0.95
translateArgsMethod · 0.95
translateExprMethod · 0.95
translateCallMethod · 0.95
delegatedCallMethod · 0.95
translateConversionMethod · 0.95
loadStructMethod · 0.95
formatExprInternalMethod · 0.95
translateFunctionBodyMethod · 0.95

Calls 1

newVariableMethod · 0.95

Tested by

no test coverage detected