C# 클래스 Microsoft.Zing.Replacer

This class aids in code generation by making substitutions in a given tree. It will be extended as needed to deal with additional types of substitution. See the static methods on the class for a description of what is supported.
상속: System.Compiler.StandardVisitor
파일 보기 프로젝트 열기: ZingModelChecker/Zing 1 사용 예제들

공개 메소드들

메소드 설명
Replace ( System.Compiler.Node node, System.Compiler.Identifier oldName, System.Compiler.Node newNode ) : void

Within "node", replace occurrences of identifiers matching oldName (by value) with the given newNode. newNode must be an expression.

Replace ( System.Compiler.Node node, string labelName, System.Compiler.Block block ) : void

Within "node", find a labeled statement whose label matches the given string, and replace it with the supplied statement block.

Replace ( System.Compiler.Node node, string oldName, System.Compiler.Node newNode ) : void

Within "node", replace identifiers matching the value of oldName with the given newNode (of type Expression).

VisitAttributeList ( AttributeList attributes ) : AttributeList
VisitConstruct ( System.Compiler.Construct cons ) : System.Compiler.Expression
VisitIdentifier ( System.Compiler.Identifier identifier ) : System.Compiler.Expression
VisitLabeledStatement ( System.Compiler.LabeledStatement lStatement ) : System.Compiler.Statement
VisitLocalDeclaration ( System.Compiler.LocalDeclaration localDeclaration ) : System.Compiler.LocalDeclaration
VisitLocalDeclarationsStatement ( System.Compiler.LocalDeclarationsStatement localDeclarations ) : System.Compiler.Statement
VisitMemberBinding ( System.Compiler.MemberBinding memberBinding ) : System.Compiler.Expression
VisitQualifiedIdentifier ( System.Compiler.QualifiedIdentifier qualifiedIdentifier ) : System.Compiler.Expression
VisitTypeExpression ( System.Compiler.TypeExpression typeExpression ) : System.Compiler.TypeExpression
VisitTypeNode ( System.Compiler.TypeNode typeNode ) : System.Compiler.TypeNode
VisitTypeReference ( System.Compiler.TypeNode type ) : System.Compiler.TypeNode
VisitUnknownNodeType ( System.Compiler.Node node ) : System.Compiler.Node

비공개 메소드들

메소드 설명
Replacer ( System.Compiler.Identifier oldName, System.Compiler.Node newNode ) : System

메소드 상세

Replace() 공개 정적인 메소드

Within "node", replace occurrences of identifiers matching oldName (by value) with the given newNode. newNode must be an expression.
public static Replace ( System.Compiler.Node node, System.Compiler.Identifier oldName, System.Compiler.Node newNode ) : void
node System.Compiler.Node
oldName System.Compiler.Identifier
newNode System.Compiler.Node
리턴 void

Replace() 공개 정적인 메소드

Within "node", find a labeled statement whose label matches the given string, and replace it with the supplied statement block.
public static Replace ( System.Compiler.Node node, string labelName, System.Compiler.Block block ) : void
node System.Compiler.Node
labelName string
block System.Compiler.Block
리턴 void

Replace() 공개 정적인 메소드

Within "node", replace identifiers matching the value of oldName with the given newNode (of type Expression).
public static Replace ( System.Compiler.Node node, string oldName, System.Compiler.Node newNode ) : void
node System.Compiler.Node
oldName string
newNode System.Compiler.Node
리턴 void

VisitAttributeList() 공개 메소드

public VisitAttributeList ( AttributeList attributes ) : AttributeList
attributes AttributeList
리턴 AttributeList

VisitConstruct() 공개 메소드

public VisitConstruct ( System.Compiler.Construct cons ) : System.Compiler.Expression
cons System.Compiler.Construct
리턴 System.Compiler.Expression

VisitIdentifier() 공개 메소드

public VisitIdentifier ( System.Compiler.Identifier identifier ) : System.Compiler.Expression
identifier System.Compiler.Identifier
리턴 System.Compiler.Expression

VisitLabeledStatement() 공개 메소드

public VisitLabeledStatement ( System.Compiler.LabeledStatement lStatement ) : System.Compiler.Statement
lStatement System.Compiler.LabeledStatement
리턴 System.Compiler.Statement

VisitLocalDeclaration() 공개 메소드

public VisitLocalDeclaration ( System.Compiler.LocalDeclaration localDeclaration ) : System.Compiler.LocalDeclaration
localDeclaration System.Compiler.LocalDeclaration
리턴 System.Compiler.LocalDeclaration

VisitLocalDeclarationsStatement() 공개 메소드

public VisitLocalDeclarationsStatement ( System.Compiler.LocalDeclarationsStatement localDeclarations ) : System.Compiler.Statement
localDeclarations System.Compiler.LocalDeclarationsStatement
리턴 System.Compiler.Statement

VisitMemberBinding() 공개 메소드

public VisitMemberBinding ( System.Compiler.MemberBinding memberBinding ) : System.Compiler.Expression
memberBinding System.Compiler.MemberBinding
리턴 System.Compiler.Expression

VisitQualifiedIdentifier() 공개 메소드

public VisitQualifiedIdentifier ( System.Compiler.QualifiedIdentifier qualifiedIdentifier ) : System.Compiler.Expression
qualifiedIdentifier System.Compiler.QualifiedIdentifier
리턴 System.Compiler.Expression

VisitTypeExpression() 공개 메소드

public VisitTypeExpression ( System.Compiler.TypeExpression typeExpression ) : System.Compiler.TypeExpression
typeExpression System.Compiler.TypeExpression
리턴 System.Compiler.TypeExpression

VisitTypeNode() 공개 메소드

public VisitTypeNode ( System.Compiler.TypeNode typeNode ) : System.Compiler.TypeNode
typeNode System.Compiler.TypeNode
리턴 System.Compiler.TypeNode

VisitTypeReference() 공개 메소드

public VisitTypeReference ( System.Compiler.TypeNode type ) : System.Compiler.TypeNode
type System.Compiler.TypeNode
리턴 System.Compiler.TypeNode

VisitUnknownNodeType() 공개 메소드

public VisitUnknownNodeType ( System.Compiler.Node node ) : System.Compiler.Node
node System.Compiler.Node
리턴 System.Compiler.Node