ast: move gay.pizza.pork.ast to gay.pizza.pork.ast.gen

This commit is contained in:
2023-10-06 15:39:13 -07:00
parent d36310e698
commit 945ba85c98
83 changed files with 102 additions and 115 deletions

View File

@ -19,10 +19,10 @@ open class GenerateStandardAstCode : DefaultTask() {
var astDescriptionFile: File = project.file("src/main/ast/pork.yml")
@get:Input
var codePackage: String = "gay.pizza.pork.ast"
var codePackage: String = "gay.pizza.pork.ast.gen"
@get:OutputDirectory
var outputDirectory: File = project.file("src/main/kotlin/gay/pizza/pork/ast")
var outputDirectory: File = project.file("src/main/kotlin/gay/pizza/pork/ast/gen")
@get:OutputFile
var typeGraphFile: File = project.file("src/main/graph/types.dot")

View File

@ -112,7 +112,7 @@ class AstPorkIdeaCodegen(pkg: String, outputDirectory: Path, world: AstWorld) :
if (type.referencedElementValue != null && type.referencedElementType != null) {
kotlinClass.imports.add(0, "com.intellij.psi.PsiReference")
kotlinClass.imports.add("gay.pizza.pork.ast.NodeType")
kotlinClass.imports.add("gay.pizza.pork.ast.gen.NodeType")
val getReferenceFunction = KotlinFunction(
"getReference",
@ -157,7 +157,7 @@ class AstPorkIdeaCodegen(pkg: String, outputDirectory: Path, world: AstWorld) :
"com.intellij.extapi.psi.ASTWrapperPsiElement",
"com.intellij.lang.ASTNode",
"com.intellij.psi.PsiElement",
"gay.pizza.pork.ast.NodeType",
"gay.pizza.pork.ast.gen.NodeType",
"gay.pizza.pork.idea.PorkElementTypes"
)
)