C# Class Castle.NVelocity.Scope

显示文件 Open project: jonorossi/cvsi Class Usage Examples

Public Methods

Method Description
Add ( NVIdNode id ) : void

Adds an identifier to the current scope.

Exists ( string name ) : bool

Determines if an identifier exists in this scope. Does not check enclosing scopes.

Find ( string name ) : NVIdNode

Looks up an identifier in the scope. This check enclosing scopes.

GetIdentifiers ( ) : NVIdNode>.Dictionary

Provides an iterator method for iterating over the identifiers.

Scope ( Scope outerScope, AstNode owner ) : System.Collections.Generic

Creates a new scope linked to the existing scope.

Method Details

Add() public method

Adds an identifier to the current scope.
public Add ( NVIdNode id ) : void
id NVIdNode
return void

Exists() public method

Determines if an identifier exists in this scope. Does not check enclosing scopes.
public Exists ( string name ) : bool
name string
return bool

Find() public method

Looks up an identifier in the scope. This check enclosing scopes.
public Find ( string name ) : NVIdNode
name string
return NVIdNode

GetIdentifiers() public method

Provides an iterator method for iterating over the identifiers.
public GetIdentifiers ( ) : NVIdNode>.Dictionary
return NVIdNode>.Dictionary

Scope() public method

Creates a new scope linked to the existing scope.
public Scope ( Scope outerScope, AstNode owner ) : System.Collections.Generic
outerScope Scope The scope that encloses this scope.
owner AstNode The owner identifier node.
return System.Collections.Generic