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

Trivia() public method

Creates a trivia node named "#trivia_" + suffix with the specified Value attached.
This method only adds the prefix #trivia_ if it is not already present in the 'suffix' argument.
public Trivia ( string suffix, object value ) : LNode
suffix string
value object
return LNode
		public LNode Trivia(string suffix, object value)
		{
			string name = suffix.StartsWith("#trivia_") ? suffix : "#trivia_" + suffix;
			return LNode.Trivia(GSymbol.Get(name), value, new SourceRange(_file));
		}
		/// <summary>Creates a trivia node with the specified Value attached.</summary>

Same methods

LNodeFactory::Trivia ( Symbol name, object value, int startIndex = -1, int endIndex = -1 ) : LNode