Share via


IScope Interface

Provides scope (that is, a symbol tree) for a span of text passed in the IBabelService::ParseSource Method.

IScope : IDispatch

Methods in Vtable Order

The following table shows the methods of this interface.

Method

Description

IScope::GetDeclarations Method

Returns a list of declarations (statement completion information) in a scope given a specific context.

IScope::GetDataTipText Method

Returns a data tip for a given span of text.

IScope::GetMethods Method

Returns the method information for a method.

IScope::Narrow Method

Returns the innermost name that encloses a certain location's line and column index.

Remarks

This interface provides a symbol tree for the span of text specified in IBabelService::ParseSource Method. The IScope object is used by the Babel package to supply statement completion, data tip, and method information, as well as information for the debugger.

If the IBabelService::ParseSource Method method is called with the reason parameter set equal to the ParseReason Enumeration value of ReasonCheck, then an IScope object (that is, a symbol tree) should be built and returned in the scope parameter. Either implement the IScope interface yourself, or use the default IScope implementation that is provided with the Babel package. If you are using the default IScope implementation, return NULL for the scope parameter. The Babel Package then knows to use the default scope. For more information about using the default scope, see IParseSink::AddScope Method.

Notes for Implementers

This interface is an abstraction of a symbol tree for a source file. An IScope object is built during a parse over of a source file, when a ParseReason Enumeration value of ReasonCheck is specified in the call to the IBabelService::ParseSource Method method.

Notes for Callers

This interface is returned from a call to the IBabelService::ParseSource Method method and contains the results of the parsing operation.

Requirements

Header: BabelService.idl

See Also

Reference

IBabelService::ParseSource Method

ParseReason Enumeration