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

Property() public method

public Property ( LNode type, LNode name, LNode argList, LNode body, LNode initializer = null, int startIndex = -1, int endIndex = -1 ) : LNode
type LNode
name LNode
argList LNode
body LNode
initializer LNode
startIndex int
endIndex int
return LNode
		public LNode Property(LNode type, LNode name, LNode argList, LNode body, LNode initializer = null, int startIndex = -1, int endIndex = -1)
		{
			argList = argList ?? Missing_;
			CheckParam.Arg("body with initializer", initializer == null || (body != null && body.Calls(S.Braces)));
			if (endIndex < startIndex) endIndex = startIndex;
			LNode[] list = body == null
				? new[] { type, name, argList, }
				: initializer == null
				? new[] { type, name, argList, body }
				: new[] { type, name, argList, body, initializer };
			return new StdSimpleCallNode(S.Property, new VList<LNode>(list), new SourceRange(_file, startIndex, endIndex - startIndex), startIndex, startIndex);
		}
		

Same methods

LNodeFactory::Property ( LNode type, LNode name, LNode body = null, int startIndex = -1, int endIndex = -1 ) : LNode