class TypeChecker extends tessla.TypedTessla.IdentifierFactory with TranslationPhase[tessla.FlatTessla.Specification, tessla.TypedTessla.Specification]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TypeChecker
- TranslationPhase
- IdentifierFactory
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new TypeChecker()
Type Members
- type Env = Map[FlatTessla.Identifier, TypedTessla.Identifier]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkLiftability(functionType: TypedTessla.FunctionType): Boolean
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def declaredType(entry: FlatTessla.VariableEntry): Option[FlatTessla.Type]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error(error: TesslaError): Unit
- Definition Classes
- TranslationPhase
-
val
errors: ArrayBuffer[TesslaError]
- Definition Classes
- TranslationPhase
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- def insertInferredType(id: TypedTessla.Identifier, inferredType: TypedTessla.Type, loc: Location): Unit
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLiftableMacro(entry: FlatTessla.Expression): Boolean
- def isStreamType(typ: TypedTessla.Type): Boolean
- def liftConstant(constant: TypedTessla.Identifier, scope: TypedTessla.Scope, env: Env, loc: Location): TypedTessla.Identifier
- def liftFunctionType(functionType: TypedTessla.FunctionType): TypedTessla.FunctionType
-
def
makeIdentifier(name: String): TypedTessla.Identifier
- Definition Classes
- IdentifierFactory
-
def
makeIdentifier(): TypedTessla.Identifier
- Definition Classes
- IdentifierFactory
-
def
makeIdentifier(nameOpt: Option[String]): TypedTessla.Identifier
- Definition Classes
- IdentifierFactory
- def mkTVar(name: String): TypedTessla.TypeParameter
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def parameterTypes(mac: FlatTessla.Macro): Seq[FlatTessla.Type]
- def processTypeAnnotation(entry: FlatTessla.VariableEntry, env: Env): Unit
- def requiredEntries(scope: FlatTessla.Scope, expression: FlatTessla.Expression): Seq[FlatTessla.VariableEntry]
-
def
requiredEntries(scope: FlatTessla.Scope, entry: FlatTessla.VariableEntry): Seq[FlatTessla.VariableEntry]
Return all the entries that need to be type inferred before the current entry, i.e.
Return all the entries that need to be type inferred before the current entry, i.e. all the entries that are used by this entry and do not have an explicit type annotation.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
translate(spec: FlatTessla.Specification): Result[TypedTessla.Specification]
- Definition Classes
- TranslationPhase
- def translateEntry(entry: FlatTessla.VariableEntry, scope: TypedTessla.Scope, env: Env): TypedTessla.VariableEntry
- def translateExpression(expression: FlatTessla.Expression, declaredType: Option[TypedTessla.Type], id: Option[TypedTessla.Identifier], scope: TypedTessla.Scope, env: Env): (TypedTessla.Expression, TypedTessla.Type)
- def translateOutStream(stream: FlatTessla.OutStream, scope: TypedTessla.Scope, env: Env): TypedTessla.OutStream
- def translateScope(scope: FlatTessla.Scope, parent: Option[TypedTessla.Scope], parentEnv: Env): (TypedTessla.Scope, Env)
- def translateScopeWithParents(scope: FlatTessla.Scope): (TypedTessla.Scope, Env)
-
def
translateSpec(spec: FlatTessla.Specification): TypedTessla.Specification
- Definition Classes
- TypeChecker → TranslationPhase
- def translateType(typ: FlatTessla.Type, env: Env): TypedTessla.Type
-
def
tryWithDefault[R](default: ⇒ R)(body: ⇒ R): R
- Definition Classes
- TranslationPhase
- def typeSubst(expected: TypedTessla.Type, actual: TypedTessla.Type, typeParams: Set[TypedTessla.Identifier], substitutions: Map[TypedTessla.Identifier, TypedTessla.Type], loc: Location): TypedTessla.Type
- val typesOfBuiltIns: Map[BuiltIn, TypedTessla.Type]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
warn(loc: Location, message: String): Unit
- Definition Classes
- TranslationPhase
-
def
warn(diagnostic: Diagnostic): Unit
- Definition Classes
- TranslationPhase
-
val
warnings: ArrayBuffer[Diagnostic]
- Definition Classes
- TranslationPhase