Loyc.Syntax.LNodeFactory.Of C# (CSharp) Method

Of() public method

public Of ( LNode stem, IEnumerable typeParams, int startIndex = -1, int endIndex = -1 ) : LNode
stem LNode
typeParams IEnumerable
startIndex int
endIndex int
return LNode
		public LNode Of(LNode stem, IEnumerable<LNode> typeParams, int startIndex = -1, int endIndex = -1)
		{
			if (endIndex < startIndex) endIndex = startIndex;
			return Call(S.Of, stem, startIndex, endIndex).PlusArgs(typeParams);
		}
		public LNode Of(Symbol stem, IEnumerable<LNode> typeParams, int startIndex = -1, int endIndex = -1)

Same methods

LNodeFactory::Of ( ) : LNode
LNodeFactory::Of ( LNode stem, LNode T1, int startIndex = -1, int endIndex = -1 ) : LNode
LNodeFactory::Of ( Symbol stem, IEnumerable typeParams, int startIndex = -1, int endIndex = -1 ) : LNode
LNodeFactory::Of ( Symbol stem, LNode T1, int startIndex = -1, int endIndex = -1 ) : LNode

Usage Example

Example #1
0
		public CodeGenHelperBase()
		{
			F = new LNodeFactory(EmptySourceFile.Unknown);
			ListType = F.Of(F.Id("List"), F.Id(_T));
			ListInitializer = F.Call(S.New, F.Call(ListType));
		}