@lpc-lang/core 1.1.2-5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +255 -0
- package/bin/lpc +4 -0
- package/bin/lpcserver +4 -0
- package/cancellationToken/cancellationToken.d.ts +8 -0
- package/cancellationToken/cancellationToken.d.ts.map +1 -0
- package/cancellationToken/serverCancellationToken.d.ts +21 -0
- package/cancellationToken/serverCancellationToken.d.ts.map +1 -0
- package/cli/_namespaces/lpc.d.ts +2 -0
- package/cli/_namespaces/lpc.d.ts.map +1 -0
- package/cli/lpc.d.ts +2 -0
- package/cli/lpc.d.ts.map +1 -0
- package/compiler/LpcConfig.d.ts +17 -0
- package/compiler/LpcConfig.d.ts.map +1 -0
- package/compiler/_namespaces/lpc.d.ts +49 -0
- package/compiler/_namespaces/lpc.d.ts.map +1 -0
- package/compiler/_namespaces/lpc.moduleSpecifiers.d.ts +2 -0
- package/compiler/_namespaces/lpc.moduleSpecifiers.d.ts.map +1 -0
- package/compiler/_namespaces/lpc.performance.d.ts +2 -0
- package/compiler/_namespaces/lpc.performance.d.ts.map +1 -0
- package/compiler/binder.d.ts +2 -0
- package/compiler/binder.d.ts.map +1 -0
- package/compiler/builderPublic.d.ts +76 -0
- package/compiler/builderPublic.d.ts.map +1 -0
- package/compiler/checker.d.ts +2 -0
- package/compiler/checker.d.ts.map +1 -0
- package/compiler/commandLineParser.d.ts +47 -0
- package/compiler/commandLineParser.d.ts.map +1 -0
- package/compiler/core.d.ts +3 -0
- package/compiler/core.d.ts.map +1 -0
- package/compiler/corePublic.d.ts +19 -0
- package/compiler/corePublic.d.ts.map +1 -0
- package/compiler/debug.d.ts +71 -0
- package/compiler/debug.d.ts.map +1 -0
- package/compiler/diagnosticInformation.d.ts +518 -0
- package/compiler/diagnosticInformation.d.ts.map +1 -0
- package/compiler/emitter.d.ts +11 -0
- package/compiler/emitter.d.ts.map +1 -0
- package/compiler/executeCommandLine.d.ts +15 -0
- package/compiler/executeCommandLine.d.ts.map +1 -0
- package/compiler/expressionToTypeNode.d.ts +2 -0
- package/compiler/expressionToTypeNode.d.ts.map +1 -0
- package/compiler/factory/baseNodeFactory.d.ts +2 -0
- package/compiler/factory/baseNodeFactory.d.ts.map +1 -0
- package/compiler/factory/emitHelper.d.ts +2 -0
- package/compiler/factory/emitHelper.d.ts.map +1 -0
- package/compiler/factory/emitNode.d.ts +22 -0
- package/compiler/factory/emitNode.d.ts.map +1 -0
- package/compiler/factory/nodeChildren.d.ts +2 -0
- package/compiler/factory/nodeChildren.d.ts.map +1 -0
- package/compiler/factory/nodeConverters.d.ts +2 -0
- package/compiler/factory/nodeConverters.d.ts.map +1 -0
- package/compiler/factory/nodeFactory.d.ts +4 -0
- package/compiler/factory/nodeFactory.d.ts.map +1 -0
- package/compiler/factory/parenthesizerRules.d.ts +2 -0
- package/compiler/factory/parenthesizerRules.d.ts.map +1 -0
- package/compiler/factory/utilities.d.ts +2 -0
- package/compiler/factory/utilities.d.ts.map +1 -0
- package/compiler/factory/utilitiesPublic.d.ts +4 -0
- package/compiler/factory/utilitiesPublic.d.ts.map +1 -0
- package/compiler/lpcFileHandler.d.ts +10 -0
- package/compiler/lpcFileHandler.d.ts.map +1 -0
- package/compiler/lpcJsHelpers.d.ts +17 -0
- package/compiler/lpcJsHelpers.d.ts.map +1 -0
- package/compiler/lpcbuild.d.ts +2 -0
- package/compiler/lpcbuild.d.ts.map +1 -0
- package/compiler/lpcbuildPublic.d.ts +26 -0
- package/compiler/lpcbuildPublic.d.ts.map +1 -0
- package/compiler/moduleNameResolver.d.ts +55 -0
- package/compiler/moduleNameResolver.d.ts.map +1 -0
- package/compiler/moduleSpecifiers.d.ts +2 -0
- package/compiler/moduleSpecifiers.d.ts.map +1 -0
- package/compiler/nodeTests.d.ts +115 -0
- package/compiler/nodeTests.d.ts.map +1 -0
- package/compiler/parser.d.ts +65 -0
- package/compiler/parser.d.ts.map +1 -0
- package/compiler/path.d.ts +2 -0
- package/compiler/path.d.ts.map +1 -0
- package/compiler/perfLoger.d.ts +2 -0
- package/compiler/perfLoger.d.ts.map +1 -0
- package/compiler/performance.d.ts +2 -0
- package/compiler/performance.d.ts.map +1 -0
- package/compiler/performanceCore.d.ts +2 -0
- package/compiler/performanceCore.d.ts.map +1 -0
- package/compiler/program.d.ts +72 -0
- package/compiler/program.d.ts.map +1 -0
- package/compiler/resolutionCache.d.ts +6 -0
- package/compiler/resolutionCache.d.ts.map +1 -0
- package/compiler/resolver.d.ts +1 -0
- package/compiler/resolver.d.ts.map +1 -0
- package/compiler/scanner.d.ts +85 -0
- package/compiler/scanner.d.ts.map +1 -0
- package/compiler/sourcemap.d.ts +2 -0
- package/compiler/sourcemap.d.ts.map +1 -0
- package/compiler/sys.d.ts +56 -0
- package/compiler/sys.d.ts.map +1 -0
- package/compiler/tracing.d.ts +31 -0
- package/compiler/tracing.d.ts.map +1 -0
- package/compiler/transformers/declarations.d.ts +2 -0
- package/compiler/transformers/declarations.d.ts.map +1 -0
- package/compiler/transformers.d.ts +2 -0
- package/compiler/transformers.d.ts.map +1 -0
- package/compiler/types.d.ts +3284 -0
- package/compiler/types.d.ts.map +1 -0
- package/compiler/utilities.d.ts +57 -0
- package/compiler/utilities.d.ts.map +1 -0
- package/compiler/utilitiesPublic.d.ts +213 -0
- package/compiler/utilitiesPublic.d.ts.map +1 -0
- package/compiler/visitorPublic.d.ts +72 -0
- package/compiler/visitorPublic.d.ts.map +1 -0
- package/compiler/watch.d.ts +2 -0
- package/compiler/watch.d.ts.map +1 -0
- package/compiler/watchPublic.d.ts +44 -0
- package/compiler/watchPublic.d.ts.map +1 -0
- package/compiler/watchUtilities.d.ts +14 -0
- package/compiler/watchUtilities.d.ts.map +1 -0
- package/config-types.d.ts +33 -0
- package/config-types.d.ts.map +1 -0
- package/harness/harnessIO.d.ts +4 -0
- package/harness/harnessIO.d.ts.map +1 -0
- package/lpc/_namespaces/lpc.d.ts +6 -0
- package/lpc/_namespaces/lpc.d.ts.map +1 -0
- package/lpc/_namespaces/lpc.server.d.ts +2 -0
- package/lpc/_namespaces/lpc.server.d.ts.map +1 -0
- package/lpc/lpc.d.ts +2 -0
- package/lpc/lpc.d.ts.map +1 -0
- package/lpcserver/document.d.ts +1 -0
- package/lpcserver/document.d.ts.map +1 -0
- package/lpcserver/nodeServer.d.ts +25 -0
- package/lpcserver/nodeServer.d.ts.map +1 -0
- package/lpcserver/protocol.const.d.ts +46 -0
- package/lpcserver/protocol.const.d.ts.map +1 -0
- package/lpcserver/server.d.ts +3 -0
- package/lpcserver/server.d.ts.map +1 -0
- package/lpcserver/textRendering.d.ts +14 -0
- package/lpcserver/textRendering.d.ts.map +1 -0
- package/lpcserver/typeConverters.d.ts +44 -0
- package/lpcserver/typeConverters.d.ts.map +1 -0
- package/lpcserver/utils.d.ts +14 -0
- package/lpcserver/utils.d.ts.map +1 -0
- package/package.json +48 -0
- package/parse-fluff-docs.d.ts +2 -0
- package/parse-fluff-docs.d.ts.map +1 -0
- package/parse-ld-docs.d.ts +2 -0
- package/parse-ld-docs.d.ts.map +1 -0
- package/server/_namespaces/lpc.d.ts +5 -0
- package/server/_namespaces/lpc.d.ts.map +1 -0
- package/server/_namespaces/lpc.server.d.ts +11 -0
- package/server/_namespaces/lpc.server.d.ts.map +1 -0
- package/server/_namespaces/lpc.server.protocol.d.ts +2 -0
- package/server/_namespaces/lpc.server.protocol.d.ts.map +1 -0
- package/server/editorServices.d.ts +261 -0
- package/server/editorServices.d.ts.map +1 -0
- package/server/project.d.ts +143 -0
- package/server/project.d.ts.map +1 -0
- package/server/protocol.d.ts +962 -0
- package/server/protocol.d.ts.map +1 -0
- package/server/scriptInfo.d.ts +53 -0
- package/server/scriptInfo.d.ts.map +1 -0
- package/server/scriptVersionCache.d.ts +2 -0
- package/server/scriptVersionCache.d.ts.map +1 -0
- package/server/session.d.ts +150 -0
- package/server/session.d.ts.map +1 -0
- package/server/types.d.ts +24 -0
- package/server/types.d.ts.map +1 -0
- package/server/utilities.d.ts +2 -0
- package/server/utilities.d.ts.map +1 -0
- package/server/utilitiesPublic.d.ts +37 -0
- package/server/utilitiesPublic.d.ts.map +1 -0
- package/server.d.ts +2 -0
- package/server.d.ts.map +1 -0
- package/services/_namespaces/lpc.Completions.StringCompletions.d.ts +2 -0
- package/services/_namespaces/lpc.Completions.StringCompletions.d.ts.map +1 -0
- package/services/_namespaces/lpc.Completions.d.ts +4 -0
- package/services/_namespaces/lpc.Completions.d.ts.map +1 -0
- package/services/_namespaces/lpc.FindAllReferences.d.ts +3 -0
- package/services/_namespaces/lpc.FindAllReferences.d.ts.map +1 -0
- package/services/_namespaces/lpc.GoToDefinition.d.ts +2 -0
- package/services/_namespaces/lpc.GoToDefinition.d.ts.map +1 -0
- package/services/_namespaces/lpc.JsDoc.d.ts +2 -0
- package/services/_namespaces/lpc.JsDoc.d.ts.map +1 -0
- package/services/_namespaces/lpc.NavigationBar.d.ts +2 -0
- package/services/_namespaces/lpc.NavigationBar.d.ts.map +1 -0
- package/services/_namespaces/lpc.Rename.d.ts +2 -0
- package/services/_namespaces/lpc.Rename.d.ts.map +1 -0
- package/services/_namespaces/lpc.SignatureHelp.d.ts +2 -0
- package/services/_namespaces/lpc.SignatureHelp.d.ts.map +1 -0
- package/services/_namespaces/lpc.SymbolDisplay.d.ts +2 -0
- package/services/_namespaces/lpc.SymbolDisplay.d.ts.map +1 -0
- package/services/_namespaces/lpc.codefix.d.ts +3 -0
- package/services/_namespaces/lpc.codefix.d.ts.map +1 -0
- package/services/_namespaces/lpc.d.ts +30 -0
- package/services/_namespaces/lpc.d.ts.map +1 -0
- package/services/_namespaces/lpc.formatting.d.ts +7 -0
- package/services/_namespaces/lpc.formatting.d.ts.map +1 -0
- package/services/_namespaces/lpc.textChanges.d.ts +2 -0
- package/services/_namespaces/lpc.textChanges.d.ts.map +1 -0
- package/services/classifier2020.d.ts +2 -0
- package/services/classifier2020.d.ts.map +1 -0
- package/services/codefixes/helpers.d.ts +2 -0
- package/services/codefixes/helpers.d.ts.map +1 -0
- package/services/codefixes/importFixes.d.ts +2 -0
- package/services/codefixes/importFixes.d.ts.map +1 -0
- package/services/completions.d.ts +2 -0
- package/services/completions.d.ts.map +1 -0
- package/services/documentRegistry.d.ts +90 -0
- package/services/documentRegistry.d.ts.map +1 -0
- package/services/exportInfoMap.d.ts +5 -0
- package/services/exportInfoMap.d.ts.map +1 -0
- package/services/findAllReferences.d.ts +2 -0
- package/services/findAllReferences.d.ts.map +1 -0
- package/services/formatting/formatting.d.ts +2 -0
- package/services/formatting/formatting.d.ts.map +1 -0
- package/services/formatting/formattingContext.d.ts +2 -0
- package/services/formatting/formattingContext.d.ts.map +1 -0
- package/services/formatting/rule.d.ts +2 -0
- package/services/formatting/rule.d.ts.map +1 -0
- package/services/formatting/rules.d.ts +2 -0
- package/services/formatting/rules.d.ts.map +1 -0
- package/services/formatting/rulesMap.d.ts +2 -0
- package/services/formatting/rulesMap.d.ts.map +1 -0
- package/services/formatting/smartIndenter.d.ts +2 -0
- package/services/formatting/smartIndenter.d.ts.map +1 -0
- package/services/goToDefinition.d.ts +2 -0
- package/services/goToDefinition.d.ts.map +1 -0
- package/services/importTracker.d.ts +2 -0
- package/services/importTracker.d.ts.map +1 -0
- package/services/jsDoc.d.ts +2 -0
- package/services/jsDoc.d.ts.map +1 -0
- package/services/navigationBar.d.ts +2 -0
- package/services/navigationBar.d.ts.map +1 -0
- package/services/rename.d.ts +2 -0
- package/services/rename.d.ts.map +1 -0
- package/services/services.d.ts +54 -0
- package/services/services.d.ts.map +1 -0
- package/services/signatureHelp.d.ts +2 -0
- package/services/signatureHelp.d.ts.map +1 -0
- package/services/sourcemaps.d.ts +2 -0
- package/services/sourcemaps.d.ts.map +1 -0
- package/services/stringCompletions.d.ts +2 -0
- package/services/stringCompletions.d.ts.map +1 -0
- package/services/suggestionDiagnostics.d.ts +2 -0
- package/services/suggestionDiagnostics.d.ts.map +1 -0
- package/services/symbolDisplay.d.ts +2 -0
- package/services/symbolDisplay.d.ts.map +1 -0
- package/services/textChanges.d.ts +2 -0
- package/services/textChanges.d.ts.map +1 -0
- package/services/types.d.ts +901 -0
- package/services/types.d.ts.map +1 -0
- package/services/utilities.d.ts +3 -0
- package/services/utilities.d.ts.map +1 -0
- package/src/cli.js +58 -0
- package/src/cli.js.map +7 -0
- package/src/efuns/fluffos/arrays.h +205 -0
- package/src/efuns/fluffos/async.h +84 -0
- package/src/efuns/fluffos/buffers.h +80 -0
- package/src/efuns/fluffos/calls.h +275 -0
- package/src/efuns/fluffos/contrib.h +805 -0
- package/src/efuns/fluffos/db.h +125 -0
- package/src/efuns/fluffos/driver.h +107 -0
- package/src/efuns/fluffos/ed.h +48 -0
- package/src/efuns/fluffos/efuns.fluffos.h +75 -0
- package/src/efuns/fluffos/external.h +30 -0
- package/src/efuns/fluffos/filesystem.h +154 -0
- package/src/efuns/fluffos/floats.h +136 -0
- package/src/efuns/fluffos/functions.h +104 -0
- package/src/efuns/fluffos/general.h +548 -0
- package/src/efuns/fluffos/interactive.h +777 -0
- package/src/efuns/fluffos/internals.h +455 -0
- package/src/efuns/fluffos/lpc-config.json +10 -0
- package/src/efuns/fluffos/mappings.h +205 -0
- package/src/efuns/fluffos/misc.h +43 -0
- package/src/efuns/fluffos/mudlib.h +228 -0
- package/src/efuns/fluffos/numbers.h +41 -0
- package/src/efuns/fluffos/objects.h +365 -0
- package/src/efuns/fluffos/parsing.h +220 -0
- package/src/efuns/fluffos/pcre.h +75 -0
- package/src/efuns/fluffos/sockets.h +276 -0
- package/src/efuns/fluffos/strings.h +542 -0
- package/src/efuns/fluffos/system.h +408 -0
- package/src/efuns/fluffos/zh-cn/arrays.zh-cn.h +167 -0
- package/src/efuns/fluffos/zh-cn/async.zh-cn.h +81 -0
- package/src/efuns/fluffos/zh-cn/buffers.zh-cn.h +69 -0
- package/src/efuns/fluffos/zh-cn/calls.zh-cn.h +242 -0
- package/src/efuns/fluffos/zh-cn/contrib.zh-cn.h +767 -0
- package/src/efuns/fluffos/zh-cn/db.zh-cn.h +113 -0
- package/src/efuns/fluffos/zh-cn/ed.zh-cn.h +42 -0
- package/src/efuns/fluffos/zh-cn/efuns.fluffos.h +76 -0
- package/src/efuns/fluffos/zh-cn/external.zh-cn.h +25 -0
- package/src/efuns/fluffos/zh-cn/filesystem.zh-cn.h +140 -0
- package/src/efuns/fluffos/zh-cn/floats.zh-cn.h +129 -0
- package/src/efuns/fluffos/zh-cn/functions.zh-cn.h +87 -0
- package/src/efuns/fluffos/zh-cn/general.zh-cn.h +506 -0
- package/src/efuns/fluffos/zh-cn/interactive.zh-cn.h +659 -0
- package/src/efuns/fluffos/zh-cn/internals.zh-cn.h +356 -0
- package/src/efuns/fluffos/zh-cn/mappings.zh-cn.h +188 -0
- package/src/efuns/fluffos/zh-cn/misc.zh-cn.h +43 -0
- package/src/efuns/fluffos/zh-cn/mudlib.zh-cn.h +190 -0
- package/src/efuns/fluffos/zh-cn/numbers.zh-cn.h +36 -0
- package/src/efuns/fluffos/zh-cn/objects.zh-cn.h +280 -0
- package/src/efuns/fluffos/zh-cn/parsing.zh-cn.h +212 -0
- package/src/efuns/fluffos/zh-cn/pcre.zh-cn.h +67 -0
- package/src/efuns/fluffos/zh-cn/sockets.zh-cn.h +230 -0
- package/src/efuns/fluffos/zh-cn/strings.zh-cn.h +484 -0
- package/src/efuns/fluffos/zh-cn/system.zh-cn.h +366 -0
- package/src/efuns/ldmud/defines.h +69 -0
- package/src/efuns/ldmud/efun.h +10449 -0
- package/src/efuns/ldmud/efuns.ldmud.h +87 -0
- package/src/efuns/ldmud/lpc-config.json +9 -0
- package/src/efuns/ldmud/obsolete.h +2168 -0
- package/src/lpc.js +82486 -0
- package/src/lpc.js.map +6 -0
- package/src/server.js +129 -0
- package/src/server.js.map +7 -0
- package/types.d.ts +23 -0
- package/types.d.ts.map +1 -0
- package/utils.d.ts +21 -0
- package/utils.d.ts.map +1 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BuilderProgram, ParsedCommandLine, Program, System } from "./_namespaces/lpc";
|
|
2
|
+
export declare enum ExecuteCommandMsgType {
|
|
3
|
+
None = 0,
|
|
4
|
+
Success = 1,
|
|
5
|
+
Failure = 2
|
|
6
|
+
}
|
|
7
|
+
export type ExecuteCommandLineCallbacks = (program: Program | BuilderProgram | ParsedCommandLine) => void;
|
|
8
|
+
export type ExecuteCommandMsgCallback = (msg: string, msgType?: ExecuteCommandMsgType) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Executes a CLI build.
|
|
11
|
+
* @param system
|
|
12
|
+
* @param commandLineArgs
|
|
13
|
+
*/
|
|
14
|
+
export declare function executeCommandLine(system: System, commandLineArgs: readonly string[], msgCallback?: ExecuteCommandMsgCallback): void;
|
|
15
|
+
//# sourceMappingURL=executeCommandLine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeCommandLine.d.ts","sourceRoot":"./src/","sources":["src/compiler/executeCommandLine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAA2L,iBAAiB,EAAE,OAAO,EAAc,MAAM,EAAykB,MAAM,mBAAmB,CAAC;AAGj3B,oBAAY,qBAAqB;IAC7B,IAAI,IAAI;IACR,OAAO,IAAA;IACP,OAAO,IAAA;CACV;AACD,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,GAAG,iBAAiB,KAAK,IAAI,CAAC;AAC1G,MAAM,MAAM,yBAAyB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;AAE/F;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,SAAS,MAAM,EAAE,EAClC,WAAW,CAAC,EAAE,yBAAyB,GACxC,IAAI,CA+HN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expressionToTypeNode.d.ts","sourceRoot":"./src/","sources":["src/compiler/expressionToTypeNode.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseNodeFactory.d.ts","sourceRoot":"./src/","sources":["src/compiler/factory/baseNodeFactory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emitHelper.d.ts","sourceRoot":"./src/","sources":["src/compiler/factory/emitHelper.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EmitFlags, EmitHelper, Node, SourceFile, SyntaxKind, SynthesizedComment, TextRange } from "../_namespaces/lpc";
|
|
2
|
+
/**
|
|
3
|
+
* Sets flags that control emit behavior of a node.
|
|
4
|
+
*/
|
|
5
|
+
export declare function setEmitFlags<T extends Node>(node: T, emitFlags: EmitFlags): T;
|
|
6
|
+
export declare function setSyntheticLeadingComments<T extends Node>(node: T, comments: SynthesizedComment[] | undefined): T;
|
|
7
|
+
export declare function getSyntheticLeadingComments(node: Node): SynthesizedComment[] | undefined;
|
|
8
|
+
export declare function addSyntheticLeadingComment<T extends Node>(node: T, kind: SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia, text: string, hasTrailingNewLine?: boolean): T;
|
|
9
|
+
/**
|
|
10
|
+
* Clears any `EmitNode` entries from parse-tree nodes.
|
|
11
|
+
* @param sourceFile A source file.
|
|
12
|
+
*/
|
|
13
|
+
export declare function disposeEmitNodes(sourceFile: SourceFile | undefined): void;
|
|
14
|
+
/**
|
|
15
|
+
* Gets a custom text range to use when emitting comments.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getCommentRange(node: Node): TextRange;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the EmitHelpers of a node.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getEmitHelpers(node: Node): EmitHelper[] | undefined;
|
|
22
|
+
//# sourceMappingURL=emitNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emitNode.d.ts","sourceRoot":"./src/","sources":["src/compiler/factory/emitNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,SAAS,EAAE,UAAU,EAAmG,IAAI,EAA6B,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAsC,MAAM,oBAAoB,CAAC;AAGzT;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,KAGzE;AAmDD,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE,GAAG,SAAS,KAG9G;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI,GAAG,kBAAkB,EAAE,GAAG,SAAS,CAExF;AAED,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,uBAAuB,GAAG,UAAU,CAAC,sBAAsB,EAAE,IAAI,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,OAAO,KAE3L;AAGD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,QAalE;AA0BD;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAErD;AAYD;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,EAAE,GAAG,SAAS,CAEnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeChildren.d.ts","sourceRoot":"./src/","sources":["src/compiler/factory/nodeChildren.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeConverters.d.ts","sourceRoot":"./src/","sources":["src/compiler/factory/nodeConverters.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeFactory.d.ts","sourceRoot":"./src/","sources":["src/compiler/factory/nodeFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAiKH,IAAI,EAEJ,WAAW,EAqEd,MAAM,uBAAuB,CAAC;AAukE/B,wBAAgB,eAAe,CAAC,CAAC,SAAS,IAAI,EAC1C,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,IAAI,GAAG,SAAS,GAC3B,CAAC,CAUH;AAuHD,eAAO,MAAM,OAAO,aAA2F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parenthesizerRules.d.ts","sourceRoot":"./src/","sources":["src/compiler/factory/parenthesizerRules.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"./src/","sources":["src/compiler/factory/utilities.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { HasModifiers, Node, TextRange } from "../_namespaces/lpc";
|
|
2
|
+
export declare function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
|
|
3
|
+
export declare function canHaveModifiers(node: Node): node is HasModifiers;
|
|
4
|
+
//# sourceMappingURL=utilitiesPublic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilitiesPublic.d.ts","sourceRoot":"./src/","sources":["src/compiler/factory/utilitiesPublic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAkC,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEnG,wBAAgB,YAAY,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,SAAS,GAAG,SAAS,GAAG,CAAC,CAE9F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,IAAI,YAAY,CAiBjE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CompilerOptions, LpcFileHandler } from "./_namespaces/lpc.js";
|
|
2
|
+
export interface LpcFileHandlerHost {
|
|
3
|
+
getCurrentDirectory?(): string;
|
|
4
|
+
fileExists(fileName: string): boolean;
|
|
5
|
+
readFile(fileName: string): string | undefined;
|
|
6
|
+
getIncludeDirs(fileName: string): string[];
|
|
7
|
+
getCompilerOptions(): CompilerOptions;
|
|
8
|
+
}
|
|
9
|
+
export declare function createLpcFileHandler(host: LpcFileHandlerHost): LpcFileHandler;
|
|
10
|
+
//# sourceMappingURL=lpcFileHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lpcFileHandler.d.ts","sourceRoot":"./src/","sources":["src/compiler/lpcFileHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,eAAe,EAAwF,cAAc,EAAuH,MAAM,sBAAsB,CAAC;AAE9S,MAAM,WAAW,kBAAkB;IAC/B,mBAAmB,CAAC,IAAI,MAAM,CAAC;IAC/B,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAGtC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/C,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3C,kBAAkB,IAAI,eAAe,CAAC;CACzC;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,kBAAkB,GAAG,cAAc,CA+D7E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Puts some LPC->JS helper functions into an object that can be used in a VM context
|
|
3
|
+
* @returns
|
|
4
|
+
*/
|
|
5
|
+
export declare function createVmHelperContext(): {
|
|
6
|
+
explode: (string: string | 0, delim: string) => string | 0 | string[];
|
|
7
|
+
implode: (array: string[] | 0, delim: string) => string | 0 | string[];
|
|
8
|
+
__lpcBinaryArrayHelper: <T>(left: T[], right: T[], op: string) => T[];
|
|
9
|
+
__lpcBinaryHelper: (left: any, right: any, op: string) => any;
|
|
10
|
+
__lpcIndexAccessHelper: (array: any[], index: number | string | IndexAccessRange) => any;
|
|
11
|
+
};
|
|
12
|
+
interface IndexAccessRange {
|
|
13
|
+
start: number | string | undefined;
|
|
14
|
+
end: number | string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=lpcJsHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lpcJsHelpers.d.ts","sourceRoot":"./src/","sources":["src/compiler/lpcJsHelpers.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,wBAAgB,qBAAqB;sBAYR,MAAM,GAAG,CAAC,SAAS,MAAM;qBAK1B,MAAM,EAAE,GAAG,CAAC,SAAS,MAAM;sCAWV,CAAC,EAAE,SAAS,CAAC,EAAE,MAAM,MAAM,KAAG,CAAC,EAAE;8BAWzC,GAAG,SAAS,GAAG,MAAM,MAAM;oCAuBrB,GAAG,EAAE,SAAS,MAAM,GAAG,MAAM,GAAG,gBAAgB;EA6B1F;AAED,UAAU,gBAAgB;IACtB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lpcbuild.d.ts","sourceRoot":"./src/","sources":["src/compiler/lpcbuild.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BuilderProgram, CompilerOptionsValue, DiagnosticReporter, ParsedCommandLine, ProgramHost, System, CreateProgram } from "./_namespaces/lpc";
|
|
2
|
+
export type ReportEmitErrorSummary = (errorCount: number, filesInError: (ReportFileInError | undefined)[]) => void;
|
|
3
|
+
export interface ReportFileInError {
|
|
4
|
+
fileName: string;
|
|
5
|
+
line: number;
|
|
6
|
+
}
|
|
7
|
+
export interface BuildOptions {
|
|
8
|
+
dry?: boolean;
|
|
9
|
+
force?: boolean;
|
|
10
|
+
verbose?: boolean;
|
|
11
|
+
incremental?: boolean;
|
|
12
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
13
|
+
declaration?: boolean;
|
|
14
|
+
declarationMap?: boolean;
|
|
15
|
+
emitDeclarationOnly?: boolean;
|
|
16
|
+
sourceMap?: boolean;
|
|
17
|
+
inlineSourceMap?: boolean;
|
|
18
|
+
traceResolution?: boolean;
|
|
19
|
+
[option: string]: CompilerOptionsValue | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface SolutionBuilderHost<T extends BuilderProgram> extends ProgramHost<T> {
|
|
22
|
+
getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
|
|
23
|
+
reportDiagnostic: DiagnosticReporter;
|
|
24
|
+
}
|
|
25
|
+
export declare function createSolutionBuilderHost<T extends BuilderProgram = BuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportErrorSummary?: ReportEmitErrorSummary): void;
|
|
26
|
+
//# sourceMappingURL=lpcbuildPublic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lpcbuildPublic.d.ts","sourceRoot":"./src/","sources":["src/compiler/lpcbuildPublic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,cAAc,EAAiC,oBAAoB,EAAc,kBAAkB,EAAiG,iBAAiB,EAAiB,WAAW,EAA0B,MAAM,EAAmK,aAAa,EAAc,MAAM,mBAAmB,CAAC;AAExgB,MAAM,MAAM,sBAAsB,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,iBAAiB,GAAG,SAAS,CAAC,EAAE,KAAK,IAAI,CAAC;AAEnH,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IACzB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAWlB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yCAAyC,CAAC,EAAE,OAAO,CAAC;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAO1B,CAAC,MAAM,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAAC;CACtD;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,cAAc,CAAE,SAAQ,WAAW,CAAC,CAAC,CAAC;IACjF,oBAAoB,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAAC;IACvE,gBAAgB,EAAE,kBAAkB,CAAC;CACxC;AAqHD,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,cAAc,GAAE,cAAc,EAAE,MAAM,SAAM,EAAE,aAAa,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,EAAE,kBAAkB,EAAE,2BAA2B,CAAC,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,EAAE,sBAAsB,QAKvQ"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CompilerOptions, ModuleResolutionHost, ResolutionMode, ResolvedModuleWithFailedLookupLocations, ResolvedProjectReference } from "./_namespaces/lpc.js";
|
|
2
|
+
export interface ModeAwareCache<T> {
|
|
3
|
+
get(key: string, mode: ResolutionMode): T | undefined;
|
|
4
|
+
set(key: string, mode: ResolutionMode, value: T): this;
|
|
5
|
+
delete(key: string, mode: ResolutionMode): this;
|
|
6
|
+
has(key: string, mode: ResolutionMode): boolean;
|
|
7
|
+
forEach(cb: (elem: T, key: string, mode: ResolutionMode) => void): void;
|
|
8
|
+
size(): number;
|
|
9
|
+
}
|
|
10
|
+
export interface PackageJsonInfoCache {
|
|
11
|
+
}
|
|
12
|
+
export interface NonRelativeNameResolutionCache<T> {
|
|
13
|
+
getFromNonRelativeNameCache(nonRelativeName: string, mode: ResolutionMode, directoryName: string, redirectedReference: ResolvedProjectReference | undefined): T | undefined;
|
|
14
|
+
getOrCreateCacheForNonRelativeName(nonRelativeName: string, mode: ResolutionMode, redirectedReference?: ResolvedProjectReference): PerNonRelativeNameCache<T>;
|
|
15
|
+
clear(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Updates with the current compilerOptions the cache will operate with.
|
|
18
|
+
* This updates the redirects map as well if needed so module resolutions are cached if they can across the projects
|
|
19
|
+
*/
|
|
20
|
+
update(options: CompilerOptions): void;
|
|
21
|
+
}
|
|
22
|
+
export interface PerNonRelativeNameCache<T> {
|
|
23
|
+
get(directory: string): T | undefined;
|
|
24
|
+
set(directory: string, result: T): void;
|
|
25
|
+
}
|
|
26
|
+
export type PerModuleNameCache = PerNonRelativeNameCache<ResolvedModuleWithFailedLookupLocations>;
|
|
27
|
+
/**
|
|
28
|
+
* Stored map from non-relative module name to a table: directory -> result of module lookup in this directory
|
|
29
|
+
* We support only non-relative module names because resolution of relative module names is usually more deterministic and thus less expensive.
|
|
30
|
+
*/
|
|
31
|
+
export interface NonRelativeModuleNameResolutionCache extends NonRelativeNameResolutionCache<ResolvedModuleWithFailedLookupLocations>, PackageJsonInfoCache {
|
|
32
|
+
/** @deprecated Use getOrCreateCacheForNonRelativeName */
|
|
33
|
+
getOrCreateCacheForModuleName(nonRelativeModuleName: string, mode: ResolutionMode, redirectedReference?: ResolvedProjectReference): PerModuleNameCache;
|
|
34
|
+
}
|
|
35
|
+
export interface ModuleResolutionCache extends PerDirectoryResolutionCache<ResolvedModuleWithFailedLookupLocations>, NonRelativeModuleNameResolutionCache, PackageJsonInfoCache {
|
|
36
|
+
getPackageJsonInfoCache(): PackageJsonInfoCache;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Cached resolutions per containing directory.
|
|
40
|
+
* This assumes that any module id will have the same resolution for sibling files located in the same folder.
|
|
41
|
+
*/
|
|
42
|
+
export interface PerDirectoryResolutionCache<T> {
|
|
43
|
+
getFromDirectoryCache(name: string, mode: ResolutionMode, directoryName: string, redirectedReference: ResolvedProjectReference | undefined): T | undefined;
|
|
44
|
+
getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference): ModeAwareCache<T>;
|
|
45
|
+
clear(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Updates with the current compilerOptions the cache will operate with.
|
|
48
|
+
* This updates the redirects map as well if needed so module resolutions are cached if they can across the projects
|
|
49
|
+
*/
|
|
50
|
+
update(options: CompilerOptions): void;
|
|
51
|
+
}
|
|
52
|
+
export declare function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): ModuleResolutionCache;
|
|
53
|
+
export declare function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations;
|
|
54
|
+
export declare function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
55
|
+
//# sourceMappingURL=moduleNameResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moduleNameResolver.d.ts","sourceRoot":"./src/","sources":["src/compiler/moduleNameResolver.ts"],"names":[],"mappings":"AACA,OAAO,EAA6D,eAAe,EAAwa,oBAAoB,EAAkL,cAAc,EAAE,uCAAuC,EAAE,wBAAwB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BAAmB,CAAC,EAAE,wBAAwB,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,uCAAuC,CAgFnS;AAkDD,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,CAAC,EAAE,oCAAoC,EAAE,mBAAmB,CAAC,EAAE,wBAAwB,GAAG,uCAAuC,CA2EnR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moduleSpecifiers.d.ts","sourceRoot":"./src/","sources":["src/compiler/moduleSpecifiers.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { ArrayBindingPattern, ArrayLiteralExpression, ArrayTypeNode, ArrowFunction, BinaryExpression, BindingElement, Block, CallExpression, CallSignatureDeclaration, CaseBlock, CaseClause, CatchStatement, ClassDeclaration, ClassExpression, CloneObjectExpression, ComputedPropertyName, ConditionalTypeNode, DefaultClause, DefineDirective, ElementAccessExpression, EmptyStatement, ExpressionStatement, ExpressionWithTypeArguments, FloatLiteral, ForStatement, FunctionDeclaration, FunctionExpression, FunctionTypeNode, Identifier, IfStatement, IncludeDirective, IndexedAccessTypeNode, InheritDeclaration, InlineClosureExpression, InterfaceDeclaration, IntersectionTypeNode, IntLiteral, JSDoc, JSDocAllType, JSDocClassTag, JSDocDeprecatedTag, JSDocFunctionType, JSDocImplementsTag, JSDocLink, JSDocLinkCode, JSDocLinkPlain, JSDocMemberName, JSDocNameReference, JSDocOptionalType, JSDocOverloadTag, JSDocParameterTag, JSDocPropertyTag, JSDocReturnTag, JSDocSatisfiesTag, JSDocSignature, JSDocTemplateTag, JSDocText, JSDocThisTag, JSDocThrowsTag, JSDocTypedefTag, JSDocTypeExpression, JSDocTypeLiteral, JSDocTypeTag, JSDocUnknownType, JSDocVariableTag, JSDocVariadicType, LabeledStatement, LiteralTypeNode, MethodDeclaration, NewExpression, Node, ObjectLiteralExpression, OmittedExpression, ParameterDeclaration, ParenthesizedExpression, ParenthesizedTypeNode, PartiallyEmittedExpression, PrefixUnaryExpression, PropertyAccessExpression, PropertyAssignment, PropertyDeclaration, PropertySignature, QualifiedName, ShorthandPropertyAssignment, SourceFile, SpreadElement, StringLiteral, StructDeclaration, StructTypeNode, SuperAccessExpression, SwitchStatement, ThisTypeNode, TupleTypeNode, TypeAliasDeclaration, TypeLiteralNode, TypeParameterDeclaration, TypePredicateNode, TypeReferenceNode, UnionTypeNode, VariableDeclaration, VariableDeclarationList, VariableStatement } from "./_namespaces/lpc";
|
|
2
|
+
export declare function isBinaryExpression(node: Node): node is BinaryExpression;
|
|
3
|
+
export declare function isPropertyAccessExpression(node: Node): node is PropertyAccessExpression;
|
|
4
|
+
export declare function isIdentifier(node: Node): node is Identifier;
|
|
5
|
+
export declare function isStructTypeNode(node: Node): node is StructTypeNode;
|
|
6
|
+
export declare function isVariableStatement(node: Node): node is VariableStatement;
|
|
7
|
+
export declare function isFunctionDeclaration(node: Node): node is FunctionDeclaration;
|
|
8
|
+
export declare function isBlock(node: Node): node is Block;
|
|
9
|
+
export declare function isCallExpression(node: Node): node is CallExpression;
|
|
10
|
+
export declare function isInheritDeclaration(node: Node): node is InheritDeclaration;
|
|
11
|
+
export declare function isCloneObjectExpression(node: Node): node is CloneObjectExpression;
|
|
12
|
+
export declare function isIncludeDirective(node: Node): node is IncludeDirective;
|
|
13
|
+
export declare function isDefineDirective(node: Node): node is DefineDirective;
|
|
14
|
+
export declare function isVariableDeclaration(node: Node): node is VariableDeclaration;
|
|
15
|
+
export declare function isVariableDeclarationList(node: Node): node is VariableDeclarationList;
|
|
16
|
+
export declare function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression;
|
|
17
|
+
export declare function isFunctionExpression(node: Node): node is FunctionExpression;
|
|
18
|
+
export declare function isIntLiteral(node: Node): node is IntLiteral;
|
|
19
|
+
export declare function isFloatLiteral(node: Node): node is FloatLiteral;
|
|
20
|
+
export declare function isStringLiteral(node: Node): node is StringLiteral;
|
|
21
|
+
export declare function isTypeParameterDeclaration(node: Node): node is TypeParameterDeclaration;
|
|
22
|
+
export declare function isParameter(node: Node): node is ParameterDeclaration;
|
|
23
|
+
export declare function isArrayTypeNode(node: Node): node is ArrayTypeNode;
|
|
24
|
+
export declare function isUnionTypeNode(node: Node): node is UnionTypeNode;
|
|
25
|
+
export declare function isIntersectionTypeNode(node: Node): node is IntersectionTypeNode;
|
|
26
|
+
export declare function isSourceFile(node: Node): node is SourceFile;
|
|
27
|
+
export declare function isJSDocSignature(node: Node): node is JSDocSignature;
|
|
28
|
+
export declare function isJSDoc(node: Node): node is JSDoc;
|
|
29
|
+
export declare function isExpressionStatement(node: Node): node is ExpressionStatement;
|
|
30
|
+
export declare function isDecorator(node: Node): boolean;
|
|
31
|
+
export declare function isIfStatement(node: Node): node is IfStatement;
|
|
32
|
+
export declare function isDefaultClause(node: Node): node is DefaultClause;
|
|
33
|
+
export declare function isInlineClosureExpression(node: Node): node is InlineClosureExpression;
|
|
34
|
+
export declare function isParenthesizedExpression(node: Node): node is ParenthesizedExpression;
|
|
35
|
+
export declare function isPrefixUnaryExpression(node: Node): node is PrefixUnaryExpression;
|
|
36
|
+
export declare function isJSDocTemplateTag(node: Node): node is JSDocTemplateTag;
|
|
37
|
+
export declare function isStructDeclaration(node: Node): node is StructDeclaration;
|
|
38
|
+
export declare function isShorthandPropertyAssignment(node: Node): node is ShorthandPropertyAssignment;
|
|
39
|
+
export declare function isJSDocDeprecatedTag(node: Node): node is JSDocDeprecatedTag;
|
|
40
|
+
export declare function isBindingElement(node: Node): node is BindingElement;
|
|
41
|
+
export declare function isPropertyDeclaration(node: Node): node is PropertyDeclaration;
|
|
42
|
+
export declare function isForStatement(node: Node): node is ForStatement;
|
|
43
|
+
export declare function isSpreadAssignment(node: Node): boolean;
|
|
44
|
+
export declare function isLiteralTypeNode(node: Node): node is LiteralTypeNode;
|
|
45
|
+
export declare function isElementAccessExpression(node: Node): node is ElementAccessExpression;
|
|
46
|
+
export declare function isIndexedAccessTypeNode(node: Node): node is IndexedAccessTypeNode;
|
|
47
|
+
export declare function isArrayBindingPattern(node: Node): node is ArrayBindingPattern;
|
|
48
|
+
export declare function isSwitchStatement(node: Node): node is SwitchStatement;
|
|
49
|
+
export declare function isComputedPropertyName(node: Node): node is ComputedPropertyName;
|
|
50
|
+
export declare function isQualifiedName(node: Node): node is QualifiedName;
|
|
51
|
+
export declare function isNewExpression(node: Node): node is NewExpression;
|
|
52
|
+
export declare function isJSDocTypedefTag(node: Node): node is JSDocTypedefTag;
|
|
53
|
+
export declare function isPrivateIdentifier(node: Node): boolean;
|
|
54
|
+
export declare function isObjectLiteralExpression(node: Node): node is ObjectLiteralExpression;
|
|
55
|
+
export declare function isParenthesizedTypeNode(node: Node): node is ParenthesizedTypeNode;
|
|
56
|
+
export declare function isJSDocParameterTag(node: Node): node is JSDocParameterTag;
|
|
57
|
+
export declare function isJSDocVariableTag(node: Node): node is JSDocVariableTag;
|
|
58
|
+
export declare function isPropertyAssignment(node: Node): node is PropertyAssignment;
|
|
59
|
+
export declare function isTypeReferenceNode(node: Node): node is TypeReferenceNode;
|
|
60
|
+
export declare function isTypeLiteralNode(node: Node): node is TypeLiteralNode;
|
|
61
|
+
export declare function isConstructorDeclaration(node: Node): boolean;
|
|
62
|
+
export declare function isClassDeclaration(node: Node): node is ClassDeclaration;
|
|
63
|
+
export declare function isArrowFunction(node: Node): node is ArrowFunction;
|
|
64
|
+
export declare function isVoidExpression(node: Node): node is Node;
|
|
65
|
+
export declare function isLabeledStatement(node: Node): node is LabeledStatement;
|
|
66
|
+
export declare function isNoSubstitutionTemplateLiteral(node: Node): boolean;
|
|
67
|
+
export declare function isPropertySignature(node: Node): node is PropertySignature;
|
|
68
|
+
export declare function isNumericLiteral(node: Node): node is IntLiteral | FloatLiteral;
|
|
69
|
+
export declare function isModuleBlock(node: Node): boolean;
|
|
70
|
+
export declare function isMethodDeclaration(node: Node): node is MethodDeclaration;
|
|
71
|
+
export declare function isJSDocLink(node: Node): node is JSDocLink;
|
|
72
|
+
export declare function isJSDocLinkCode(node: Node): node is JSDocLinkCode;
|
|
73
|
+
export declare function isJSDocLinkPlain(node: Node): node is JSDocLinkPlain;
|
|
74
|
+
export declare function isFunctionTypeNode(node: Node): node is FunctionTypeNode;
|
|
75
|
+
export declare function isJSDocOverloadTag(node: Node): node is JSDocOverloadTag;
|
|
76
|
+
export declare function isJSDocTypeLiteral(node: Node): node is JSDocTypeLiteral;
|
|
77
|
+
export declare function isJSDocText(node: Node): node is JSDocText;
|
|
78
|
+
export declare function isCaseClause(node: Node): node is CaseClause;
|
|
79
|
+
export declare function isJSDocImportTag(node: Node): boolean;
|
|
80
|
+
export declare function isCaseBlock(node: Node): node is CaseBlock;
|
|
81
|
+
export declare function isSpreadElement(node: Node): node is SpreadElement;
|
|
82
|
+
export declare function isJSDocReturnTag(node: Node): node is JSDocReturnTag;
|
|
83
|
+
export declare function isJSDocTypeTag(node: Node): node is JSDocTypeTag;
|
|
84
|
+
export declare function isTypeAliasDeclaration(node: Node): node is TypeAliasDeclaration;
|
|
85
|
+
export declare function isOmittedExpression(node: Node): node is OmittedExpression;
|
|
86
|
+
export declare function isClassExpression(node: Node): node is ClassExpression;
|
|
87
|
+
export declare function isJSDocSatisfiesTag(node: Node): node is JSDocSatisfiesTag;
|
|
88
|
+
export declare function isTypePredicateNode(node: Node): node is TypePredicateNode;
|
|
89
|
+
export declare function isJSDocThisTag(node: Node): node is JSDocThisTag;
|
|
90
|
+
export declare function isJSDocThrowsTag(node: Node): node is JSDocThrowsTag;
|
|
91
|
+
export declare function isArrayLiteralExpression(node: Node): node is ArrayLiteralExpression;
|
|
92
|
+
export declare function isPartiallyEmittedExpression(node: Node): node is PartiallyEmittedExpression;
|
|
93
|
+
export declare function isJSDocImplementsTag(node: Node): node is JSDocImplementsTag;
|
|
94
|
+
export declare function isConditionalTypeNode(node: Node): node is ConditionalTypeNode;
|
|
95
|
+
export declare function isThisTypeNode(node: Node): node is ThisTypeNode;
|
|
96
|
+
export declare function isJSDocAllType(node: Node): node is JSDocAllType;
|
|
97
|
+
export declare function isJSDocUnknownType(node: Node): node is JSDocUnknownType;
|
|
98
|
+
export declare function isJSDocVariadicType(node: Node): node is JSDocVariadicType;
|
|
99
|
+
export declare function isJSDocOptionalType(node: Node): node is JSDocOptionalType;
|
|
100
|
+
export declare function isExpressionWithTypeArguments(node: Node): node is ExpressionWithTypeArguments;
|
|
101
|
+
export declare function isJSDocFunctionType(node: Node): node is JSDocFunctionType;
|
|
102
|
+
export declare function isJSDocPropertyTag(node: Node): node is JSDocPropertyTag;
|
|
103
|
+
export declare function isCallSignatureDeclaration(node: Node): node is CallSignatureDeclaration;
|
|
104
|
+
export declare function isEmptyStatement(node: Node): node is EmptyStatement;
|
|
105
|
+
export declare function isTupleTypeNode(node: Node): node is TupleTypeNode;
|
|
106
|
+
export declare function isJSDocClassTag(node: Node): node is JSDocClassTag;
|
|
107
|
+
export declare function isEnumDeclaration(node: Node): boolean;
|
|
108
|
+
export declare function isJSDocNameReference(node: Node): node is JSDocNameReference;
|
|
109
|
+
export declare function isJSDocMemberName(node: Node): node is JSDocMemberName;
|
|
110
|
+
export declare function isExportAssignment(node: Node): boolean;
|
|
111
|
+
export declare function isTypeOperatorNode(node: Node): boolean;
|
|
112
|
+
export declare function isInterfaceDeclaration(node: Node): node is InterfaceDeclaration;
|
|
113
|
+
export declare function isSuperAccessExpression(node: Node): node is SuperAccessExpression;
|
|
114
|
+
export declare function isCatchStatement(node: Node): node is CatchStatement;
|
|
115
|
+
//# sourceMappingURL=nodeTests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeTests.d.ts","sourceRoot":"./src/","sources":["src/compiler/nodeTests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE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0 +1,65 @@
|
|
|
1
|
+
import { Diagnostic, HasJSDoc, JSDoc, JSDocNameReference, JSDocParsingMode, JSDocTypeExpression, JsonSourceFile, LanguageVariant, LpcFileHandler, Node, NodeArray, ResolutionMode, ScriptKind, ScriptTarget, SourceFile, TextChangeRange } from "./_namespaces/lpc";
|
|
2
|
+
export declare namespace LpcParser {
|
|
3
|
+
function parseJsonText(fileName: string, sourceText: string, languageVersion?: ScriptTarget, syntaxCursor?: IncrementalParser.SyntaxCursor, setParentNodes?: boolean): JsonSourceFile;
|
|
4
|
+
function parseSourceFile(fileName: string, sourceText: string, globalIncludes: string[], configDefines: ReadonlyMap<string, string>, fileHandler: LpcFileHandler, languageVersion: ScriptTarget, syntaxCursor: IncrementalParser.SyntaxCursor | undefined, setParentNodes?: boolean, scriptKind?: ScriptKind, setExternalModuleIndicator?: (file: SourceFile) => void, jsDocParsingMode?: JSDocParsingMode, languageVariant?: LanguageVariant, reportParsedDefines?: boolean): SourceFile;
|
|
5
|
+
function fixupParentReferences(rootNode: Node): void;
|
|
6
|
+
namespace JSDocParser {
|
|
7
|
+
function parseJSDocComment(parent: HasJSDoc, start: number, length: number): JSDoc | undefined;
|
|
8
|
+
function parseJSDocTypeExpression(mayOmitBraces?: boolean): JSDocTypeExpression;
|
|
9
|
+
function parseJSDocNameReference(): JSDocNameReference;
|
|
10
|
+
function parseIsolatedJSDocComment(content: string, start: number | undefined, length: number | undefined): {
|
|
11
|
+
jsDoc: JSDoc;
|
|
12
|
+
diagnostics: Diagnostic[];
|
|
13
|
+
} | undefined;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes
|
|
18
|
+
* stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise,
|
|
19
|
+
* embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns
|
|
20
|
+
* a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned.
|
|
21
|
+
*
|
|
22
|
+
* @param node a given node to visit its children
|
|
23
|
+
* @param cbNode a callback to be invoked for all child nodes
|
|
24
|
+
* @param cbNodes a callback to be invoked for embedded array
|
|
25
|
+
*
|
|
26
|
+
* @remarks `forEachChild` must visit the children of a node in the order
|
|
27
|
+
* that they appear in the source code. The language service depends on this property to locate nodes by position.
|
|
28
|
+
*/
|
|
29
|
+
export declare function forEachChild<T>(node: Node, cbNode: (node: Node) => T | undefined, cbNodes?: (nodes: NodeArray<Node>) => T | undefined): T | undefined;
|
|
30
|
+
export declare function createSourceFile(fileName: string, sourceText: string, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: ScriptKind, languageVariant?: LanguageVariant): SourceFile;
|
|
31
|
+
export interface CreateSourceFileOptions {
|
|
32
|
+
languageVersion: ScriptTarget;
|
|
33
|
+
/**
|
|
34
|
+
* Controls the format the file is detected as - this can be derived from only the path
|
|
35
|
+
* and files on disk, but needs to be done with a module resolution cache in scope to be performant.
|
|
36
|
+
* This is usually `undefined` for compilations that do not have `moduleResolution` values of `node16` or `nodenext`.
|
|
37
|
+
*/
|
|
38
|
+
impliedNodeFormat?: ResolutionMode;
|
|
39
|
+
/**
|
|
40
|
+
* Controls how module-y-ness is set for the given file. Usually the result of calling
|
|
41
|
+
* `getSetExternalModuleIndicator` on a valid `CompilerOptions` object. If not present, the default
|
|
42
|
+
* check specified by `isFileProbablyExternalModule` will be used to set the field.
|
|
43
|
+
*/
|
|
44
|
+
setExternalModuleIndicator?: (file: SourceFile) => void;
|
|
45
|
+
reportParsedDefines?: boolean;
|
|
46
|
+
globalIncludes?: string[];
|
|
47
|
+
/** set of defines provided from lpc-config */
|
|
48
|
+
configDefines?: ReadonlyMap<string, string>;
|
|
49
|
+
fileHandler: LpcFileHandler;
|
|
50
|
+
}
|
|
51
|
+
export declare function updateSourceFile(sourceFile: SourceFile, newText: string, globalIncludes: string[], configDefines: ReadonlyMap<string, string>, fileHandler: LpcFileHandler, textChangeRange: TextChangeRange, aggressiveChecks: boolean, languageVariant: LanguageVariant): SourceFile;
|
|
52
|
+
export declare function isExternalModule(file: SourceFile): boolean;
|
|
53
|
+
declare namespace IncrementalParser {
|
|
54
|
+
interface SyntaxCursor {
|
|
55
|
+
currentNode(position: number): Node;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Parse json text into SyntaxTree and return node and parse errors if any
|
|
60
|
+
* @param fileName
|
|
61
|
+
* @param sourceText
|
|
62
|
+
*/
|
|
63
|
+
export declare function parseJsonText(fileName: string, sourceText: string): JsonSourceFile;
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"./src/","sources":["src/compiler/parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwd,UAAU,EAAuV,QAAQ,EAA8N,KAAK,EAAsL,kBAAkB,EAAyD,gBAAgB,EAAoP,mBAAmB,EAAiK,cAAc,EAAoI,eAAe,EAA+E,cAAc,EAA8Q,IAAI,EAAE,SAAS,EAAqsB,cAAc,EAAmB,UAAU,EAAE,YAAY,EAA+B,UAAU,EAA2I,eAAe,EAAy5C,MAAM,mBAAmB,CAAC;AAwCnnJ,yBAAiB,SAAS,CAAC;IAgPvB,SAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,GAAE,YAA+B,EAAE,YAAY,CAAC,EAAE,iBAAiB,CAAC,YAAY,EAAE,cAAc,UAAQ,GAAG,cAAc,CAuF3M;IAseD,SAAgB,eAAe,CAC3B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EAAE,EACxB,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EAC1C,WAAW,EAAE,cAAc,EAC3B,eAAe,EAAE,YAAY,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AE,UAAU,EAAE,eAAe,CAAC,EAAE,eAAe,GAAG,UAAU,CA0BvO;AAED,MAAM,WAAW,uBAAuB;IACpC,eAAe,EAAE,YAAY,CAAC;IAC9B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,cAAc,CAAC;IACnC;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAIxD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,8CAA8C;IAC9C,aAAa,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,WAAW,EAAE,cAAc,CAAC;CAC/B;AAiCD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,WAAW,CAAC,MAAM,EAAC,MAAM,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,SAAQ,EAAE,eAAe,EAAE,eAAe,GAAG,UAAU,CAQpR;AAGD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAE1D;AAED,kBAAU,iBAAiB,CAAC;IAIxB,UAAiB,YAAY;QACzB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KACvC;CACJ;AA2CD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAElF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"./src/","sources":["src/compiler/path.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"perfLoger.d.ts","sourceRoot":"./src/","sources":["src/compiler/perfLoger.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performance.d.ts","sourceRoot":"./src/","sources":["src/compiler/performance.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performanceCore.d.ts","sourceRoot":"./src/","sources":["src/compiler/performanceCore.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { CompilerHost, CompilerOptions, CreateProgramOptions, Diagnostic, Program, ProjectReference, SourceFile, DiagnosticMessageChain, CancellationToken, ResolutionMode, StringLiteral, ModuleKind, ModuleResolutionHost, PackageJsonInfoCache, ResolvedConfigFileName } from "./_namespaces/lpc.js";
|
|
2
|
+
/**
|
|
3
|
+
* Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'
|
|
4
|
+
* that represent a compilation unit.
|
|
5
|
+
*
|
|
6
|
+
* Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and
|
|
7
|
+
* triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in.
|
|
8
|
+
*
|
|
9
|
+
* @param createProgramOptions - The options for creating a program.
|
|
10
|
+
* @returns A 'Program' object.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createProgram(createProgramOptions: CreateProgramOptions): Program;
|
|
13
|
+
/**
|
|
14
|
+
* Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'
|
|
15
|
+
* that represent a compilation unit.
|
|
16
|
+
*
|
|
17
|
+
* Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and
|
|
18
|
+
* triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in.
|
|
19
|
+
*
|
|
20
|
+
* @param rootNames - A set of root files.
|
|
21
|
+
* @param options - The compiler options which should be used.
|
|
22
|
+
* @param host - The host interacts with the underlying file system.
|
|
23
|
+
* @param oldProgram - Reuses an old program structure.
|
|
24
|
+
* @param configFileParsingDiagnostics - error during config file parsing
|
|
25
|
+
* @returns A 'Program' object.
|
|
26
|
+
*/
|
|
27
|
+
export declare function createProgram(rootNames: readonly string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: readonly Diagnostic[]): Program;
|
|
28
|
+
export declare function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost;
|
|
29
|
+
export declare function resolveTripleslashReference(moduleName: string, containingFile: string): string;
|
|
30
|
+
export declare function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
|
|
31
|
+
/**
|
|
32
|
+
* Use `program.getModeForUsageLocation`, which retrieves the correct `compilerOptions`, instead of this function whenever possible.
|
|
33
|
+
* Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import
|
|
34
|
+
* attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may
|
|
35
|
+
* depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other
|
|
36
|
+
* `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no
|
|
37
|
+
* impact on module resolution, emit, or type checking.
|
|
38
|
+
* @param file The file the import or import-like reference is contained within
|
|
39
|
+
* @param usage The module reference string
|
|
40
|
+
* @param compilerOptions The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options
|
|
41
|
+
* should be the options of the referenced project, not the referencing project.
|
|
42
|
+
* @returns The final resolution mode of the import
|
|
43
|
+
*/
|
|
44
|
+
export declare function getModeForUsageLocation(file: {
|
|
45
|
+
impliedNodeFormat?: ResolutionMode;
|
|
46
|
+
}, usage: StringLiteral, compilerOptions: CompilerOptions): ModuleKind;
|
|
47
|
+
/**
|
|
48
|
+
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
|
49
|
+
* `options` parameter.
|
|
50
|
+
*
|
|
51
|
+
* @param fileName The file name to check the format of (it need not exist on disk)
|
|
52
|
+
* @param [packageJsonInfoCache] A cache for package file lookups - it's best to have a cache when this function is called often
|
|
53
|
+
* @param host The ModuleResolutionHost which can perform the filesystem lookups for package json data
|
|
54
|
+
* @param options The compiler options to perform the analysis under - relevant options are `moduleResolution` and `traceResolution`
|
|
55
|
+
* @returns `undefined` if the path has no relevant implied format, `ModuleKind.ESNext` for esm format, and `ModuleKind.CommonJS` for cjs format
|
|
56
|
+
*/
|
|
57
|
+
export declare function getImpliedNodeFormatForFile(fileName: string, packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): ResolutionMode;
|
|
58
|
+
/**
|
|
59
|
+
* Returns the target config filename of a project reference.
|
|
60
|
+
* Note: The file might not exist.
|
|
61
|
+
*/
|
|
62
|
+
export declare function resolveProjectReferencePath(ref: ProjectReference): ResolvedConfigFileName;
|
|
63
|
+
export interface FormatDiagnosticsHost {
|
|
64
|
+
getCurrentDirectory(): string;
|
|
65
|
+
getCanonicalFileName(fileName: string): string;
|
|
66
|
+
getNewLine(): string;
|
|
67
|
+
}
|
|
68
|
+
export declare function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string;
|
|
69
|
+
export declare function getPreEmitDiagnostics(program: Program, sourceFile?: SourceFile, cancellationToken?: CancellationToken): readonly Diagnostic[];
|
|
70
|
+
export declare function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined;
|
|
71
|
+
export declare function formatDiagnosticsWithColorAndContext(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
|
|
72
|
+
//# sourceMappingURL=program.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program.d.ts","sourceRoot":"./src/","sources":["src/compiler/program.ts"],"names":[],"mappings":"AACA,OAAO,EAAmK,YAAY,EAAE,eAAe,EAAwF,oBAAoB,EAAoB,UAAU,EAAoX,OAAO,EAAe,gBAAgB,EAAqI,UAAU,EAAib,sBAAsB,EAAY,iBAAiB,EAAiY,cAAc,EAAoC,aAAa,EA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