Replaced 'getModuleNameFromFilename' with 'removeFileExtension'.

This commit is contained in:
Daniel Rosenwasser
2014-10-03 16:21:15 -07:00
parent 4ba0ce433f
commit 7d9bf5093b
3 changed files with 5 additions and 9 deletions
-4
View File
@@ -22,10 +22,6 @@ module ts {
amdDependencies: string[];
}
export function getModuleNameFromFilename(filename: string) {
return removeFileExtension(filename);
}
export function getSourceFileOfNode(node: Node): SourceFile {
while (node && node.kind !== SyntaxKind.SourceFile) node = node.parent;
return <SourceFile>node;