Skip to content

Commit

Permalink
feat: <java> add field type support
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 9, 2020
1 parent 8c08bb8 commit e585d33
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,13 @@ open class JavaFullIdentListener(fileName: String) : JavaAstListener() {
private fun parseTargetType(target: String?): String? {
var targetType = target

val fieldType = fieldsMap[targetType]
val formalType = formalParameters[targetType]
val localVarType = localVars[targetType]

if (formalType != null && formalType != "") {
if (fieldType != null && fieldType != "") {
targetType = fieldType
} else if (formalType != null && formalType != "") {
targetType = formalType
} else if (localVarType != null && localVarType != "") {
targetType = localVarType
Expand Down

0 comments on commit e585d33

Please # to comment.