public MethodNode() { name = "Method Member"; m_ReturnType = CreateInputSlot <CodeTypeReferenceSlot>("returnType", "ReturnType (ref)"); m_ReturnType.SetValue("System.Void"); m_Parameters = CreateInputSlot <EmptySlot <CodeParameterDeclarationExpression> >("parameters", "Parameters (dec exp)"); m_Parameters.allowMultipleConnections = true; m_Statements = CreateInputSlot <EmptySlot <CodeStatement> >("statements", "Statements (stm)"); m_Statements.allowMultipleConnections = true; }
public ParameterNode() { name = "Parameter Declaration"; CreateOutputSlot <GetterSlot <CodeParameterDeclarationExpression> >("out", "Out (dec exp)").SetGetter(Build); m_Type = CreateInputSlot <CodeTypeReferenceSlot>("type", "Type (ref)"); }
public CastExpressionNode() : base("out", "Cast (exp)") { m_Type = CreateInputSlot <CodeTypeReferenceSlot>("type", "Type (ref)"); m_Expression = CreateInputSlot <EmptySlot <CodeExpression> >("exp", "Cast (exp)"); }
public ObjectCreateExpressionNode() : base("out", "Object (exp)") { m_Type = CreateInputSlot <CodeTypeReferenceSlot>("type", "Type"); m_Parameters = CreateInputSlot <EmptySlot <CodeExpression> >("parameters", "Parameters"); m_Parameters.allowMultipleConnections = true; }
public FieldNode() { name = "Field Member"; m_VariableType = CreateInputSlot <CodeTypeReferenceSlot>("type", "Type (ref)"); m_InitExpresion = CreateInputSlot <EmptySlot <CodeExpression> >("init", "Init (exp)"); }