diff options
author | crowlKats <crowlkats@gmail.com> | 2020-03-13 10:22:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 10:22:22 +0100 |
commit | e435c2be158ce8657dbff0664b6db222fe4e586c (patch) | |
tree | b0e72033be2ce51a70fd2c2af23e6da131a642bb /cli/js/compiler/imports.ts | |
parent | 3ac642c183981a366e1db565c16b81f864b07ee4 (diff) |
Remove doc strings from cli/js TS files (#4329)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/js/compiler/imports.ts')
-rw-r--r-- | cli/js/compiler/imports.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/cli/js/compiler/imports.ts b/cli/js/compiler/imports.ts index 077303b61..a3246c32f 100644 --- a/cli/js/compiler/imports.ts +++ b/cli/js/compiler/imports.ts @@ -7,7 +7,6 @@ import { assert } from "../util.ts"; import * as util from "../util.ts"; import * as compilerOps from "../ops/compiler.ts"; -/** Resolve a path to the final path segment passed. */ function resolvePath(...pathSegments: string[]): string { let resolvedPath = ""; let resolvedAbsolute = false; @@ -45,8 +44,6 @@ function resolvePath(...pathSegments: string[]): string { else return "."; } -/** Resolve a relative specifier based on the referrer. Used when resolving - * modules internally within the runtime compiler API. */ function resolveSpecifier(specifier: string, referrer: string): string { if (!specifier.startsWith(".")) { return specifier; @@ -58,7 +55,6 @@ function resolveSpecifier(specifier: string, referrer: string): string { return resolvePath(path, specifier); } -/** Ops to Rust to resolve modules' URLs. */ export function resolveModules( specifiers: string[], referrer?: string @@ -67,7 +63,6 @@ export function resolveModules( return compilerOps.resolveModules(specifiers, referrer); } -/** Ops to Rust to fetch modules meta data. */ function fetchSourceFiles( specifiers: string[], referrer?: string @@ -76,8 +71,6 @@ function fetchSourceFiles( return compilerOps.fetchSourceFiles(specifiers, referrer); } -/** Given a filename, determine the media type based on extension. Used when - * resolving modules internally in a runtime compile. */ function getMediaType(filename: string): MediaType { const maybeExtension = /\.([a-zA-Z]+)$/.exec(filename); if (!maybeExtension) { @@ -104,12 +97,6 @@ function getMediaType(filename: string): MediaType { } } -/** Recursively process the imports of modules from within the supplied sources, - * generating `SourceFile`s of any imported files. - * - * Specifiers are supplied in an array of tuples where the first is the - * specifier that will be requested in the code and the second is the specifier - * that should be actually resolved. */ export function processLocalImports( sources: Record<string, string>, specifiers: Array<[string, string]>, @@ -148,12 +135,6 @@ export function processLocalImports( return moduleNames; } -/** Recursively process the imports of modules, generating `SourceFile`s of any - * imported files. - * - * Specifiers are supplied in an array of tuples where the first is the - * specifier that will be requested in the code and the second is the specifier - * that should be actually resolved. */ export async function processImports( specifiers: Array<[string, string]>, referrer?: string, |