public override int?VisitConstantReferenceExpression(ConstantReferenceExpression constantReferenceExpression) { if (Keywords.IsBuiltInConstant(constantReferenceExpression.Constant.ConstantName)) { switch (constantReferenceExpression.Constant.ConstantName) { case "?": return(null); default: throw new NotImplementedException(); } } else { throw new NotImplementedException(); } }
public override void VisitConstantReferenceExpression(ConstantReferenceExpression constantReferenceExpression) { if (Keywords.IsBuiltInConstant(constantReferenceExpression.Constant.ConstantName)) { switch (constantReferenceExpression.Constant.ConstantName) { case Keywords.Self: expressionTypes_.Add(constantReferenceExpression, selfType_); break; case "?": expressionTypes_.Add(constantReferenceExpression, null); break; default: throw new NotImplementedException(constantReferenceExpression.Constant.ConstantName); } } }
public virtual void VisitConstantReferenceExpression(ConstantReferenceExpression constantReferenceExpression) { DefaultVisit(constantReferenceExpression); }