private DefaultObjectExpression GetDefaultValueExpression(ParameterDefinition parameter)
		{
			TypeReference defaultedType = parameter.ParameterType;
			if (defaultedType.IsByReference)
			{
				defaultedType = (defaultedType as ByReferenceType).ElementType;
			}
			DefaultObjectExpression d = new DefaultObjectExpression(defaultedType, null);
			return d;
		}
 public override void VisitDefaultObjectExpression(DefaultObjectExpression node)
 {
     WriteKeyword("default");
     WriteToken("(");
     WriteReferenceAndNamespaceIfInCollision(node.Type);
     WriteToken(")");
 }
 public override void VisitDefaultObjectExpression(DefaultObjectExpression node)
 {
     WriteKeyword("Nothing");
 }
 public override Expression CloneExpressionOnly()
 {
     DefaultObjectExpression result = new DefaultObjectExpression(Type, null);
     return result;
 }
        public override Expression Clone()
        {
			DefaultObjectExpression result = new DefaultObjectExpression(Type, instructions);
			return result;
        }
 public virtual void VisitDefaultObjectExpression(DefaultObjectExpression node)
 {
 }
Beispiel #7
0
        public override Expression CloneExpressionOnly()
        {
            DefaultObjectExpression result = new DefaultObjectExpression(Type, null);

            return(result);
        }
Beispiel #8
0
        public override Expression Clone()
        {
            DefaultObjectExpression result = new DefaultObjectExpression(Type, instructions);

            return(result);
        }