TypeScript/tests/cases/fourslash/importNameCodeFixNewImportFileAllComments.ts
Andy 8ad4aeece1
Make ChangeTracker#newLineCharacter public, to avoid having to pass newLineCharacter around as a parameter (#20574)
* Make ChangeTracker#newLineCharacter public, to avoid having to pass newLineCharacter around as a parameter

* Don't require newLineCharacter as input to ChangeTracker methods, and make it private again
2017-12-12 12:23:13 -08:00

36 lines
797 B
TypeScript

/// <reference path="fourslash.ts" />
//// [|/*!
//// * This is a license or something
//// */
//// /// <reference types="node" />
//// /// <reference path="./a.ts" />
//// /// <amd-dependency path="./b.ts" />
//// /**
//// * This is a comment intended to be attached to this interface
//// */
//// export interface SomeInterface {
//// }
//// f1/*0*/();|]
// @Filename: module.ts
//// export function f1() {}
//// export var v1 = 5;
verify.importFixAtPosition([
`/*!
* This is a license or something
*/
/// <reference types="node" />
/// <reference path="./a.ts" />
/// <amd-dependency path="./b.ts" />
import { f1 } from "./module";
/**
* This is a comment intended to be attached to this interface
*/
export interface SomeInterface {
}
f1();`
]);