mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
ast: move gay.pizza.pork.ast to gay.pizza.pork.ast.gen
This commit is contained in:
@ -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")
|
||||
|
@ -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"
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user