@@ -345,8 +345,10 @@ export class CompilerHost implements ts.CompilerHost, tsickle.TsickleHost {
345345 return path . posix . join ( workspace , fileName ) ;
346346 }
347347
348- // Resolves the typings file from a package at the specified path.
349- // Helper function to `resolveTypeReferenceDirectives`.
348+ /**
349+ * Resolves the typings file from a package at the specified path. Helper
350+ * function to `resolveTypeReferenceDirectives`.
351+ */
350352 private resolveTypingFromDirectory ( typePath : string , primary : boolean ) : ts . ResolvedTypeReferenceDirective | undefined {
351353 // Looks for the `typings` attribute in a package.json file
352354 // if it exists
@@ -374,10 +376,12 @@ export class CompilerHost implements ts.CompilerHost, tsickle.TsickleHost {
374376 return undefined ;
375377 }
376378
377- // Override the default typescript resolveTypeReferenceDirectives function.
378- // Resolves /// <reference types="x" /> directives under bazel.
379- // The default typescript secondary search behavior needs to be overridden
380- // to support looking under `bazelOpts.nodeModulesPrefix`
379+ /**
380+ * Override the default typescript resolveTypeReferenceDirectives function.
381+ * Resolves /// <reference types="x" /> directives under bazel. The default
382+ * typescript secondary search behavior needs to be overridden to support
383+ * looking under `bazelOpts.nodeModulesPrefix`
384+ */
381385 resolveTypeReferenceDirectives ( names : string [ ] , containingFile : string ) : ( ts . ResolvedTypeReferenceDirective | undefined ) [ ] {
382386 let result : ( ts . ResolvedTypeReferenceDirective | undefined ) [ ] = [ ]
383387 names . forEach ( name => {
@@ -519,10 +523,10 @@ export class CompilerHost implements ts.CompilerHost, tsickle.TsickleHost {
519523 return this . knownFiles . has ( filePath ) ;
520524 }
521525
522- // Since we override getDefaultLibFileName below, we must also provide the
523- // directory containing the file.
524- // Otherwise TypeScript looks in C:\lib.xxx.d.ts for the default lib.
525526 getDefaultLibLocation ( ) : string {
527+ // Since we override getDefaultLibFileName below, we must also provide the
528+ // directory containing the file.
529+ // Otherwise TypeScript looks in C:\lib.xxx.d.ts for the default lib.
526530 return path . dirname (
527531 this . getDefaultLibFileName ( { target : ts . ScriptTarget . ES5 } ) ) ;
528532 }
0 commit comments