C# 클래스 ICSharpCode.NRefactory.CSharp.Refactoring.PatternHelper

Helper class for constructing pattern ASTs.
파일 보기 프로젝트 열기: 0xd4d/NRefactory 1 사용 예제들

공개 메소드들

메소드 설명
AnyType ( bool doesMatchNullTypes = false ) : AstType

Matches any type

AnyType ( string groupName, bool doesMatchNullTypes = false ) : AstType

Matches any type

CommutativeOperator ( Expression expr1, BinaryOperatorType op, Expression expr2 ) : Expression

Produces a choice pattern for expr1 op expr2 or expr2 op expr1.

CommutativeOperatorWithOptionalParentheses ( Expression expr1, BinaryOperatorType op, Expression expr2 ) : Expression
EmbeddedStatement ( Statement statement ) : Statement

Optionally allow a block around the given statement;

NamedParameter ( string groupName ) : ParameterDeclaration

Allows to give parameter declaration group names.

NamedParameter ( string groupName, AstType type, string name, ParameterModifier modifier = ParameterModifier.None ) : ParameterDeclaration

Allows to give parameter declaration group names.

OptionalParentheses ( Expression expr ) : Expression

Optionally allows parentheses around the given expression.

메소드 상세

AnyType() 공개 정적인 메소드

Matches any type
public static AnyType ( bool doesMatchNullTypes = false ) : AstType
doesMatchNullTypes bool
리턴 AstType

AnyType() 공개 정적인 메소드

Matches any type
public static AnyType ( string groupName, bool doesMatchNullTypes = false ) : AstType
groupName string
doesMatchNullTypes bool
리턴 AstType

CommutativeOperator() 공개 정적인 메소드

Produces a choice pattern for expr1 op expr2 or expr2 op expr1.
public static CommutativeOperator ( Expression expr1, BinaryOperatorType op, Expression expr2 ) : Expression
expr1 Expression
op BinaryOperatorType
expr2 Expression
리턴 Expression

CommutativeOperatorWithOptionalParentheses() 공개 정적인 메소드

public static CommutativeOperatorWithOptionalParentheses ( Expression expr1, BinaryOperatorType op, Expression expr2 ) : Expression
expr1 Expression
op BinaryOperatorType
expr2 Expression
리턴 Expression

EmbeddedStatement() 공개 정적인 메소드

Optionally allow a block around the given statement;
public static EmbeddedStatement ( Statement statement ) : Statement
statement Statement
리턴 Statement

NamedParameter() 공개 정적인 메소드

Allows to give parameter declaration group names.
public static NamedParameter ( string groupName ) : ParameterDeclaration
groupName string
리턴 ParameterDeclaration

NamedParameter() 공개 정적인 메소드

Allows to give parameter declaration group names.
public static NamedParameter ( string groupName, AstType type, string name, ParameterModifier modifier = ParameterModifier.None ) : ParameterDeclaration
groupName string
type AstType
name string
modifier ParameterModifier
리턴 ParameterDeclaration

OptionalParentheses() 공개 정적인 메소드

Optionally allows parentheses around the given expression.
public static OptionalParentheses ( Expression expr ) : Expression
expr Expression
리턴 Expression