public NameExpression(
     TextSpan span,
     DataType dataType,
     ExpressionSemantics semantics,
     NamedBindingSymbol referencedSymbol)
     : base(span, dataType, semantics)
 {
     ReferencedSymbol = referencedSymbol;
 }
Example #2
0
        private static void SetLiveness(
            NamedBindingSymbol symbol,
            Promise <bool> promise,
            VariableFlags liveVariables)
        {
            var isLiveAfter = liveVariables[symbol]
                              ?? throw new Exception($"No liveness data for variable {symbol}");

            promise.Fulfill(isLiveAfter);
        }