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

Of() public method

public Of ( Symbol stem, IEnumerable typeParams, int startIndex = -1, int endIndex = -1 ) : LNode
stem Symbol
typeParams IEnumerable
startIndex int
endIndex int
return LNode
		public LNode Of(Symbol stem, IEnumerable<LNode> typeParams, int startIndex = -1, int endIndex = -1)
		{
			return Of(Id(stem), typeParams, startIndex, endIndex);
		}

Same methods

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

Usage Example

Esempio n. 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));
		}