Share via


IParseSink::GetPackage Method

Returns an IBabelPackage Interface object representing the Babel package.

HRESULT GetPackage ( 
   IBabelPackage** package
);

Parameters

  • package
    [out] The Babel Package.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

You can use the IBabelPackage Interface to call the IBabelPackage::LoadScope Method. That method returns an IScope Interface object, given a project and a file name.

The default Babel implementation of this method uses the QueryService method to obtain the Babel Package.

See Also

Reference

IParseSink Interface

IBabelPackage::LoadScope Method

IScope Interface

IParseSink::AddExtern Method