C# 클래스 Rhino.Ast.Name

AST node for a simple name.
AST node for a simple name. A simple name is an identifier that is not a keyword. Node type is Rhino.Token.NAME .

This node type is also used to represent certain non-identifier names that are part of the language syntax. It's used for the "get" and "set" pseudo-keywords for object-initializer getter/setter properties, and it's also used for the "*" wildcard in E4X XML namespace and name expressions.

상속: AstNode
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
GetDefiningScope ( ) : Scope

Returns the Scope in which this Name is defined.

GetIdentifier ( ) : string

Returns the node's identifier

GetScope ( ) : Scope

Return the Scope associated with this node. This is only used for (and set by) the code generator, so it will always be null in frontend AST-processing code. Use GetDefiningScope() to find the lexical Scope in which this Name is defined, if any.

IsLocalName ( ) : bool

Return true if this node is known to be defined as a symbol in a lexical scope other than the top-level (global) scope.

Return true if this node is known to be defined as a symbol in a lexical scope other than the top-level (global) scope.

Length ( ) : int

Return the length of this node's identifier, to let you pretend it's a string . Don't confuse this method with the AstNode.GetLength() method, which returns the range of characters that this node overlaps in the source input.

Name ( ) : Rhino
Name ( int pos ) : Rhino
Name ( int pos, int len ) : Rhino
Name ( int pos, int len, string name ) : Rhino

Constructs a new Name

Name ( int pos, string name ) : Rhino
SetIdentifier ( string identifier ) : void

Sets the node's identifier

SetScope ( Scope s ) : void

Set the Scope associated with this node. This method does not set the scope's ast-node field to this node. The field exists only for temporary storage by the code generator. Not every name has an associated scope - typically only function and variable names (but not property names) are registered in a scope.

ToSource ( int depth ) : string
Visit ( NodeVisitor v ) : void

Visits this node.

Visits this node. There are no children to visit.

메소드 상세

GetDefiningScope() 공개 메소드

Returns the Scope in which this Name is defined.
public GetDefiningScope ( ) : Scope
리턴 Scope

GetIdentifier() 공개 메소드

Returns the node's identifier
public GetIdentifier ( ) : string
리턴 string

GetScope() 공개 메소드

Return the Scope associated with this node. This is only used for (and set by) the code generator, so it will always be null in frontend AST-processing code. Use GetDefiningScope() to find the lexical Scope in which this Name is defined, if any.
public GetScope ( ) : Scope
리턴 Scope

IsLocalName() 공개 메소드

Return true if this node is known to be defined as a symbol in a lexical scope other than the top-level (global) scope.
Return true if this node is known to be defined as a symbol in a lexical scope other than the top-level (global) scope.
public IsLocalName ( ) : bool
리턴 bool

Length() 공개 메소드

Return the length of this node's identifier, to let you pretend it's a string . Don't confuse this method with the AstNode.GetLength() method, which returns the range of characters that this node overlaps in the source input.
public Length ( ) : int
리턴 int

Name() 공개 메소드

public Name ( ) : Rhino
리턴 Rhino

Name() 공개 메소드

public Name ( int pos ) : Rhino
pos int
리턴 Rhino

Name() 공개 메소드

public Name ( int pos, int len ) : Rhino
pos int
len int
리턴 Rhino

Name() 공개 메소드

Constructs a new Name
public Name ( int pos, int len, string name ) : Rhino
pos int node start position
len int node length
name string /// the identifier associated with this /// Name /// node ///
리턴 Rhino

Name() 공개 메소드

public Name ( int pos, string name ) : Rhino
pos int
name string
리턴 Rhino

SetIdentifier() 공개 메소드

Sets the node's identifier
if identifier is null
public SetIdentifier ( string identifier ) : void
identifier string
리턴 void

SetScope() 공개 메소드

Set the Scope associated with this node. This method does not set the scope's ast-node field to this node. The field exists only for temporary storage by the code generator. Not every name has an associated scope - typically only function and variable names (but not property names) are registered in a scope.
public SetScope ( Scope s ) : void
s Scope /// the scope. Can be null. Doesn't set any fields in the /// scope. ///
리턴 void

ToSource() 공개 메소드

public ToSource ( int depth ) : string
depth int
리턴 string

Visit() 공개 메소드

Visits this node.
Visits this node. There are no children to visit.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
리턴 void