Ejemplo n.º 1
0
        public override ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
        {
            Identifier identifier = Identifier.CreateVerbatim(expression.Constant.Name);

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

            return(expression);
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 4
0
		private static bool VisitNamedConstantExpression(NamedConstantExpression node1, NamedConstantExpression node2)
		{
			return node2 != null &&
			       node1.Constant == node2.Constant;
		}
Ejemplo n.º 5
0
 private static bool VisitNamedConstantExpression(NamedConstantExpression node1, NamedConstantExpression node2)
 {
     return(node2 != null &&
            node1.Constant == node2.Constant);
 }
Ejemplo n.º 6
0
		public override ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
		{
			Identifier identifier = Identifier.CreateVerbatim(expression.Constant.Name);
			_writer.WriteIdentifier(identifier);
			return expression;
		}
Ejemplo n.º 7
0
 public virtual ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
 {
     return(expression);
 }
Ejemplo n.º 8
0
		public virtual ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
		{
			return expression;
		}
Ejemplo n.º 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);
		}
Ejemplo n.º 10
0
		public override ExpressionNode VisitNamedConstantExpression(NamedConstantExpression expression)
		{
			_xmlWriter.WriteStartElement("namedConstantExpression");
			_xmlWriter.WriteAttributeString("constant", expression.Constant.Name);
			WriteTypeAttribute(expression.ExpressionType);
			_xmlWriter.WriteEndElement();

			return expression;
		}