/third_party/typescript/src/services/ |
D | types.ts | 518 …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[];
|
D | codeFixProvider.ts | 67 …export function createFileTextChanges(fileName: string, textChanges: TextChange[]): FileTextChange…
|
D | services.ts | 2064 …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[] = [];
|
D | utilities.ts | 1834 …ction createTextChangeFromStartLength(start: number, length: number, newText: string): TextChange { 1838 export function createTextChange(span: TextSpan, newText: string): TextChange {
|
D | textChanges.ts | 1132 export function applyChanges(text: string, changes: readonly TextChange[]): string {
|
D | completions.ts | 1197 let escapes: TextChange[] | undefined;
|
/third_party/typescript/src/services/formatting/ |
D | formatting.ts | 77 …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 …]
|
D | README.md | 6 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/ |
D | client.ts | 76 … 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[] {
|
D | harnessLanguageService.ts | 571 …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[] {
|
D | fourslashImpl.ts | 2281 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/ |
D | scriptVersionCache.ts | 241 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) {
|
D | session.ts | 118 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…
|
D | protocol.ts | 1532 changes: ts.TextChange[];
|
D | editorServices.ts | 646 changes: Iterator<TextChange>; 3772 applyChangesToFile(scriptInfo: ScriptInfo, changes: Iterator<TextChange>) {
|
/third_party/typescript/lib/ |
D | typescript.d.ts | 6363 …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[];
|
D | typescriptServices.d.ts | 6363 …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[];
|
D | tsserverlibrary.d.ts | 6363 …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/ |
D | typescript.d.ts | 6363 …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[];
|
D | tsserverlibrary.d.ts | 6363 …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[];
|