未验证 提交 4a1ab07b 编写于 作者: P Phodal Huang

refactoring: rename for loop var

上级 5c951a2d
package identifier
import (
"github.com/antlr/antlr4/runtime/Go/antlr"
"github.com/phodal/coca/core/models"
"github.com/phodal/coca/core/support"
"github.com/antlr/antlr4/runtime/Go/antlr"
)
var nodeInfos []models.JIdentifier = nil
......@@ -18,9 +18,8 @@ func NewJavaIdentifierApp() JavaIdentifierApp {
func (j *JavaIdentifierApp) AnalysisPath(codeDir string) []models.JIdentifier {
nodeInfos = nil
files := support.GetJavaFiles(codeDir)
for index := range files {
file := files[index]
for _, file := range files {
parser := support.ProcessFile(file)
context := parser.CompilationUnit()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册