IParseSink::AddInclude Method
Adds the scope of included items into the current scope. This feature is not yet implemented.
HRESULT AddInclude (
long startLine,
long startIdx,
long endLine,
long endIdx,
enum ScopeAccess,
BSTR name
);
Parameters
startLine
[in] Starting line of the item to include scope for.startIdx
[in] Starting index of the item, that is, the enclosing lexical context, in the starting line. The line index is zero-based.endLine
[in] Ending line of the item to include scope for.endIdx
[in] Ending index of the item in the ending line. The line index is zero-based.ScopeAccess
[in] Scope access, for example, private, protected, and public.name
[in] Specifies the name of the scope to add. For example, the scope of a specific class could be added.
Return Value
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
This method is used to open (include) a referenced scope inside of an enclosing lexical context. For example, it can be used to show the members of an inherited class inside a class definition.