UNPKG

abap-adt-api

Version:

Interface to Abap Developer Tools webservice

96 lines 3.1 kB
import { UriParts } from "."; import { AdtHTTP } from "../AdtHTTP"; import { Range } from "./urlparser"; export interface FixProposal { "adtcore:uri": string; "adtcore:type": string; "adtcore:name": string; "adtcore:description": string; uri: string; line: string; column: string; userContent: string; } interface TextReplaceDelta { rangeFragment: Range; contentOld: string; contentNew: string; } interface AffectedObjects { uri: string; type: string; name: string; parentUri: string; userContent: string; textReplaceDeltas: TextReplaceDelta[]; } export interface RenameRefactoringProposal { oldName: string; newName: string; transport?: string; title?: string; rootUserContent?: string; ignoreSyntaxErrorsAllowed: boolean; ignoreSyntaxErrors: boolean; adtObjectUri: UriParts; affectedObjects: AffectedObjects[]; userContent: string; } export interface RenameRefactoring extends RenameRefactoringProposal { transport: string; } interface Exception { name: string; resumable: boolean; userContent: string; } interface Parameter { id: string; name: string; direction: string; byValue: boolean; typeType: string; type: string; userContent: string; } export interface GenericRefactoring { title: string; adtObjectUri: UriParts; transport: string; ignoreSyntaxErrorsAllowed: boolean; ignoreSyntaxErrors: boolean; userContent: string; affectedObjects: AffectedObjects[]; } export interface ExtractMethodProposal { name: string; isStatic: boolean; isForTesting: boolean; visibility: string; classBasedExceptions: boolean; genericRefactoring: GenericRefactoring; content: string; className: string; isEventAllowed: boolean; isEvent: boolean; userContent: string; parameters: Parameter[]; exceptions: Exception[]; } export declare function fixProposals(h: AdtHTTP, uri: string, body: string, line: number, column: number): Promise<FixProposal[]>; export interface Delta { uri: string; range: Range; name: string; type: string; content: string; } export declare function fixEdits(h: AdtHTTP, proposal: FixProposal, source: string): Promise<Delta[]>; export declare function renameEvaluate(h: AdtHTTP, uri: string, line: number, startColumn: number, endColumn: number): Promise<RenameRefactoringProposal>; export declare function renamePreview(h: AdtHTTP, renameRefactoring: RenameRefactoringProposal, transport: string): Promise<RenameRefactoring>; export declare function renameExecute(h: AdtHTTP, rename: RenameRefactoring): Promise<RenameRefactoring>; export declare function extractMethodEvaluate(h: AdtHTTP, uri: string, range: Range): Promise<ExtractMethodProposal>; export declare function extractMethodPreview(h: AdtHTTP, proposal: ExtractMethodProposal): Promise<GenericRefactoring>; export declare function extractMethodExecute(h: AdtHTTP, refactoring: GenericRefactoring): Promise<GenericRefactoring>; export {}; //# sourceMappingURL=refactor.d.ts.map