Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Phodal
Coca
提交
b9b3f5e0
C
Coca
项目概览
Phodal
/
Coca
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Coca
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
b9b3f5e0
编写于
1月 08, 2020
作者:
P
Phodal Huang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: rename process java
上级
df11494a
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
9 addition
and
9 deletion
+9
-9
core/adapter/cocafile/file_analysis_helper.go
core/adapter/cocafile/file_analysis_helper.go
+2
-2
core/adapter/cocafile/file_analysis_helper_test.go
core/adapter/cocafile/file_analysis_helper_test.go
+1
-1
core/context/analysis/java_full_app.go
core/context/analysis/java_full_app.go
+1
-1
core/context/analysis/java_identifier_app.go
core/context/analysis/java_identifier_app.go
+1
-1
core/context/api/java_api_app.go
core/context/api/java_api_app.go
+1
-1
core/context/bs/bad_smell_app.go
core/context/bs/bad_smell_app.go
+1
-1
core/context/refactor/move_class/move_class_app.go
core/context/refactor/move_class/move_class_app.go
+1
-1
core/context/refactor/unused/remove_unused_import.go
core/context/refactor/unused/remove_unused_import.go
+1
-1
未找到文件。
core/adapter/cocafile/file_analysis_helper.go
浏览文件 @
b9b3f5e0
...
...
@@ -50,7 +50,7 @@ func GetJavaTestFiles(codeDir string) []string {
return
GetFilesWithFilter
(
codeDir
,
JavaTestFileFilter
)
}
func
ProcessFile
(
path
string
)
*
JavaParser
{
func
Process
Java
File
(
path
string
)
*
JavaParser
{
is
,
_
:=
antlr
.
NewFileStream
(
path
)
lexer
:=
NewJavaLexer
(
is
)
stream
:=
antlr
.
NewCommonTokenStream
(
lexer
,
0
)
...
...
@@ -58,7 +58,7 @@ func ProcessFile(path string) *JavaParser {
return
parser
}
func
ProcessString
(
code
string
)
*
JavaParser
{
func
Process
Java
String
(
code
string
)
*
JavaParser
{
is
:=
antlr
.
NewInputStream
(
code
)
lexer
:=
NewJavaLexer
(
is
)
stream
:=
antlr
.
NewCommonTokenStream
(
lexer
,
0
)
...
...
core/adapter/cocafile/file_analysis_helper_test.go
浏览文件 @
b9b3f5e0
...
...
@@ -9,7 +9,7 @@ import (
func
TestJavaCallApp_ProcessStringWorks
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
parser
:=
ProcessString
(
`
parser
:=
Process
Java
String
(
`
package com.phodal.coca.analysis.identifier.model;
public class DataClass {
...
...
core/context/analysis/java_full_app.go
浏览文件 @
b9b3f5e0
...
...
@@ -33,7 +33,7 @@ func (j *JavaFullApp) AnalysisFiles(identNodes []domain.JIdentifier, files []str
displayName
:=
filepath
.
Base
(
file
)
fmt
.
Println
(
"Refactoring parse java call: "
+
displayName
)
parser
:=
cocafile
.
ProcessFile
(
file
)
parser
:=
cocafile
.
Process
Java
File
(
file
)
context
:=
parser
.
CompilationUnit
()
listener
:=
full
.
NewJavaFullListener
(
identMap
,
file
)
...
...
core/context/analysis/java_identifier_app.go
浏览文件 @
b9b3f5e0
...
...
@@ -24,7 +24,7 @@ func (j *JavaIdentifierApp) AnalysisFiles(files []string) []domain.JIdentifier {
var
nodeInfos
[]
domain
.
JIdentifier
=
nil
for
_
,
file
:=
range
files
{
parser
:=
cocafile
.
ProcessFile
(
file
)
parser
:=
cocafile
.
Process
Java
File
(
file
)
context
:=
parser
.
CompilationUnit
()
listener
:=
identifier
.
NewJavaIdentifierListener
()
...
...
core/context/api/java_api_app.go
浏览文件 @
b9b3f5e0
...
...
@@ -23,7 +23,7 @@ func (j *JavaApiApp) AnalysisPath(codeDir string, parsedDeps []domain.JClassNode
displayName
:=
filepath
.
Base
(
file
)
fmt
.
Println
(
"Refactoring parse java call: "
+
displayName
)
parser
:=
cocafile
.
ProcessFile
(
file
)
parser
:=
cocafile
.
Process
Java
File
(
file
)
context
:=
parser
.
CompilationUnit
()
listener
:=
api
.
NewJavaApiListener
(
identifiersMap
,
diMap
)
...
...
core/context/bs/bad_smell_app.go
浏览文件 @
b9b3f5e0
...
...
@@ -28,7 +28,7 @@ func (j *BadSmellApp) AnalysisPath(codeDir string) *[]bs_domain.BsJClass {
displayName
:=
filepath
.
Base
(
file
)
fmt
.
Println
(
"Refactoring parse java call: "
+
displayName
)
parser
:=
cocafile
.
ProcessFile
(
file
)
parser
:=
cocafile
.
Process
Java
File
(
file
)
context
:=
parser
.
CompilationUnit
()
listener
:=
bs
.
NewBadSmellListener
()
...
...
core/context/refactor/move_class/move_class_app.go
浏览文件 @
b9b3f5e0
...
...
@@ -40,7 +40,7 @@ func (j *MoveClassApp) Analysis() []models2.JMoveStruct {
currentFile
,
_
=
filepath
.
Abs
(
file
)
parser
:=
cocafile
.
ProcessFile
(
file
)
parser
:=
cocafile
.
Process
Java
File
(
file
)
context
:=
parser
.
CompilationUnit
()
node
:=
models2
.
NewJFullIdentifier
()
...
...
core/context/refactor/unused/remove_unused_import.go
浏览文件 @
b9b3f5e0
...
...
@@ -35,7 +35,7 @@ func (j *RemoveUnusedImportApp) Analysis() []models2.JFullIdentifier {
displayName
:=
filepath
.
Base
(
file
)
fmt
.
Println
(
"Refactoring parse java call: "
+
displayName
)
parser
:=
cocafile
.
ProcessFile
(
file
)
parser
:=
cocafile
.
Process
Java
File
(
file
)
context
:=
parser
.
CompilationUnit
()
node
:=
models2
.
NewJFullIdentifier
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录