public static interface TypeInferer.Environment
x is declared to have type int|null. Then, in a
specific context we may have x is int and, in which case, we
can refine the known type for x accodingly.| Modifier and Type | Method and Description |
|---|---|
Set<WyalFile.VariableDeclaration> |
getRefinedVariables() |
WyalFile.Type |
getType(WyalFile.VariableDeclaration var)
Return the current type associated with a given variable.
|
TypeInferer.Environment |
refineType(WyalFile.VariableDeclaration var,
WyalFile.Type type)
Refine the type associated with a given variable declaration in this
environment, which produces a completely new environment containing
the refined type.
|
WyalFile.Type getType(WyalFile.VariableDeclaration var)
var - TypeInferer.Environment refineType(WyalFile.VariableDeclaration var, WyalFile.Type type)
var - type - Set<WyalFile.VariableDeclaration> getRefinedVariables()
Copyright © 2017. All rights reserved.