public Node_Argument(
	Node_Identifier @parameterName,
	INode_Expression @value,
	string @nodeSource )
        {
            m_parameterName = @parameterName;
            m_value = @value;
            m_nodeSource = @nodeSource;
        }
        public Node_Catcher(
	INode_Expression @type,
	Node_Identifier @name,
	INode_Expression @test,
	INode_Expression @result,
	string @nodeSource )
        {
            m_type = @type;
            m_name = @name;
            m_test = @test;
            m_result = @result;
            m_nodeSource = @nodeSource;
        }
        public Node_DeclareAssign(
	Node_Identifier @name,
	Node_Boolean @constant,
	INode_Expression @type,
	Node_Boolean @breed,
	INode_Expression @value,
	string @nodeSource )
        {
            m_name = @name;
            m_constant = @constant;
            m_type = @type;
            m_breed = @breed;
            m_value = @value;
            m_nodeSource = @nodeSource;
        }
        public Node_TypeSelect(
	INode_Expression @inputValue,
	Node_Identifier @castedName,
	Node_Boolean @requireMatch,
	IList<Node_TypeCase> @typeCases,
	INode_Expression @else,
	string @nodeSource )
        {
            m_inputValue = @inputValue;
            m_castedName = @castedName;
            m_requireMatch = @requireMatch;
            m_typeCases = @typeCases;
            m_else = @else;
            m_nodeSource = @nodeSource;
        }
        public Node_Caller(
	INode_Expression @interface,
	Node_Identifier @methodName,
	string @nodeSource )
        {
            m_interface = @interface;
            m_methodName = @methodName;
            m_nodeSource = @nodeSource;
        }
Example #6
0
 //identifier
 public static HashSet<Identifier> depends(Node_Identifier node)
 {
     HashSet<Identifier> idents = new HashSet<Identifier>();
     idents.Add(node.value);
     return idents;
 }
        public Node_SetProperty(
	INode_Expression @source,
	Node_Identifier @propertyName,
	INode_Expression @value,
	string @nodeSource )
        {
            m_source = @source;
            m_propertyName = @propertyName;
            m_value = @value;
            m_nodeSource = @nodeSource;
        }
        public Node_Method(
	Node_Identifier @name,
	INode_Expression @interface,
	string @nodeSource )
        {
            m_name = @name;
            m_interface = @interface;
            m_nodeSource = @nodeSource;
        }
        public Node_ParameterInfo(
	Node_Direction @direction,
	INode_Expression @type,
	Node_Identifier @name,
	Node_Boolean @hasDefaultValue,
	string @nodeSource )
        {
            m_direction = @direction;
            m_type = @type;
            m_name = @name;
            m_hasDefaultValue = @hasDefaultValue;
            m_nodeSource = @nodeSource;
        }
        public Node_Import(
	Node_Identifier @alias,
	IList<Node_ImportAttempt> @importAttempts,
	string @nodeSource )
        {
            m_alias = @alias;
            m_importAttempts = @importAttempts;
            m_nodeSource = @nodeSource;
        }
        public Node_MemberImplementation(
	Node_MemberType @memberType,
	Node_Identifier @name,
	INode_Expression @interface,
	INode_Expression @function,
	string @nodeSource )
        {
            m_memberType = @memberType;
            m_name = @name;
            m_interface = @interface;
            m_function = @function;
            m_nodeSource = @nodeSource;
        }
        public Node_Assign(
	Node_Identifier @name,
	Node_Boolean @breed,
	INode_Expression @value,
	string @nodeSource )
        {
            m_name = @name;
            m_breed = @breed;
            m_value = @value;
            m_nodeSource = @nodeSource;
        }
        public Node_ExtractMember(
	INode_Expression @source,
	Node_Identifier @memberName,
	string @nodeSource )
        {
            m_source = @source;
            m_memberName = @memberName;
            m_nodeSource = @nodeSource;
        }
        public Node_EnumEntry(
	Node_Identifier @name,
	INode_Expression @value,
	string @nodeSource )
        {
            m_name = @name;
            m_value = @value;
            m_nodeSource = @nodeSource;
        }
        public Node_DeclareEmpty(
	Node_Identifier @name,
	INode_Expression @type,
	string @nodeSource )
        {
            m_name = @name;
            m_type = @type;
            m_nodeSource = @nodeSource;
        }
        public Node_Property(
	Node_Identifier @name,
	Node_Boolean @writable,
	INode_Expression @type,
	string @nodeSource )
        {
            m_name = @name;
            m_writable = @writable;
            m_type = @type;
            m_nodeSource = @nodeSource;
        }
        public Node_DeclareFirst(
	Node_Identifier @name,
	Node_Boolean @overload,
	INode_Expression @type,
	Node_Boolean @breed,
	INode_Expression @value,
	string @nodeSource )
        {
            m_name = @name;
            m_overload = @overload;
            m_type = @type;
            m_breed = @breed;
            m_value = @value;
            m_nodeSource = @nodeSource;
        }
 protected virtual XmlElement serialize(Node_Identifier node)
 {
     XmlElement elem = _doc.CreateElement(node.typeName, desible1NS);
     elem.AppendChild(_doc.CreateTextNode(node.ToString()));
     return elem;
 }