Home
last modified time | relevance | path

Searched refs:TextChange (Results 1 – 20 of 20) sorted by relevance

/third_party/typescript/src/services/
Dtypes.ts518 …string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
519 …gEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
520 …ing, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
571 toggleLineComment(fileName: string, textRange: TextRange): TextChange[];
572 toggleMultilineComment(fileName: string, textRange: TextRange): TextChange[];
573 commentSelection(fileName: string, textRange: TextRange): TextChange[];
574 uncommentSelection(fileName: string, textRange: TextRange): TextChange[];
774 export interface TextChange { interface
781 textChanges: readonly TextChange[];
DcodeFixProvider.ts67 …export function createFileTextChanges(fileName: string, textChanges: TextChange[]): FileTextChange…
Dservices.ts2064 …tring, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[] {
2069 …EditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[] {
2073 …ng, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[] {
2210 … toggleLineComment(fileName: string, textRange: TextRange, insertComment?: boolean): TextChange[] {
2212 const textChanges: TextChange[] = [];
2276 …Name: string, textRange: TextRange, insertComment?: boolean, isInsideJsx?: boolean): TextChange[] {
2278 const textChanges: TextChange[] = [];
2397 function commentSelection(fileName: string, textRange: TextRange): TextChange[] {
2407 function uncommentSelection(fileName: string, textRange: TextRange): TextChange[] {
2409 const textChanges: TextChange[] = [];
Dutilities.ts1834 …ction createTextChangeFromStartLength(start: number, length: number, newText: string): TextChange {
1838 export function createTextChange(span: TextSpan, newText: string): TextChange {
DtextChanges.ts1132 export function applyChanges(text: string, changes: readonly TextChange[]): string {
Dcompletions.ts1197 let escapes: TextChange[] | undefined;
/third_party/typescript/src/services/formatting/
Dformatting.ts77 …rmatOnEnter(position: number, sourceFile: SourceFile, formatContext: FormatContext): TextChange[] {
106 …OnSemicolon(position: number, sourceFile: SourceFile, formatContext: FormatContext): TextChange[] {
111 …peningCurly(position: number, sourceFile: SourceFile, formatContext: FormatContext): TextChange[] {
139 …losingCurly(position: number, sourceFile: SourceFile, formatContext: FormatContext): TextChange[] {
144 …xport function formatDocument(sourceFile: SourceFile, formatContext: FormatContext): TextChange[] {
152 …n(start: number, end: number, sourceFile: SourceFile, formatContext: FormatContext): TextChange[] {
347 …geVariant, initialIndentation: number, delta: number, formatContext: FormatContext): TextChange[] {
361 …File: SourceFile, formatContext: FormatContext, requestKind: FormattingRequestKind): TextChange[] {
374 …File: SourceFile, formatContext: FormatContext, requestKind: FormattingRequestKind): TextChange[] {
403 sourceFile: SourceFileLike): TextChange[] {
[all …]
DREADME.md6 The end result of formatting is represented by TextChange objects which hold the new string content…
10 export interface TextChange {
/third_party/typescript/src/harness/
Dclient.ts76 … private convertCodeEditsToTextChange(fileName: string, codeEdit: protocol.CodeEdit): TextChange {
259 …ditsForRange(file: string, start: number, end: number, _options: FormatCodeOptions): TextChange[] {
270 getFormattingEditsForDocument(fileName: string, options: FormatCodeOptions): TextChange[] {
274 …troke(fileName: string, position: number, key: string, _options: FormatCodeOptions): TextChange[] {
785 convertTextChangeToCodeEdit(change: protocol.CodeEdit, fileName: string): TextChange {
915 toggleLineComment(): TextChange[] {
919 toggleMultilineComment(): TextChange[] {
923 commentSelection(): TextChange[] {
927 uncommentSelection(): TextChange[] {
DharnessLanguageService.ts571 …nge(fileName: string, start: number, end: number, options: ts.FormatCodeOptions): ts.TextChange[] {
574 … getFormattingEditsForDocument(fileName: string, options: ts.FormatCodeOptions): ts.TextChange[] {
577 …(fileName: string, position: number, key: string, options: ts.FormatCodeOptions): ts.TextChange[] {
654 toggleLineComment(fileName: string, textRange: ts.TextRange): ts.TextChange[] {
657 toggleMultilineComment(fileName: string, textRange: ts.TextRange): ts.TextChange[] {
660 commentSelection(fileName: string, textRange: ts.TextRange): ts.TextChange[] {
663 uncommentSelection(fileName: string, textRange: ts.TextRange): ts.TextChange[] {
DfourslashImpl.ts2281 private applyEdits(fileName: string, edits: readonly ts.TextChange[]): number {
3960 const changes: ts.TextChange[] = [];
3971 const changes: ts.TextChange[] = [];
3982 const changes: ts.TextChange[] = [];
3993 const changes: ts.TextChange[] = [];
4012 …ngeForTextChanges({ pos, end }: ts.TextRange, textChanges: readonly ts.TextChange[]): ts.TextRange…
4022 …function forEachTextChange(changes: readonly ts.TextChange[], cb: (change: ts.TextChange) => void)…
/third_party/typescript/src/server/
DscriptVersionCache.ts241 class TextChange { class
252 private changes: TextChange[] = [];
275 this.changes.push(new TextChange(pos, deleteLen, insertedText));
364 …donly index: LineIndex, readonly changesSincePreviousVersion: readonly TextChange[] = emptyArray) {
Dsession.ts118 function allEditsBeforePos(edits: readonly TextChange[], pos: number): boolean {
2684 …private convertTextChangeToCodeEdit(change: TextChange, scriptInfo: ScriptInfo): protocol.CodeEdit…
2771 …mment(args: protocol.FileRangeRequestArgs, simplifiedResult: boolean): TextChange[] | protocol.Cod…
2787 …mment(args: protocol.FileRangeRequestArgs, simplifiedResult: boolean): TextChange[] | protocol.Cod…
2803 …ction(args: protocol.FileRangeRequestArgs, simplifiedResult: boolean): TextChange[] | protocol.Cod…
2819 …ction(args: protocol.FileRangeRequestArgs, simplifiedResult: boolean): TextChange[] | protocol.Cod…
3479 …function convertTextChangeToCodeEdit(change: TextChange, scriptInfo: ScriptInfoOrConfig): protocol…
Dprotocol.ts1532 changes: ts.TextChange[];
DeditorServices.ts646 changes: Iterator<TextChange>;
3772 applyChangesToFile(scriptInfo: ScriptInfo, changes: Iterator<TextChange>) {
/third_party/typescript/lib/
Dtypescript.d.ts6363 …string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6364 …gEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6365 …ing, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6393 toggleLineComment(fileName: string, textRange: TextRange): TextChange[];
6394 toggleMultilineComment(fileName: string, textRange: TextRange): TextChange[];
6395 commentSelection(fileName: string, textRange: TextRange): TextChange[];
6396 uncommentSelection(fileName: string, textRange: TextRange): TextChange[];
6565 interface TextChange { interface
6571 textChanges: readonly TextChange[];
DtypescriptServices.d.ts6363 …string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6364 …gEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6365 …ing, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6393 toggleLineComment(fileName: string, textRange: TextRange): TextChange[];
6394 toggleMultilineComment(fileName: string, textRange: TextRange): TextChange[];
6395 commentSelection(fileName: string, textRange: TextRange): TextChange[];
6396 uncommentSelection(fileName: string, textRange: TextRange): TextChange[];
6565 interface TextChange { interface
6571 textChanges: readonly TextChange[];
Dtsserverlibrary.d.ts6363 …string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6364 …gEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6365 …ing, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6393 toggleLineComment(fileName: string, textRange: TextRange): TextChange[];
6394 toggleMultilineComment(fileName: string, textRange: TextRange): TextChange[];
6395 commentSelection(fileName: string, textRange: TextRange): TextChange[];
6396 uncommentSelection(fileName: string, textRange: TextRange): TextChange[];
6565 interface TextChange { interface
6571 textChanges: readonly TextChange[];
/third_party/typescript/tests/baselines/reference/api/
Dtypescript.d.ts6363 …string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6364 …gEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6365 …ing, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6393 toggleLineComment(fileName: string, textRange: TextRange): TextChange[];
6394 toggleMultilineComment(fileName: string, textRange: TextRange): TextChange[];
6395 commentSelection(fileName: string, textRange: TextRange): TextChange[];
6396 uncommentSelection(fileName: string, textRange: TextRange): TextChange[];
6565 interface TextChange { interface
6571 textChanges: readonly TextChange[];
Dtsserverlibrary.d.ts6363 …string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6364 …gEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6365 …ing, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
6393 toggleLineComment(fileName: string, textRange: TextRange): TextChange[];
6394 toggleMultilineComment(fileName: string, textRange: TextRange): TextChange[];
6395 commentSelection(fileName: string, textRange: TextRange): TextChange[];
6396 uncommentSelection(fileName: string, textRange: TextRange): TextChange[];
6565 interface TextChange { interface
6571 textChanges: readonly TextChange[];