Rhino.Ast.VariableDeclaration.SetType C# (CSharp) Method

SetType() public method

Sets the node type and returns this node.
Sets the node type and returns this node.
/// if /// declType /// is invalid ///
public SetType ( int type ) : Node
type int
return Node
		public override Node SetType(int type)
		{
			if (type != Token.VAR && type != Token.CONST && type != Token.LET)
			{
				throw new ArgumentException("invalid decl type: " + type);
			}
			return base.SetType(type);
		}