refactor: move requires in place where they used (#22)

* refactor(comment): move require to a function

* refactor(gotests): move requires inside of functions

* refactor(health): move requires inside of function

* refactor(iferr): move requires inside of a function

* refactor(impl): move some requires inside of functions

* refactor(installer): move requires inside of function

* refactor(struct_tags): move requires into function

* refactor(dap): move import into function

* refactor(utils): move import into functions
This commit is contained in:
Smirnov Oleksandr 2022-12-19 11:47:43 +02:00 committed by GitHub
parent e8fe6c5b15
commit 2f0edbfdfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 43 additions and 34 deletions

View file

@ -1,6 +1,5 @@
local ts_utils = require "gopher._utils.ts"
local function generate(row, col)
local ts_utils = require "gopher._utils.ts"
local comment, ns = nil, nil
ns = ts_utils.get_package_node_at_pos(row, col, nil, false)