Share via


IParseSink::GetProject Method

Returns the project for the current source file.

HRESULT GetProject ( 
   IBabelProject** project
);

Parameters

  • project
    [out] Returns an IBabelProject Interface representing the project that is associated with the current source.

Return Value

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

Remarks

Call this method to interact with the project, for example, during a file search, or to determine the project parameter for IBabelPackage::LoadScope Method.

This method succeeds only if the project type that contains the current source file (as being handled by the Babel language service) implements the IBabelProject Interface.

See Also

Reference

IParseSink Interface

IBabelPackage::LoadScope Method

IBabelProject Interface