Skip to content

Commit

Permalink
Align types impl with VS Code version
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mäder <tmader@redhat.com>
  • Loading branch information
tsmaeder committed Jan 24, 2020
1 parent 53f8d36 commit fe1ab01
Showing 1 changed file with 30 additions and 25 deletions.
55 changes: 30 additions & 25 deletions packages/plugin-ext/src/plugin/types-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2010,35 +2010,40 @@ export enum WebviewPanelTargetArea {
Bottom = 'bottom'
}
export class CallHierarchyItem {
/**
* Creates a new call hierarchy item.
*/
constructor(public kind: SymbolKind, public name: string, public detail: string, public uri: URI, public range: Range, public selectionRange: Range) { }
kind: SymbolKind;
name: string;
detail?: string;
uri: URI;
range: Range;
selectionRange: Range;

constructor(kind: SymbolKind, name: string, detail: string, uri: URI, range: Range, selectionRange: Range) {
this.kind = kind;
this.name = name;
this.detail = detail;
this.uri = uri;
this.range = range;
this.selectionRange = selectionRange;
}
}

/**
* Represents an incoming call, e.g. a caller of a method or constructor.
*/
export class CallHierarchyIncomingCall {

/**
* Create a new call object.
*
* @param item The item making the call.
* @param fromRanges The ranges at which the calls appear.
*/
constructor(public from: CallHierarchyItem, public fromRanges: Range[]) { }
}
from: theia.CallHierarchyItem;
fromRanges: theia.Range[];

/**
* Represents an outgoing call, e.g. calling a getter from a method or a method from a constructor etc.
*/
constructor(item: theia.CallHierarchyItem, fromRanges: theia.Range[]) {
this.fromRanges = fromRanges;
this.from = item;
}
}
export class CallHierarchyOutgoingCall {
/**
* Create a new call object.
*
* @param item The item being called
* @param fromRanges The ranges at which the calls appear.
*/
constructor(public to: CallHierarchyItem, public fromRanges: Range[]) { }

to: theia.CallHierarchyItem;
fromRanges: theia.Range[];

constructor(item: theia.CallHierarchyItem, fromRanges: theia.Range[]) {
this.fromRanges = fromRanges;
this.to = item;
}
}

0 comments on commit fe1ab01

Please sign in to comment.