Exemple #1
0
        public override ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
        {
            Identifier identifier = Identifier.CreateVerbatim(expression.Constant.Name);

            _writer.WriteIdentifier(identifier);
            return(expression);
        }
Exemple #2
0
        public override ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
        {
            _xmlWriter.WriteStartElement("namedConstantExpression");
            _xmlWriter.WriteAttributeString("constant", expression.Constant.Name);
            WriteTypeAttribute(expression.ExpressionType);
            _xmlWriter.WriteEndElement();

            return(expression);
        }
Exemple #3
0
 public override ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
 {
     // From now on there are no named constants in the tree. A constant value is always indicated
     // by a literal. This simplifies later phases (e.g. IL generation).
     return(LiteralExpression.FromTypedValue(expression.Constant.Value, expression.ExpressionType));
 }
Exemple #4
0
		private static bool VisitNamedConstantExpression(NamedConstantExpression node1, NamedConstantExpression node2)
		{
			return node2 != null &&
			       node1.Constant == node2.Constant;
		}
Exemple #5
0
 private static bool VisitNamedConstantExpression(NamedConstantExpression node1, NamedConstantExpression node2)
 {
     return(node2 != null &&
            node1.Constant == node2.Constant);
 }
Exemple #6
0
		public override ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
		{
			Identifier identifier = Identifier.CreateVerbatim(expression.Constant.Name);
			_writer.WriteIdentifier(identifier);
			return expression;
		}
Exemple #7
0
 public virtual ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
 {
     return(expression);
 }
Exemple #8
0
		public virtual ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
		{
			return expression;
		}
Exemple #9
0
		public override ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
		{
			// From now on there are no named constants in the tree. A constant value is always indicated
			// by a literal. This simplifies later phases (e.g. IL generation).
			return LiteralExpression.FromTypedValue(expression.Constant.Value, expression.ExpressionType);
		}
Exemple #10
0
		public override ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
		{
			_xmlWriter.WriteStartElement("namedConstantExpression");
			_xmlWriter.WriteAttributeString("constant", expression.Constant.Name);
			WriteTypeAttribute(expression.ExpressionType);
			_xmlWriter.WriteEndElement();

			return expression;
		}