Merges declarations produced by c.EndVariableEnvironment() or c.EndLexicalEnvironment() into a slice of statements
(statements []*ast.Statement, declarations []*ast.Statement)
| 253 | |
| 254 | // Merges declarations produced by c.EndVariableEnvironment() or c.EndLexicalEnvironment() into a slice of statements |
| 255 | func (c *EmitContext) MergeEnvironment(statements []*ast.Statement, declarations []*ast.Statement) []*ast.Statement { |
| 256 | result, _ := c.mergeEnvironment(statements, declarations) |
| 257 | return result |
| 258 | } |
| 259 | |
| 260 | func (c *EmitContext) mergeEnvironment(statements []*ast.Statement, declarations []*ast.Statement) ([]*ast.Statement, bool) { |
| 261 | if len(declarations) == 0 { |
no test coverage detected