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

Of() public method

public Of ( ) : LNode
return LNode
		public LNode Of(params Symbol[] list)
		{
			return new StdSimpleCallNode(S.Of, new VList<LNode>(list.SelectArray(sym => Id(sym))), new SourceRange(_file));
		}
		public LNode Of(params LNode[] list)

Same methods

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, 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));
		}