Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
2120b2bf
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2120b2bf
编写于
10月 25, 2019
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jsdoc for #70231
上级
458f1df6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
77 addition
and
4 deletion
+77
-4
src/vs/vscode.proposed.d.ts
src/vs/vscode.proposed.d.ts
+77
-4
未找到文件。
src/vs/vscode.proposed.d.ts
浏览文件 @
2120b2bf
...
...
@@ -18,6 +18,10 @@ declare module 'vscode' {
//#region Joh - call hierarchy
/**
* Represents programming constructs like functions or constructors in the context
* of call hierarchy.
*/
export
class
CallHierarchyItem
{
/**
* The name of this item.
...
...
@@ -50,7 +54,7 @@ declare module 'vscode' {
range
:
Range
;
/**
* The range that should be selected and reveal when this symbol is being picked, e.g. the name of a function.
* The range that should be selected and reveal
ed
when this symbol is being picked, e.g. the name of a function.
* Must be contained by the [`range`](#CallHierarchyItem.range).
*/
selectionRange
:
Range
;
...
...
@@ -58,29 +62,98 @@ declare module 'vscode' {
constructor
(
kind
:
SymbolKind
,
name
:
string
,
detail
:
string
,
uri
:
Uri
,
range
:
Range
,
selectionRange
:
Range
);
}
/**
* Represents an incoming call, e.g. a caller of a method or constructor.
*/
export
class
CallHierarchyIncomingCall
{
/**
* The item that makes the call.
*/
from
:
CallHierarchyItem
;
/**
* The range at which at which the calls appears. This is relative to the caller
* denoted by [`this.from`](#CallHierarchyIncomingCall.from).
*/
fromRanges
:
Range
[];
/**
* Create a new call object.
*
* @param item The item making the call.
* @param fromRanges The ranges at which the calls appear.
*/
constructor
(
item
:
CallHierarchyItem
,
fromRanges
:
Range
[]);
}
/**
* Represents an outgoing call, e.g. calling a getter from a method or a method from a constructor etc.
*/
export
class
CallHierarchyOutgoingCall
{
fromRanges
:
Range
[];
/**
* The item that is called.
*/
to
:
CallHierarchyItem
;
/**
* The range at which this item is called. This is the range relative the caller, e.g the item
* passed to [`provideCallHierarchyOutgoingCalls`](#CallHierarchyItemProvider.provideCallHierarchyOutgoingCalls)
* and not [`this.to`](#CallHierarchyOutgoingCall.to).
*/
fromRanges
:
Range
[];
/**
* Create a new call object.
*
* @param item The item being called
* @param fromRanges The ranges at which the calls appear.
*/
constructor
(
item
:
CallHierarchyItem
,
fromRanges
:
Range
[]);
}
/**
* The call hierarchy provider interface describes the constract between extensions
* and the call hierarchy feature which allows to browse calls and caller of function,
* methods, constructor etc.
*/
export
interface
CallHierarchyItemProvider
{
/**
* 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.
*
* @param document The document in which the command was invoked.
* @param position The position at which the command was invoked.
* @param token A cancellation token.
* @returns A call hierarchy item or a thenable that resolves to such. The lack of a result can be
* signaled by returning `undefined` or `null`.
*/
prepareCallHierarchy
(
document
:
TextDocument
,
position
:
Position
,
token
:
CancellationToken
):
ProviderResult
<
CallHierarchyItem
>
;
/**
* Provide a list of callers for the provided item, e.g. all function calling a function.
* Provide all incoming calls for an item, e.g all callers for a method. In graph terms this descibes directed
* and annotated edges inside the call graph, e.g the given item is the starting node and the result are the nodes
* that can be reached.
*
* @param item The hierarchy item for which incoming calls should be computed.
* @param token A cancellation token.
* @returns 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`.
*/
provideCallHierarchyIncomingCalls
(
item
:
CallHierarchyItem
,
token
:
CancellationToken
):
ProviderResult
<
CallHierarchyIncomingCall
[]
>
;
/**
* Provide a list of calls for the provided item, e.g. all functions call from a function.
* Provide all outgoing calls for an item, e.g call calls to functions, methods, or constructors from the given item. In
* graph terms this descibes directed and annotated edges inside the call graph, e.g the given item is the starting
* node and the result are the nodes that can be reached.
*
* @param item The hierarchy item for which outgoing calls should be computed.
* @param token A cancellation token.
* @returns 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`.
*/
provideCallHierarchyOutgoingCalls
(
item
:
CallHierarchyItem
,
token
:
CancellationToken
):
ProviderResult
<
CallHierarchyOutgoingCall
[]
>
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录