Loyc.Syntax.LNodeExt.InParens C# (CSharp) Method

InParens() public static method

Returns the same node with a parentheses attribute added.
public static InParens ( this node ) : LNode
node this
return LNode
		public static LNode InParens(this LNode node)
		{
			return node.PlusAttrBefore(LNode.Id(CodeSymbols.TriviaInParens));
		}
		/// <summary>Returns the same node with a parentheses attribute added.</summary>

Same methods

LNodeExt::InParens ( this node, ISourceFile file, int startIndex, int endIndex ) : LNode
LNodeExt::InParens ( this node, SourceRange range ) : LNode

Usage Example

Exemplo n.º 1
0
 public LNode InParens(LNode inner, int startIndex, int endIndex)
 {
     return(LNodeExt.InParens(inner, File, startIndex, endIndex - startIndex));
 }
All Usage Examples Of Loyc.Syntax.LNodeExt::InParens