2021-10-29 03:00:30 +00:00
|
|
|
package prog8tests.ast.helpers
|
2021-07-30 15:39:43 +00:00
|
|
|
|
|
|
|
import prog8.ast.IBuiltinFunctions
|
|
|
|
import prog8.ast.base.Position
|
|
|
|
import prog8.ast.expressions.Expression
|
|
|
|
import prog8.ast.expressions.InferredTypes
|
|
|
|
import prog8.ast.expressions.NumericLiteralValue
|
2021-10-29 00:42:10 +00:00
|
|
|
import prog8.compiler.IMemSizer
|
2021-07-30 15:39:43 +00:00
|
|
|
|
|
|
|
val DummyFunctions = object : IBuiltinFunctions {
|
|
|
|
override val names: Set<String> = emptySet()
|
|
|
|
override val purefunctionNames: Set<String> = emptySet()
|
|
|
|
override fun constValue(
|
|
|
|
name: String,
|
|
|
|
args: List<Expression>,
|
|
|
|
position: Position,
|
|
|
|
memsizer: IMemSizer
|
|
|
|
): NumericLiteralValue? = null
|
|
|
|
|
|
|
|
override fun returnType(name: String, args: MutableList<Expression>) = InferredTypes.InferredType.unknown()
|
2021-10-29 00:42:10 +00:00
|
|
|
}
|