-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Scala Empty with Java Empty annotated with @IRNode
- Loading branch information
Showing
2 changed files
with
27 additions
and
89 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
engine/runtime-parser/src/main/java/org/enso/compiler/core/ir/Empty.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.enso.compiler.core.ir; | ||
|
||
import java.util.UUID; | ||
import org.enso.compiler.core.IR; | ||
import org.enso.runtime.parser.dsl.IRCopyMethod; | ||
import org.enso.runtime.parser.dsl.IRNode; | ||
|
||
@IRNode | ||
public interface Empty extends IR { | ||
static Empty createEmpty() { | ||
return EmptyGen.builder().build(); | ||
} | ||
|
||
static Empty createFromLocation(IdentifiedLocation location) { | ||
return EmptyGen.builder().location(location).build(); | ||
} | ||
|
||
static Empty createFromLocationAndPassData(IdentifiedLocation location, MetadataStorage passData) { | ||
return EmptyGen.builder() | ||
.location(location) | ||
.passData(passData) | ||
.build(); | ||
} | ||
|
||
@IRCopyMethod | ||
Empty copy(IdentifiedLocation location, MetadataStorage passData, DiagnosticStorage diagnostics, UUID id); | ||
} |
89 changes: 0 additions & 89 deletions
89
engine/runtime-parser/src/main/scala/org/enso/compiler/core/ir/Empty.scala
This file was deleted.
Oops, something went wrong.