Esempio n. 1
0
        internal ITypeUnificationResult GetTypeUnificationResult(Terminal terminal, TypeVariableReference terminalTypeVariable, TypeVariableReference unifyWith)
        {
            TerminalUnificationResult unificationResult;

            if (!_unificationResults.TryGetValue(terminal, out unificationResult))
            {
                _unificationResults[terminal] = unificationResult = new TerminalUnificationResult(terminalTypeVariable, unifyWith);
            }
            return(new TerminalTypeUnificationResult(unificationResult));
        }
Esempio n. 2
0
 public TerminalTypeUnificationResult(TerminalUnificationResult unificationResult)
 {
     _unificationResult = unificationResult;
 }