예제 #1
0
 public ConstantFolder(ConstantFoldingOptions options !!)
 {
예제 #2
0
 /// <summary>
 /// Runs constant folding on the tree rooted by the provided node.
 /// </summary>
 /// <param name="node"></param>
 /// <param name="options">Options to use when constant folding.</param>
 /// <returns></returns>
 public static SyntaxNode ConstantFold(this SyntaxNode node, ConstantFoldingOptions options) =>
 new ConstantFolder(options).Visit(node);