public static Collection<INodeRef> ToProperties( ITerminalRef<ITypeDeclaration> type, IBlockFormulaRef parentBlock, IBlockFormulaRef childBlocks, INonterminalRef variables, INonterminalRef formulas, INonterminalRef result) { var list = (IList<INodeRef>)new List<INodeRef>(); INonterminalMixin.InsertToProperties(new NodeTypeRef(NonterminalType.Block), type, ref list); list.Insert(ParentBlockIndex, parentBlock); list.Insert(ChildBlocksIndex, childBlocks); list.Insert(VariablesIndex, variables); list.Insert(FormulasIndex, formulas); list.Insert(ResultIndex, result); return new Collection<INodeRef>(list); }
public static INonterminalRef SetResult(this IList<INodeRef> source, INonterminalRef value) { source[ResultIndex] = value; return value; }
public static INonterminalRef SetVariables(this IList<INodeRef> source, INonterminalRef value) { source[VariablesIndex] = value; return value; }
public static INonterminalRef SetFormulas(this IList<INodeRef> source, INonterminalRef value) { source[FormulasIndex] = value; return value; }