Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion console/src/main/scala/io/joern/console/Console.scala
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ class Console[T <: Project](loader: WorkspaceLoader[T], baseDir: Path = FileUtil
}

def applyPostProcessingPasses(cpg: Cpg): Cpg = {
new io.joern.console.cpgcreation.CpgGeneratorFactory(_config).forLanguage(cpg.metaData.language.l.head) match {
new io.joern.console.cpgcreation.CpgGeneratorFactory(_config).forLanguage(cpg.metaData.language.head) match {
case Some(frontend) => frontend.applyPostProcessingPasses(cpg)
case None => cpg
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class ImportCode[T <: Project](console: io.joern.console.Console[T])(implicit
report("""|Code successfully imported. You can now query it using `cpg`.
|For an overview of all imported code, type `workspace`.""".stripMargin)
console.applyDefaultOverlays(cpg)
generator.applyPostProcessingPasses(cpg)
console.applyPostProcessingPasses(cpg)
}
.getOrElse(throw new ConsoleException(s"Error creating project for input path: `$inputPath`"))
}
Expand Down
Loading