public interface TypeInferer
x+1. In an environment where x has type
int a reasonable type to infer would be int.
However, that is not the only possible type. For example, a very coarse
approximation would be any.| Modifier and Type | Interface and Description |
|---|---|
static interface |
TypeInferer.Environment
The typing environment determines the current type for all variables at a
given point.
|
| Modifier and Type | Method and Description |
|---|---|
WyalFile.Type |
getInferredType(TypeInferer.Environment environment,
WyalFile.Expr expression)
Get the type inferred for a given expression in a given environment.
|
WyalFile.Type getInferredType(TypeInferer.Environment environment, WyalFile.Expr expression) throws wybs.lang.NameResolver.ResolutionError
environment - Environment to be used when resolving the type of a variableexpression - The expression whose type is to be infered.wybs.lang.NameResolver.ResolutionError - Occurs when a particular named type cannot be resolved.Copyright © 2017. All rights reserved.