Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CallHierarchyProvider

The call hierarchy provider interface describes the contract between extensions and the call hierarchy feature which allows to browse calls and caller of function, methods, constructor etc.

层级

  • CallHierarchyProvider

索引

Methods(3)

prepareCallHierarchy

  • Bootstraps call hierarchy by returning the item that is denoted by the given document and position. This item will be used as entry into the call graph. Providers should return undefined or null when there is no item at the given location.

    Parameters

    Returns ProviderResult<CallHierarchyItem | CallHierarchyItem[]>

    A call hierarchy item or a thenable that resolves to such. The lack of a result can be signaled by returning undefined or null.

provideCallHierarchyIncomingCalls

  • Provide all incoming calls for an item, e.g all callers for a method. In graph terms this describes directed and annotated edges inside the call graph, e.g the given item is the starting node and the result is the nodes that can be reached.

    Parameters

    Returns ProviderResult<CallHierarchyIncomingCall[]>

    A set of incoming calls or a thenable that resolves to such. The lack of a result can be signaled by returning undefined or null.

provideCallHierarchyOutgoingCalls

  • Provide all outgoing calls for an item, e.g call calls to functions, methods, or constructors from the given item. In graph terms this describes directed and annotated edges inside the call graph, e.g the given item is the starting node and the result is the nodes that can be reached.

    Parameters

    Returns ProviderResult<CallHierarchyOutgoingCall[]>

    A set of outgoing calls or a thenable that resolves to such. The lack of a result can be signaled by returning undefined or null.

友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc. Maintained by 洛竹