C# Class ICSharpCode.NRefactory.CSharp.Refactoring.PatternHelper.OptionalBlockPattern

Inheritance: ICSharpCode.NRefactory.PatternMatching.Pattern
ファイルを表示 Open project: 0xd4d/NRefactory

Public Methods

Method Description
DoMatch ( INode other, Match match ) : bool
OptionalBlockPattern ( INode child ) : ICSharpCode.NRefactory.PatternMatching
UnpackBlockStatement ( Statement stmt ) : Statement

Unpacks the given expression if it is a ParenthesizedExpression, CheckedExpression or UncheckedExpression.

Method Details

DoMatch() public method

public DoMatch ( INode other, Match match ) : bool
other INode
match Match
return bool

OptionalBlockPattern() public method

public OptionalBlockPattern ( INode child ) : ICSharpCode.NRefactory.PatternMatching
child INode
return ICSharpCode.NRefactory.PatternMatching

UnpackBlockStatement() public static method

Unpacks the given expression if it is a ParenthesizedExpression, CheckedExpression or UncheckedExpression.
public static UnpackBlockStatement ( Statement stmt ) : Statement
stmt Statement
return Statement