Skip to content

Commit

Permalink
fix(ts): fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 15, 2022
1 parent fa9e70a commit 72ad42a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ class TypeScriptFullIdentListener(node: TSIdentify) : TypeScriptAstListener() {
}
}
else -> {
println("parseStmt childType -> :$childType")
// println("parseStmt childType -> :$childType")
}
}
}
Expand Down Expand Up @@ -677,7 +677,7 @@ class TypeScriptFullIdentListener(node: TSIdentify) : TypeScriptAstListener() {
// todo: add other case for call chain in arrow function
if (argText.contains(").")) {
val args = parseArguments(argument)
println("argText with )." + Json.encodeToString(args))
// println("argText with )." + Json.encodeToString(args))
}

// axios.get() or _.orderBy()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,14 @@ class TypeScriptAnalyserTest {
}

@Test
@Disabled
// @Disabled
fun someBug() {
val dir = File("/Users/phodal/bug-ui-system")
dir.walkTopDown().forEach {
if (it.extension == "ts" || it.extension == "js") {
val content = it.readText()
println(it.absolutePath)
val codeFile = TypeScriptAnalyser().analysis(content, it.name)
println(codeFile)
}
}
}
Expand Down

0 comments on commit 72ad42a

Please sign in to comment.