brighterscript 1.0.0-alpha.5 → 1.0.0-alpha.50
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 +76 -138
- package/bsconfig.schema.json +121 -5
- package/dist/ActionPipeline.d.ts +10 -0
- package/dist/ActionPipeline.js +40 -0
- package/dist/ActionPipeline.js.map +1 -0
- package/dist/AstValidationSegmenter.d.ts +45 -0
- package/dist/AstValidationSegmenter.js +322 -0
- package/dist/AstValidationSegmenter.js.map +1 -0
- package/dist/BsConfig.d.ts +72 -39
- package/dist/BusyStatusTracker.d.ts +61 -0
- package/dist/BusyStatusTracker.js +148 -0
- package/dist/BusyStatusTracker.js.map +1 -0
- package/dist/Cache.d.ts +3 -8
- package/dist/Cache.js +9 -14
- package/dist/Cache.js.map +1 -1
- package/dist/CacheVerifier.d.ts +7 -0
- package/dist/CacheVerifier.js +20 -0
- package/dist/CacheVerifier.js.map +1 -0
- package/dist/CodeActionUtil.d.ts +12 -4
- package/dist/CodeActionUtil.js +22 -5
- package/dist/CodeActionUtil.js.map +1 -1
- package/dist/CommentFlagProcessor.d.ts +7 -6
- package/dist/CommentFlagProcessor.js +11 -8
- package/dist/CommentFlagProcessor.js.map +1 -1
- package/dist/CrossScopeValidator.d.ts +68 -0
- package/dist/CrossScopeValidator.js +642 -0
- package/dist/CrossScopeValidator.js.map +1 -0
- package/dist/DependencyGraph.d.ts +8 -3
- package/dist/DependencyGraph.js +49 -16
- package/dist/DependencyGraph.js.map +1 -1
- package/dist/DiagnosticCollection.d.ts +21 -5
- package/dist/DiagnosticCollection.js +77 -24
- package/dist/DiagnosticCollection.js.map +1 -1
- package/dist/DiagnosticFilterer.d.ts +27 -6
- package/dist/DiagnosticFilterer.js +273 -60
- package/dist/DiagnosticFilterer.js.map +1 -1
- package/dist/DiagnosticManager.d.ts +82 -0
- package/dist/DiagnosticManager.js +406 -0
- package/dist/DiagnosticManager.js.map +1 -0
- package/dist/DiagnosticMessages.d.ts +558 -196
- package/dist/DiagnosticMessages.js +870 -340
- package/dist/DiagnosticMessages.js.map +1 -1
- package/dist/DiagnosticSeverityAdjuster.d.ts +7 -0
- package/dist/DiagnosticSeverityAdjuster.js +45 -0
- package/dist/DiagnosticSeverityAdjuster.js.map +1 -0
- package/dist/FunctionScope.d.ts +28 -0
- package/dist/FunctionScope.js +52 -0
- package/dist/FunctionScope.js.map +1 -0
- package/dist/KeyedThrottler.d.ts +3 -3
- package/dist/KeyedThrottler.js +3 -3
- package/dist/KeyedThrottler.js.map +1 -1
- package/dist/LanguageServer.d.ts +100 -105
- package/dist/LanguageServer.js +444 -745
- package/dist/LanguageServer.js.map +1 -1
- package/dist/Logger.d.ts +17 -13
- package/dist/Logger.js +64 -34
- package/dist/Logger.js.map +1 -1
- package/dist/PluginInterface.d.ts +32 -10
- package/dist/PluginInterface.js +117 -7
- package/dist/PluginInterface.js.map +1 -1
- package/dist/Program.d.ts +241 -98
- package/dist/Program.js +1432 -717
- package/dist/Program.js.map +1 -1
- package/dist/ProgramBuilder.d.ts +47 -23
- package/dist/ProgramBuilder.js +224 -178
- package/dist/ProgramBuilder.js.map +1 -1
- package/dist/Scope.d.ts +149 -109
- package/dist/Scope.js +557 -550
- package/dist/Scope.js.map +1 -1
- package/dist/SemanticTokenUtils.js +5 -1
- package/dist/SemanticTokenUtils.js.map +1 -1
- package/dist/Stopwatch.d.ts +4 -0
- package/dist/Stopwatch.js +8 -1
- package/dist/Stopwatch.js.map +1 -1
- package/dist/SymbolTable.d.ts +136 -24
- package/dist/SymbolTable.js +565 -64
- package/dist/SymbolTable.js.map +1 -1
- package/dist/SymbolTypeFlag.d.ts +9 -0
- package/dist/SymbolTypeFlag.js +14 -0
- package/dist/SymbolTypeFlag.js.map +1 -0
- package/dist/Throttler.d.ts +12 -0
- package/dist/Throttler.js +39 -0
- package/dist/Throttler.js.map +1 -1
- package/dist/Watcher.d.ts +0 -3
- package/dist/Watcher.js +0 -3
- package/dist/Watcher.js.map +1 -1
- package/dist/XmlScope.d.ts +5 -15
- package/dist/XmlScope.js +34 -90
- package/dist/XmlScope.js.map +1 -1
- package/dist/astUtils/CachedLookups.d.ts +50 -0
- package/dist/astUtils/CachedLookups.js +334 -0
- package/dist/astUtils/CachedLookups.js.map +1 -0
- package/dist/astUtils/CachedLookups.spec.js +39 -0
- package/dist/astUtils/CachedLookups.spec.js.map +1 -0
- package/dist/astUtils/Editor.d.ts +69 -0
- package/dist/astUtils/Editor.js +245 -0
- package/dist/astUtils/Editor.js.map +1 -0
- package/dist/astUtils/Editor.spec.js +258 -0
- package/dist/astUtils/Editor.spec.js.map +1 -0
- package/dist/astUtils/creators.d.ts +54 -19
- package/dist/astUtils/creators.js +242 -42
- package/dist/astUtils/creators.js.map +1 -1
- package/dist/astUtils/creators.spec.js +5 -5
- package/dist/astUtils/creators.spec.js.map +1 -1
- package/dist/astUtils/reflection.d.ts +196 -85
- package/dist/astUtils/reflection.js +497 -144
- package/dist/astUtils/reflection.js.map +1 -1
- package/dist/astUtils/reflection.spec.js +267 -167
- package/dist/astUtils/reflection.spec.js.map +1 -1
- package/dist/astUtils/stackedVisitor.js.map +1 -1
- package/dist/astUtils/stackedVisitor.spec.js +14 -14
- package/dist/astUtils/stackedVisitor.spec.js.map +1 -1
- package/dist/astUtils/visitors.d.ts +116 -53
- package/dist/astUtils/visitors.js +95 -15
- package/dist/astUtils/visitors.js.map +1 -1
- package/dist/astUtils/visitors.spec.js +629 -51
- package/dist/astUtils/visitors.spec.js.map +1 -1
- package/dist/astUtils/xml.d.ts +9 -8
- package/dist/astUtils/xml.js +12 -7
- package/dist/astUtils/xml.js.map +1 -1
- package/dist/bscPlugin/BscPlugin.d.ts +24 -4
- package/dist/bscPlugin/BscPlugin.js +88 -4
- package/dist/bscPlugin/BscPlugin.js.map +1 -1
- package/dist/bscPlugin/CallExpressionInfo.d.ts +36 -0
- package/dist/bscPlugin/CallExpressionInfo.js +143 -0
- package/dist/bscPlugin/CallExpressionInfo.js.map +1 -0
- package/dist/bscPlugin/FileWriter.d.ts +6 -0
- package/dist/bscPlugin/FileWriter.js +24 -0
- package/dist/bscPlugin/FileWriter.js.map +1 -0
- package/dist/bscPlugin/SignatureHelpUtil.d.ts +10 -0
- package/dist/bscPlugin/SignatureHelpUtil.js +137 -0
- package/dist/bscPlugin/SignatureHelpUtil.js.map +1 -0
- package/dist/bscPlugin/codeActions/CodeActionsProcessor.d.ts +6 -5
- package/dist/bscPlugin/codeActions/CodeActionsProcessor.js +173 -27
- package/dist/bscPlugin/codeActions/CodeActionsProcessor.js.map +1 -1
- package/dist/bscPlugin/codeActions/CodeActionsProcessor.spec.js +138 -21
- package/dist/bscPlugin/codeActions/CodeActionsProcessor.spec.js.map +1 -1
- package/dist/bscPlugin/completions/CompletionsProcessor.d.ts +65 -0
- package/dist/bscPlugin/completions/CompletionsProcessor.js +633 -0
- package/dist/bscPlugin/completions/CompletionsProcessor.js.map +1 -0
- package/dist/bscPlugin/completions/CompletionsProcessor.spec.js +2512 -0
- package/dist/bscPlugin/completions/CompletionsProcessor.spec.js.map +1 -0
- package/dist/bscPlugin/definition/DefinitionProvider.d.ts +13 -0
- package/dist/bscPlugin/definition/DefinitionProvider.js +212 -0
- package/dist/bscPlugin/definition/DefinitionProvider.js.map +1 -0
- package/dist/bscPlugin/definition/DefinitionProvider.spec.js +87 -0
- package/dist/bscPlugin/definition/DefinitionProvider.spec.js.map +1 -0
- package/dist/bscPlugin/fileProviders/FileProvider.d.ts +9 -0
- package/dist/bscPlugin/fileProviders/FileProvider.js +51 -0
- package/dist/bscPlugin/fileProviders/FileProvider.js.map +1 -0
- package/dist/bscPlugin/hover/HoverProcessor.d.ts +18 -0
- package/dist/bscPlugin/hover/HoverProcessor.js +230 -0
- package/dist/bscPlugin/hover/HoverProcessor.js.map +1 -0
- package/dist/bscPlugin/hover/HoverProcessor.spec.js +991 -0
- package/dist/bscPlugin/hover/HoverProcessor.spec.js.map +1 -0
- package/dist/bscPlugin/references/ReferencesProvider.d.ts +12 -0
- package/dist/bscPlugin/references/ReferencesProvider.js +57 -0
- package/dist/bscPlugin/references/ReferencesProvider.js.map +1 -0
- package/dist/bscPlugin/references/ReferencesProvider.spec.d.ts +1 -0
- package/dist/bscPlugin/references/ReferencesProvider.spec.js +51 -0
- package/dist/bscPlugin/references/ReferencesProvider.spec.js.map +1 -0
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.d.ts +14 -0
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.js +164 -0
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.js.map +1 -0
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.spec.d.ts +1 -0
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.spec.js +564 -0
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.spec.js.map +1 -0
- package/dist/bscPlugin/serialize/BslibInjector.spec.d.ts +1 -0
- package/dist/bscPlugin/serialize/BslibInjector.spec.js +33 -0
- package/dist/bscPlugin/serialize/BslibInjector.spec.js.map +1 -0
- package/dist/bscPlugin/serialize/BslibManager.d.ts +12 -0
- package/dist/bscPlugin/serialize/BslibManager.js +46 -0
- package/dist/bscPlugin/serialize/BslibManager.js.map +1 -0
- package/dist/bscPlugin/serialize/FileSerializer.d.ts +9 -0
- package/dist/bscPlugin/serialize/FileSerializer.js +75 -0
- package/dist/bscPlugin/serialize/FileSerializer.js.map +1 -0
- package/dist/bscPlugin/symbols/DocumentSymbolProcessor.d.ts +7 -0
- package/dist/bscPlugin/symbols/DocumentSymbolProcessor.js +22 -0
- package/dist/bscPlugin/symbols/DocumentSymbolProcessor.js.map +1 -0
- package/dist/bscPlugin/symbols/DocumentSymbolProcessor.spec.d.ts +1 -0
- package/dist/bscPlugin/symbols/DocumentSymbolProcessor.spec.js +291 -0
- package/dist/bscPlugin/symbols/DocumentSymbolProcessor.spec.js.map +1 -0
- package/dist/bscPlugin/symbols/WorkspaceSymbolProcessor.d.ts +7 -0
- package/dist/bscPlugin/symbols/WorkspaceSymbolProcessor.js +26 -0
- package/dist/bscPlugin/symbols/WorkspaceSymbolProcessor.js.map +1 -0
- package/dist/bscPlugin/symbols/WorkspaceSymbolProcessor.spec.d.ts +1 -0
- package/dist/bscPlugin/symbols/WorkspaceSymbolProcessor.spec.js +245 -0
- package/dist/bscPlugin/symbols/WorkspaceSymbolProcessor.spec.js.map +1 -0
- package/dist/bscPlugin/symbols/symbolUtils.d.ts +5 -0
- package/dist/bscPlugin/symbols/symbolUtils.js +141 -0
- package/dist/bscPlugin/symbols/symbolUtils.js.map +1 -0
- package/dist/bscPlugin/transpile/BrsFileTranspileProcessor.d.ts +27 -0
- package/dist/bscPlugin/transpile/BrsFileTranspileProcessor.js +418 -0
- package/dist/bscPlugin/transpile/BrsFileTranspileProcessor.js.map +1 -0
- package/dist/bscPlugin/transpile/BrsFileTranspileProcessor.spec.d.ts +1 -0
- package/dist/bscPlugin/transpile/BrsFileTranspileProcessor.spec.js +75 -0
- package/dist/bscPlugin/transpile/BrsFileTranspileProcessor.spec.js.map +1 -0
- package/dist/bscPlugin/transpile/XmlFilePreTranspileProcessor.d.ts +12 -0
- package/dist/bscPlugin/transpile/XmlFilePreTranspileProcessor.js +99 -0
- package/dist/bscPlugin/transpile/XmlFilePreTranspileProcessor.js.map +1 -0
- package/dist/bscPlugin/validation/BrsFileAfterValidator.d.ts +7 -0
- package/dist/bscPlugin/validation/BrsFileAfterValidator.js +18 -0
- package/dist/bscPlugin/validation/BrsFileAfterValidator.js.map +1 -0
- package/dist/bscPlugin/validation/BrsFileValidator.d.ts +37 -0
- package/dist/bscPlugin/validation/BrsFileValidator.js +638 -0
- package/dist/bscPlugin/validation/BrsFileValidator.js.map +1 -0
- package/dist/bscPlugin/validation/BrsFileValidator.spec.d.ts +1 -0
- package/dist/bscPlugin/validation/BrsFileValidator.spec.js +1517 -0
- package/dist/bscPlugin/validation/BrsFileValidator.spec.js.map +1 -0
- package/dist/bscPlugin/validation/ProgramValidator.d.ts +11 -0
- package/dist/bscPlugin/validation/ProgramValidator.js +33 -0
- package/dist/bscPlugin/validation/ProgramValidator.js.map +1 -0
- package/dist/bscPlugin/validation/ScopeValidator.d.ts +141 -0
- package/dist/bscPlugin/validation/ScopeValidator.js +1323 -0
- package/dist/bscPlugin/validation/ScopeValidator.js.map +1 -0
- package/dist/bscPlugin/validation/ScopeValidator.spec.d.ts +1 -0
- package/dist/bscPlugin/validation/ScopeValidator.spec.js +6135 -0
- package/dist/bscPlugin/validation/ScopeValidator.spec.js.map +1 -0
- package/dist/bscPlugin/validation/XmlFileValidator.d.ts +8 -0
- package/dist/bscPlugin/validation/XmlFileValidator.js +36 -0
- package/dist/bscPlugin/validation/XmlFileValidator.js.map +1 -0
- package/dist/cli.js +126 -27
- package/dist/cli.js.map +1 -1
- package/dist/common/Sequencer.d.ts +53 -0
- package/dist/common/Sequencer.js +233 -0
- package/dist/common/Sequencer.js.map +1 -0
- package/dist/common/Sequencer.spec.d.ts +1 -0
- package/dist/common/Sequencer.spec.js +75 -0
- package/dist/common/Sequencer.spec.js.map +1 -0
- package/dist/deferred.d.ts +5 -3
- package/dist/deferred.js +10 -0
- package/dist/deferred.js.map +1 -1
- package/dist/diagnosticUtils.d.ts +10 -3
- package/dist/diagnosticUtils.js +64 -25
- package/dist/diagnosticUtils.js.map +1 -1
- package/dist/examples/plugins/removePrint.d.ts +2 -2
- package/dist/examples/plugins/removePrint.js +8 -12
- package/dist/examples/plugins/removePrint.js.map +1 -1
- package/dist/files/AssetFile.d.ts +24 -0
- package/dist/files/AssetFile.js +25 -0
- package/dist/files/AssetFile.js.map +1 -0
- package/dist/files/BrsFile.Class.spec.js +1213 -259
- package/dist/files/BrsFile.Class.spec.js.map +1 -1
- package/dist/files/BrsFile.d.ts +145 -87
- package/dist/files/BrsFile.js +836 -934
- package/dist/files/BrsFile.js.map +1 -1
- package/dist/files/BrsFile.spec.js +4226 -902
- package/dist/files/BrsFile.spec.js.map +1 -1
- package/dist/files/BscFile.d.ts +102 -0
- package/dist/files/BscFile.js +15 -0
- package/dist/files/BscFile.js.map +1 -0
- package/dist/files/Factory.d.ts +25 -0
- package/dist/files/Factory.js +22 -0
- package/dist/files/Factory.js.map +1 -0
- package/dist/files/LazyFileData.d.ts +21 -0
- package/dist/files/LazyFileData.js +54 -0
- package/dist/files/LazyFileData.js.map +1 -0
- package/dist/files/LazyFileData.spec.d.ts +1 -0
- package/dist/files/LazyFileData.spec.js +27 -0
- package/dist/files/LazyFileData.spec.js.map +1 -0
- package/dist/files/XmlFile.d.ts +80 -41
- package/dist/files/XmlFile.js +161 -137
- package/dist/files/XmlFile.js.map +1 -1
- package/dist/files/XmlFile.spec.js +444 -336
- package/dist/files/XmlFile.spec.js.map +1 -1
- package/dist/files/tests/imports.spec.js +62 -52
- package/dist/files/tests/imports.spec.js.map +1 -1
- package/dist/files/tests/optionalChaning.spec.d.ts +1 -0
- package/dist/files/tests/optionalChaning.spec.js +152 -0
- package/dist/files/tests/optionalChaning.spec.js.map +1 -0
- package/dist/globalCallables.d.ts +3 -1
- package/dist/globalCallables.js +424 -184
- package/dist/globalCallables.js.map +1 -1
- package/dist/index.d.ts +32 -4
- package/dist/index.js +54 -7
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +942 -125
- package/dist/interfaces.js +21 -0
- package/dist/interfaces.js.map +1 -1
- package/dist/lexer/Character.spec.js +5 -5
- package/dist/lexer/Character.spec.js.map +1 -1
- package/dist/lexer/Lexer.d.ts +51 -12
- package/dist/lexer/Lexer.js +215 -65
- package/dist/lexer/Lexer.js.map +1 -1
- package/dist/lexer/Lexer.spec.js +812 -568
- package/dist/lexer/Lexer.spec.js.map +1 -1
- package/dist/lexer/Token.d.ts +27 -11
- package/dist/lexer/Token.js +10 -2
- package/dist/lexer/Token.js.map +1 -1
- package/dist/lexer/TokenKind.d.ts +40 -2
- package/dist/lexer/TokenKind.js +147 -10
- package/dist/lexer/TokenKind.js.map +1 -1
- package/dist/logging.d.ts +14 -0
- package/dist/logging.js +29 -0
- package/dist/logging.js.map +1 -0
- package/dist/lsp/ActionQueue.d.ts +35 -0
- package/dist/lsp/ActionQueue.js +115 -0
- package/dist/lsp/ActionQueue.js.map +1 -0
- package/dist/lsp/ActionQueue.spec.d.ts +1 -0
- package/dist/lsp/ActionQueue.spec.js +80 -0
- package/dist/lsp/ActionQueue.spec.js.map +1 -0
- package/dist/lsp/DocumentManager.d.ts +63 -0
- package/dist/lsp/DocumentManager.js +122 -0
- package/dist/lsp/DocumentManager.js.map +1 -0
- package/dist/lsp/DocumentManager.spec.d.ts +1 -0
- package/dist/lsp/DocumentManager.spec.js +103 -0
- package/dist/lsp/DocumentManager.spec.js.map +1 -0
- package/dist/lsp/LspProject.d.ts +239 -0
- package/dist/lsp/LspProject.js +3 -0
- package/dist/lsp/LspProject.js.map +1 -0
- package/dist/lsp/PathFilterer.d.ts +75 -0
- package/dist/lsp/PathFilterer.js +196 -0
- package/dist/lsp/PathFilterer.js.map +1 -0
- package/dist/lsp/PathFilterer.spec.d.ts +1 -0
- package/dist/lsp/PathFilterer.spec.js +182 -0
- package/dist/lsp/PathFilterer.spec.js.map +1 -0
- package/dist/lsp/Project.d.ts +168 -0
- package/dist/lsp/Project.js +437 -0
- package/dist/lsp/Project.js.map +1 -0
- package/dist/lsp/Project.spec.d.ts +1 -0
- package/dist/lsp/Project.spec.js +267 -0
- package/dist/lsp/Project.spec.js.map +1 -0
- package/dist/lsp/ProjectManager.d.ts +242 -0
- package/dist/lsp/ProjectManager.js +824 -0
- package/dist/lsp/ProjectManager.js.map +1 -0
- package/dist/lsp/ProjectManager.spec.d.ts +1 -0
- package/dist/lsp/ProjectManager.spec.js +913 -0
- package/dist/lsp/ProjectManager.spec.js.map +1 -0
- package/dist/lsp/ReaderWriterManager.d.ts +21 -0
- package/dist/lsp/ReaderWriterManager.js +60 -0
- package/dist/lsp/ReaderWriterManager.js.map +1 -0
- package/dist/lsp/worker/MessageHandler.d.ts +99 -0
- package/dist/lsp/worker/MessageHandler.js +138 -0
- package/dist/lsp/worker/MessageHandler.js.map +1 -0
- package/dist/lsp/worker/MessageHandler.spec.d.ts +1 -0
- package/dist/lsp/worker/MessageHandler.spec.js +64 -0
- package/dist/lsp/worker/MessageHandler.spec.js.map +1 -0
- package/dist/lsp/worker/WorkerPool.d.ts +38 -0
- package/dist/lsp/worker/WorkerPool.js +78 -0
- package/dist/lsp/worker/WorkerPool.js.map +1 -0
- package/dist/lsp/worker/WorkerPool.spec.d.ts +1 -0
- package/dist/lsp/worker/WorkerPool.spec.js +59 -0
- package/dist/lsp/worker/WorkerPool.spec.js.map +1 -0
- package/dist/lsp/worker/WorkerThreadProject.d.ts +143 -0
- package/dist/lsp/worker/WorkerThreadProject.js +189 -0
- package/dist/lsp/worker/WorkerThreadProject.js.map +1 -0
- package/dist/lsp/worker/WorkerThreadProject.spec.d.ts +2 -0
- package/dist/lsp/worker/WorkerThreadProject.spec.js +71 -0
- package/dist/lsp/worker/WorkerThreadProject.spec.js.map +1 -0
- package/dist/lsp/worker/WorkerThreadProjectRunner.d.ts +15 -0
- package/dist/lsp/worker/WorkerThreadProjectRunner.js +58 -0
- package/dist/lsp/worker/WorkerThreadProjectRunner.js.map +1 -0
- package/dist/lsp/worker/run.d.ts +1 -0
- package/dist/lsp/worker/run.js +14 -0
- package/dist/lsp/worker/run.js.map +1 -0
- package/dist/parser/AstNode.d.ts +203 -0
- package/dist/parser/AstNode.js +303 -0
- package/dist/parser/AstNode.js.map +1 -0
- package/dist/parser/AstNode.spec.d.ts +1 -0
- package/dist/parser/AstNode.spec.js +1455 -0
- package/dist/parser/AstNode.spec.js.map +1 -0
- package/dist/parser/BrightScriptDocParser.d.ts +56 -0
- package/dist/parser/BrightScriptDocParser.js +294 -0
- package/dist/parser/BrightScriptDocParser.js.map +1 -0
- package/dist/parser/BrightScriptDocParser.spec.d.ts +1 -0
- package/dist/parser/BrightScriptDocParser.spec.js +310 -0
- package/dist/parser/BrightScriptDocParser.spec.js.map +1 -0
- package/dist/parser/BrsTranspileState.d.ts +22 -3
- package/dist/parser/BrsTranspileState.js +19 -0
- package/dist/parser/BrsTranspileState.js.map +1 -1
- package/dist/parser/Expression.d.ts +553 -221
- package/dist/parser/Expression.js +1414 -505
- package/dist/parser/Expression.js.map +1 -1
- package/dist/parser/Expression.spec.d.ts +1 -0
- package/dist/parser/Expression.spec.js +40 -0
- package/dist/parser/Expression.spec.js.map +1 -0
- package/dist/parser/Parser.Class.spec.js +255 -125
- package/dist/parser/Parser.Class.spec.js.map +1 -1
- package/dist/parser/Parser.d.ts +117 -124
- package/dist/parser/Parser.js +1669 -982
- package/dist/parser/Parser.js.map +1 -1
- package/dist/parser/Parser.spec.d.ts +3 -1
- package/dist/parser/Parser.spec.js +2111 -525
- package/dist/parser/Parser.spec.js.map +1 -1
- package/dist/parser/SGParser.d.ts +29 -13
- package/dist/parser/SGParser.js +85 -56
- package/dist/parser/SGParser.js.map +1 -1
- package/dist/parser/SGParser.spec.js +30 -45
- package/dist/parser/SGParser.spec.js.map +1 -1
- package/dist/parser/SGTypes.d.ts +134 -46
- package/dist/parser/SGTypes.js +206 -115
- package/dist/parser/SGTypes.js.map +1 -1
- package/dist/parser/Statement.d.ts +849 -267
- package/dist/parser/Statement.js +2412 -625
- package/dist/parser/Statement.js.map +1 -1
- package/dist/parser/Statement.spec.js +133 -36
- package/dist/parser/Statement.spec.js.map +1 -1
- package/dist/parser/TranspileState.d.ts +26 -12
- package/dist/parser/TranspileState.js +115 -24
- package/dist/parser/TranspileState.js.map +1 -1
- package/dist/parser/tests/Parser.spec.d.ts +3 -9
- package/dist/parser/tests/Parser.spec.js +7 -13
- package/dist/parser/tests/Parser.spec.js.map +1 -1
- package/dist/parser/tests/controlFlow/For.spec.js +83 -75
- package/dist/parser/tests/controlFlow/For.spec.js.map +1 -1
- package/dist/parser/tests/controlFlow/ForEach.spec.js +85 -51
- package/dist/parser/tests/controlFlow/ForEach.spec.js.map +1 -1
- package/dist/parser/tests/controlFlow/If.spec.js +382 -239
- package/dist/parser/tests/controlFlow/If.spec.js.map +1 -1
- package/dist/parser/tests/controlFlow/While.spec.js +52 -45
- package/dist/parser/tests/controlFlow/While.spec.js.map +1 -1
- package/dist/parser/tests/expression/Additive.spec.js +51 -43
- package/dist/parser/tests/expression/Additive.spec.js.map +1 -1
- package/dist/parser/tests/expression/ArrayLiterals.spec.js +192 -142
- package/dist/parser/tests/expression/ArrayLiterals.spec.js.map +1 -1
- package/dist/parser/tests/expression/AssociativeArrayLiterals.spec.js +236 -160
- package/dist/parser/tests/expression/AssociativeArrayLiterals.spec.js.map +1 -1
- package/dist/parser/tests/expression/Boolean.spec.js +41 -34
- package/dist/parser/tests/expression/Boolean.spec.js.map +1 -1
- package/dist/parser/tests/expression/Call.spec.js +173 -55
- package/dist/parser/tests/expression/Call.spec.js.map +1 -1
- package/dist/parser/tests/expression/Exponential.spec.js +20 -20
- package/dist/parser/tests/expression/Exponential.spec.js.map +1 -1
- package/dist/parser/tests/expression/Function.spec.js +291 -282
- package/dist/parser/tests/expression/Function.spec.js.map +1 -1
- package/dist/parser/tests/expression/Indexing.spec.js +193 -110
- package/dist/parser/tests/expression/Indexing.spec.js.map +1 -1
- package/dist/parser/tests/expression/Multiplicative.spec.js +42 -42
- package/dist/parser/tests/expression/Multiplicative.spec.js.map +1 -1
- package/dist/parser/tests/expression/NullCoalescenceExpression.spec.js +260 -115
- package/dist/parser/tests/expression/NullCoalescenceExpression.spec.js.map +1 -1
- package/dist/parser/tests/expression/PrefixUnary.spec.js +58 -52
- package/dist/parser/tests/expression/PrefixUnary.spec.js.map +1 -1
- package/dist/parser/tests/expression/Primary.spec.js +76 -60
- package/dist/parser/tests/expression/Primary.spec.js.map +1 -1
- package/dist/parser/tests/expression/RegexLiteralExpression.spec.d.ts +1 -0
- package/dist/parser/tests/expression/RegexLiteralExpression.spec.js +171 -0
- package/dist/parser/tests/expression/RegexLiteralExpression.spec.js.map +1 -0
- package/dist/parser/tests/expression/Relational.spec.js +50 -50
- package/dist/parser/tests/expression/Relational.spec.js.map +1 -1
- package/dist/parser/tests/expression/SourceLiteralExpression.spec.js +31 -31
- package/dist/parser/tests/expression/SourceLiteralExpression.spec.js.map +1 -1
- package/dist/parser/tests/expression/TemplateStringExpression.spec.js +281 -94
- package/dist/parser/tests/expression/TemplateStringExpression.spec.js.map +1 -1
- package/dist/parser/tests/expression/TernaryExpression.spec.js +747 -192
- package/dist/parser/tests/expression/TernaryExpression.spec.js.map +1 -1
- package/dist/parser/tests/expression/TypeExpression.spec.d.ts +1 -0
- package/dist/parser/tests/expression/TypeExpression.spec.js +126 -0
- package/dist/parser/tests/expression/TypeExpression.spec.js.map +1 -0
- package/dist/parser/tests/expression/UnaryExpression.spec.d.ts +1 -0
- package/dist/parser/tests/expression/UnaryExpression.spec.js +52 -0
- package/dist/parser/tests/expression/UnaryExpression.spec.js.map +1 -0
- package/dist/parser/tests/statement/AssignmentOperators.spec.js +44 -44
- package/dist/parser/tests/statement/AssignmentOperators.spec.js.map +1 -1
- package/dist/parser/tests/statement/ConstStatement.spec.d.ts +1 -0
- package/dist/parser/tests/statement/ConstStatement.spec.js +500 -0
- package/dist/parser/tests/statement/ConstStatement.spec.js.map +1 -0
- package/dist/parser/tests/statement/Continue.spec.d.ts +1 -0
- package/dist/parser/tests/statement/Continue.spec.js +119 -0
- package/dist/parser/tests/statement/Continue.spec.js.map +1 -0
- package/dist/parser/tests/statement/Declaration.spec.js +61 -55
- package/dist/parser/tests/statement/Declaration.spec.js.map +1 -1
- package/dist/parser/tests/statement/Dim.spec.js +29 -22
- package/dist/parser/tests/statement/Dim.spec.js.map +1 -1
- package/dist/parser/tests/statement/Enum.spec.d.ts +1 -0
- package/dist/parser/tests/statement/Enum.spec.js +744 -0
- package/dist/parser/tests/statement/Enum.spec.js.map +1 -0
- package/dist/parser/tests/statement/For.spec.d.ts +1 -0
- package/dist/parser/tests/statement/For.spec.js +45 -0
- package/dist/parser/tests/statement/For.spec.js.map +1 -0
- package/dist/parser/tests/statement/ForEach.spec.d.ts +1 -0
- package/dist/parser/tests/statement/ForEach.spec.js +36 -0
- package/dist/parser/tests/statement/ForEach.spec.js.map +1 -0
- package/dist/parser/tests/statement/Function.spec.js +226 -215
- package/dist/parser/tests/statement/Function.spec.js.map +1 -1
- package/dist/parser/tests/statement/Goto.spec.js +16 -15
- package/dist/parser/tests/statement/Goto.spec.js.map +1 -1
- package/dist/parser/tests/statement/Increment.spec.js +64 -61
- package/dist/parser/tests/statement/Increment.spec.js.map +1 -1
- package/dist/parser/tests/statement/InterfaceStatement.spec.d.ts +1 -0
- package/dist/parser/tests/statement/InterfaceStatement.spec.js +110 -0
- package/dist/parser/tests/statement/InterfaceStatement.spec.js.map +1 -0
- package/dist/parser/tests/statement/LibraryStatement.spec.js +22 -22
- package/dist/parser/tests/statement/LibraryStatement.spec.js.map +1 -1
- package/dist/parser/tests/statement/Misc.spec.js +127 -168
- package/dist/parser/tests/statement/Misc.spec.js.map +1 -1
- package/dist/parser/tests/statement/PrintStatement.spec.js +133 -114
- package/dist/parser/tests/statement/PrintStatement.spec.js.map +1 -1
- package/dist/parser/tests/statement/ReturnStatement.spec.js +57 -54
- package/dist/parser/tests/statement/ReturnStatement.spec.js.map +1 -1
- package/dist/parser/tests/statement/Set.spec.js +131 -117
- package/dist/parser/tests/statement/Set.spec.js.map +1 -1
- package/dist/parser/tests/statement/Stop.spec.js +14 -13
- package/dist/parser/tests/statement/Stop.spec.js.map +1 -1
- package/dist/parser/tests/statement/Throw.spec.js +11 -8
- package/dist/parser/tests/statement/Throw.spec.js.map +1 -1
- package/dist/parser/tests/statement/TryCatch.spec.js +26 -15
- package/dist/parser/tests/statement/TryCatch.spec.js.map +1 -1
- package/dist/preprocessor/Manifest.d.ts +6 -6
- package/dist/preprocessor/Manifest.js +17 -38
- package/dist/preprocessor/Manifest.js.map +1 -1
- package/dist/preprocessor/Manifest.spec.d.ts +1 -0
- package/dist/preprocessor/Manifest.spec.js +78 -103
- package/dist/preprocessor/Manifest.spec.js.map +1 -1
- package/dist/roku-types/data.json +20347 -0
- package/dist/roku-types/index.d.ts +5726 -0
- package/dist/roku-types/index.js +11 -0
- package/dist/roku-types/index.js.map +1 -0
- package/dist/types/ArrayType.d.ts +12 -5
- package/dist/types/ArrayType.js +89 -24
- package/dist/types/ArrayType.js.map +1 -1
- package/dist/types/ArrayType.spec.js +39 -11
- package/dist/types/ArrayType.spec.js.map +1 -1
- package/dist/types/AssociativeArrayType.d.ts +15 -0
- package/dist/types/AssociativeArrayType.js +64 -0
- package/dist/types/AssociativeArrayType.js.map +1 -0
- package/dist/types/BaseFunctionType.d.ts +10 -0
- package/dist/types/BaseFunctionType.js +26 -0
- package/dist/types/BaseFunctionType.js.map +1 -0
- package/dist/types/BooleanType.d.ts +9 -5
- package/dist/types/BooleanType.js +19 -8
- package/dist/types/BooleanType.js.map +1 -1
- package/dist/types/BooleanType.spec.js +10 -4
- package/dist/types/BooleanType.spec.js.map +1 -1
- package/dist/types/BscType.d.ts +41 -3
- package/dist/types/BscType.js +152 -0
- package/dist/types/BscType.js.map +1 -1
- package/dist/types/BscTypeKind.d.ts +28 -0
- package/dist/types/BscTypeKind.js +33 -0
- package/dist/types/BscTypeKind.js.map +1 -0
- package/dist/types/BuiltInInterfaceAdder.d.ts +28 -0
- package/dist/types/BuiltInInterfaceAdder.js +212 -0
- package/dist/types/BuiltInInterfaceAdder.js.map +1 -0
- package/dist/types/BuiltInInterfaceAdder.spec.d.ts +1 -0
- package/dist/types/BuiltInInterfaceAdder.spec.js +115 -0
- package/dist/types/BuiltInInterfaceAdder.spec.js.map +1 -0
- package/dist/types/CallFuncableType.d.ts +24 -0
- package/dist/types/CallFuncableType.js +91 -0
- package/dist/types/CallFuncableType.js.map +1 -0
- package/dist/types/ClassType.d.ts +17 -0
- package/dist/types/ClassType.js +60 -0
- package/dist/types/ClassType.js.map +1 -0
- package/dist/types/ClassType.spec.d.ts +1 -0
- package/dist/types/ClassType.spec.js +76 -0
- package/dist/types/ClassType.spec.js.map +1 -0
- package/dist/types/ComponentType.d.ts +22 -0
- package/dist/types/ComponentType.js +107 -0
- package/dist/types/ComponentType.js.map +1 -0
- package/dist/types/DoubleType.d.ts +10 -5
- package/dist/types/DoubleType.js +21 -17
- package/dist/types/DoubleType.js.map +1 -1
- package/dist/types/DoubleType.spec.js +12 -4
- package/dist/types/DoubleType.spec.js.map +1 -1
- package/dist/types/DynamicType.d.ts +13 -5
- package/dist/types/DynamicType.js +26 -5
- package/dist/types/DynamicType.js.map +1 -1
- package/dist/types/DynamicType.spec.js +16 -5
- package/dist/types/DynamicType.spec.js.map +1 -1
- package/dist/types/EnumType.d.ts +42 -0
- package/dist/types/EnumType.js +98 -0
- package/dist/types/EnumType.js.map +1 -0
- package/dist/types/EnumType.spec.d.ts +1 -0
- package/dist/types/EnumType.spec.js +33 -0
- package/dist/types/EnumType.spec.js.map +1 -0
- package/dist/types/FloatType.d.ts +10 -5
- package/dist/types/FloatType.js +21 -17
- package/dist/types/FloatType.js.map +1 -1
- package/dist/types/FloatType.spec.js +4 -4
- package/dist/types/FloatType.spec.js.map +1 -1
- package/dist/types/FunctionType.d.ts +8 -22
- package/dist/types/FunctionType.js +25 -63
- package/dist/types/FunctionType.js.map +1 -1
- package/dist/types/InheritableType.d.ts +29 -0
- package/dist/types/InheritableType.js +173 -0
- package/dist/types/InheritableType.js.map +1 -0
- package/dist/types/InlineInterfaceType.d.ts +5 -0
- package/dist/types/InlineInterfaceType.js +17 -0
- package/dist/types/InlineInterfaceType.js.map +1 -0
- package/dist/types/IntegerType.d.ts +10 -5
- package/dist/types/IntegerType.js +21 -17
- package/dist/types/IntegerType.js.map +1 -1
- package/dist/types/IntegerType.spec.js +8 -4
- package/dist/types/IntegerType.spec.js.map +1 -1
- package/dist/types/InterfaceType.d.ts +14 -6
- package/dist/types/InterfaceType.js +30 -15
- package/dist/types/InterfaceType.js.map +1 -1
- package/dist/types/InterfaceType.spec.d.ts +1 -0
- package/dist/types/InterfaceType.spec.js +227 -0
- package/dist/types/InterfaceType.spec.js.map +1 -0
- package/dist/types/IntersectionType.d.ts +29 -0
- package/dist/types/IntersectionType.js +253 -0
- package/dist/types/IntersectionType.js.map +1 -0
- package/dist/types/IntersectionType.spec.d.ts +1 -0
- package/dist/types/IntersectionType.spec.js +150 -0
- package/dist/types/IntersectionType.spec.js.map +1 -0
- package/dist/types/InvalidType.d.ts +10 -5
- package/dist/types/InvalidType.js +21 -9
- package/dist/types/InvalidType.js.map +1 -1
- package/dist/types/InvalidType.spec.js +8 -4
- package/dist/types/InvalidType.spec.js.map +1 -1
- package/dist/types/LongIntegerType.d.ts +10 -5
- package/dist/types/LongIntegerType.js +21 -17
- package/dist/types/LongIntegerType.js.map +1 -1
- package/dist/types/LongIntegerType.spec.js +10 -4
- package/dist/types/LongIntegerType.spec.js.map +1 -1
- package/dist/types/NamespaceType.d.ts +12 -0
- package/dist/types/NamespaceType.js +28 -0
- package/dist/types/NamespaceType.js.map +1 -0
- package/dist/types/ObjectType.d.ts +12 -5
- package/dist/types/ObjectType.js +25 -8
- package/dist/types/ObjectType.js.map +1 -1
- package/dist/types/ObjectType.spec.js +3 -3
- package/dist/types/ObjectType.spec.js.map +1 -1
- package/dist/types/ReferenceType.d.ts +123 -0
- package/dist/types/ReferenceType.js +720 -0
- package/dist/types/ReferenceType.js.map +1 -0
- package/dist/types/ReferenceType.spec.d.ts +1 -0
- package/dist/types/ReferenceType.spec.js +151 -0
- package/dist/types/ReferenceType.spec.js.map +1 -0
- package/dist/types/StringType.d.ts +12 -5
- package/dist/types/StringType.js +23 -8
- package/dist/types/StringType.js.map +1 -1
- package/dist/types/StringType.spec.js +3 -3
- package/dist/types/StringType.spec.js.map +1 -1
- package/dist/types/TypeStatementType.d.ts +18 -0
- package/dist/types/TypeStatementType.js +45 -0
- package/dist/types/TypeStatementType.js.map +1 -0
- package/dist/types/TypedFunctionType.d.ts +34 -0
- package/dist/types/TypedFunctionType.js +147 -0
- package/dist/types/TypedFunctionType.js.map +1 -0
- package/dist/types/TypedFunctionType.spec.d.ts +1 -0
- package/dist/types/TypedFunctionType.spec.js +122 -0
- package/dist/types/TypedFunctionType.spec.js.map +1 -0
- package/dist/types/UninitializedType.d.ts +11 -6
- package/dist/types/UninitializedType.js +20 -11
- package/dist/types/UninitializedType.js.map +1 -1
- package/dist/types/UnionType.d.ts +27 -0
- package/dist/types/UnionType.js +193 -0
- package/dist/types/UnionType.js.map +1 -0
- package/dist/types/UnionType.spec.d.ts +1 -0
- package/dist/types/UnionType.spec.js +205 -0
- package/dist/types/UnionType.spec.js.map +1 -0
- package/dist/types/VoidType.d.ts +11 -5
- package/dist/types/VoidType.js +22 -8
- package/dist/types/VoidType.js.map +1 -1
- package/dist/types/VoidType.spec.js +3 -3
- package/dist/types/VoidType.spec.js.map +1 -1
- package/dist/types/helper.spec.d.ts +1 -0
- package/dist/types/helper.spec.js +174 -0
- package/dist/types/helper.spec.js.map +1 -0
- package/dist/types/helpers.d.ts +51 -0
- package/dist/types/helpers.js +323 -0
- package/dist/types/helpers.js.map +1 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/index.js +39 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/roFunctionType.d.ts +11 -0
- package/dist/types/roFunctionType.js +37 -0
- package/dist/types/roFunctionType.js.map +1 -0
- package/dist/types/roFunctionType.spec.d.ts +1 -0
- package/dist/types/roFunctionType.spec.js +20 -0
- package/dist/types/roFunctionType.spec.js.map +1 -0
- package/dist/util.d.ts +288 -187
- package/dist/util.js +2018 -575
- package/dist/util.js.map +1 -1
- package/dist/validators/ClassValidator.d.ts +9 -15
- package/dist/validators/ClassValidator.js +93 -138
- package/dist/validators/ClassValidator.js.map +1 -1
- package/package.json +185 -138
- package/CHANGELOG.md +0 -1188
- package/dist/astUtils/index.d.ts +0 -7
- package/dist/astUtils/index.js +0 -26
- package/dist/astUtils/index.js.map +0 -1
- package/dist/bscPlugin/semanticTokens/SemanticTokensProcessor.d.ts +0 -7
- package/dist/bscPlugin/semanticTokens/SemanticTokensProcessor.js +0 -63
- package/dist/bscPlugin/semanticTokens/SemanticTokensProcessor.js.map +0 -1
- package/dist/bscPlugin/semanticTokens/SemanticTokensProcessor.spec.js +0 -45
- package/dist/bscPlugin/semanticTokens/SemanticTokensProcessor.spec.js.map +0 -1
- package/dist/lexer/index.d.ts +0 -3
- package/dist/lexer/index.js +0 -17
- package/dist/lexer/index.js.map +0 -1
- package/dist/parser/SGTypes.spec.js +0 -351
- package/dist/parser/SGTypes.spec.js.map +0 -1
- package/dist/parser/index.d.ts +0 -3
- package/dist/parser/index.js +0 -16
- package/dist/parser/index.js.map +0 -1
- package/dist/preprocessor/Chunk.d.ts +0 -82
- package/dist/preprocessor/Chunk.js +0 -77
- package/dist/preprocessor/Chunk.js.map +0 -1
- package/dist/preprocessor/Preprocessor.d.ts +0 -60
- package/dist/preprocessor/Preprocessor.js +0 -156
- package/dist/preprocessor/Preprocessor.js.map +0 -1
- package/dist/preprocessor/Preprocessor.spec.js +0 -152
- package/dist/preprocessor/Preprocessor.spec.js.map +0 -1
- package/dist/preprocessor/PreprocessorParser.d.ts +0 -61
- package/dist/preprocessor/PreprocessorParser.js +0 -194
- package/dist/preprocessor/PreprocessorParser.js.map +0 -1
- package/dist/preprocessor/PreprocessorParser.spec.js +0 -116
- package/dist/preprocessor/PreprocessorParser.spec.js.map +0 -1
- package/dist/preprocessor/index.d.ts +0 -3
- package/dist/preprocessor/index.js +0 -16
- package/dist/preprocessor/index.js.map +0 -1
- package/dist/types/CustomType.d.ts +0 -10
- package/dist/types/CustomType.js +0 -35
- package/dist/types/CustomType.js.map +0 -1
- package/dist/types/FunctionType.spec.js +0 -29
- package/dist/types/FunctionType.spec.js.map +0 -1
- package/dist/types/LazyType.d.ts +0 -15
- package/dist/types/LazyType.js +0 -32
- package/dist/types/LazyType.js.map +0 -1
- /package/dist/{bscPlugin/semanticTokens/SemanticTokensProcessor.spec.d.ts → astUtils/CachedLookups.spec.d.ts} +0 -0
- /package/dist/{parser/SGTypes.spec.d.ts → astUtils/Editor.spec.d.ts} +0 -0
- /package/dist/{preprocessor/Preprocessor.spec.d.ts → bscPlugin/completions/CompletionsProcessor.spec.d.ts} +0 -0
- /package/dist/{preprocessor/PreprocessorParser.spec.d.ts → bscPlugin/definition/DefinitionProvider.spec.d.ts} +0 -0
- /package/dist/{types/FunctionType.spec.d.ts → bscPlugin/hover/HoverProcessor.spec.d.ts} +0 -0
package/dist/Program.d.ts
CHANGED
|
@@ -1,44 +1,47 @@
|
|
|
1
|
-
import type { CodeAction,
|
|
2
|
-
import {
|
|
3
|
-
import type { BsConfig } from './BsConfig';
|
|
1
|
+
import type { CodeAction, Position, Range, SignatureInformation, Location, DocumentSymbol, CancellationToken } from 'vscode-languageserver';
|
|
2
|
+
import type { BsConfig, FinalizedBsConfig } from './BsConfig';
|
|
4
3
|
import { Scope } from './Scope';
|
|
5
|
-
import {
|
|
6
|
-
import { XmlFile } from './files/XmlFile';
|
|
7
|
-
import type { BsDiagnostic, FileReference, FileObj, BscFile, SemanticToken } from './interfaces';
|
|
4
|
+
import type { FileObj, SemanticToken, FileLink, Hover } from './interfaces';
|
|
8
5
|
import { XmlScope } from './XmlScope';
|
|
9
|
-
import { Logger } from './
|
|
6
|
+
import type { Logger } from './logging';
|
|
10
7
|
import PluginInterface from './PluginInterface';
|
|
11
|
-
import type { FunctionStatement
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
8
|
+
import type { FunctionStatement } from './parser/Statement';
|
|
9
|
+
import { Editor } from './astUtils/Editor';
|
|
10
|
+
import type { FileData } from './files/LazyFileData';
|
|
11
|
+
import type { UnresolvedSymbol } from './AstValidationSegmenter';
|
|
12
|
+
import type { BscFile } from './files/BscFile';
|
|
13
|
+
import { CrossScopeValidator } from './CrossScopeValidator';
|
|
14
|
+
import { DiagnosticManager } from './DiagnosticManager';
|
|
15
|
+
import type { ProvidedSymbolInfo, BrsFile } from './files/BrsFile';
|
|
16
|
+
import type { XmlFile } from './files/XmlFile';
|
|
17
|
+
import type { Statement } from './parser/AstNode';
|
|
21
18
|
export interface SignatureInfoObj {
|
|
22
19
|
index: number;
|
|
23
20
|
key: string;
|
|
24
21
|
signature: SignatureInformation;
|
|
25
22
|
}
|
|
26
|
-
export interface FileLink<T> {
|
|
27
|
-
item: T;
|
|
28
|
-
file: BrsFile;
|
|
29
|
-
}
|
|
30
23
|
export declare class Program {
|
|
31
|
-
/**
|
|
32
|
-
* The root directory for this program
|
|
33
|
-
*/
|
|
34
|
-
options: BsConfig;
|
|
35
24
|
constructor(
|
|
36
25
|
/**
|
|
37
26
|
* The root directory for this program
|
|
38
27
|
*/
|
|
39
|
-
options: BsConfig, logger?: Logger, plugins?: PluginInterface);
|
|
28
|
+
options: BsConfig, logger?: Logger, plugins?: PluginInterface, diagnosticsManager?: DiagnosticManager);
|
|
29
|
+
options: FinalizedBsConfig;
|
|
40
30
|
logger: Logger;
|
|
31
|
+
/**
|
|
32
|
+
* An editor that plugins can use to modify program-level things during the build flow. Don't use this to edit files (they have their own `.editor`)
|
|
33
|
+
*/
|
|
34
|
+
editor: Editor;
|
|
35
|
+
/**
|
|
36
|
+
* A factory that creates `File` instances
|
|
37
|
+
*/
|
|
38
|
+
private fileFactory;
|
|
41
39
|
private createGlobalScope;
|
|
40
|
+
private recursivelyAddNodeToSymbolTable;
|
|
41
|
+
/**
|
|
42
|
+
* Do all setup required for the global symbol table.
|
|
43
|
+
*/
|
|
44
|
+
private populateGlobalSymbolTable;
|
|
42
45
|
/**
|
|
43
46
|
* A graph of all files and their dependencies.
|
|
44
47
|
* For example:
|
|
@@ -46,7 +49,7 @@ export declare class Program {
|
|
|
46
49
|
* lib2.brs -> [lib3.brs] //via an import statement
|
|
47
50
|
*/
|
|
48
51
|
private dependencyGraph;
|
|
49
|
-
|
|
52
|
+
diagnostics: DiagnosticManager;
|
|
50
53
|
/**
|
|
51
54
|
* A scope that contains all built-in global functions.
|
|
52
55
|
* All scopes should directly or indirectly inherit from this scope
|
|
@@ -56,30 +59,46 @@ export declare class Program {
|
|
|
56
59
|
* Plugins which can provide extra diagnostics or transform AST
|
|
57
60
|
*/
|
|
58
61
|
plugins: PluginInterface;
|
|
62
|
+
private fileSymbolInformation;
|
|
63
|
+
private currentScopeValidationOptions;
|
|
59
64
|
/**
|
|
60
|
-
*
|
|
61
|
-
* Should only be set from `this.validate()`
|
|
65
|
+
* Map of typetime symbols which depend upon the key symbol
|
|
62
66
|
*/
|
|
63
|
-
private
|
|
67
|
+
private symbolDependencies;
|
|
68
|
+
/**
|
|
69
|
+
* Symbol Table for storing custom component types
|
|
70
|
+
* This is a sibling to the global table (as Components can be used/referenced anywhere)
|
|
71
|
+
* Keeping custom components out of the global table and in a specific symbol table
|
|
72
|
+
* compartmentalizes their use
|
|
73
|
+
*/
|
|
74
|
+
private componentsTable;
|
|
75
|
+
addFileSymbolInfo(file: BrsFile): void;
|
|
76
|
+
getFileSymbolInfo(file: BrsFile): {
|
|
77
|
+
provides: ProvidedSymbolInfo;
|
|
78
|
+
requires: UnresolvedSymbol[];
|
|
79
|
+
};
|
|
64
80
|
/**
|
|
65
81
|
* The path to bslib.brs (the BrightScript runtime for certain BrighterScript features)
|
|
66
82
|
*/
|
|
67
|
-
get bslibPkgPath():
|
|
83
|
+
get bslibPkgPath(): string;
|
|
68
84
|
get bslibPrefix(): "rokucommunity_bslib" | "bslib";
|
|
69
85
|
/**
|
|
70
|
-
* A map of every file loaded
|
|
86
|
+
* A map of every file loaded into this program, indexed by its original file location
|
|
71
87
|
*/
|
|
72
|
-
|
|
88
|
+
files: Record<string, BscFile>;
|
|
73
89
|
/**
|
|
74
|
-
* A map of every file loaded into this program, indexed by its
|
|
90
|
+
* A map of every file loaded into this program, indexed by its destPath
|
|
75
91
|
*/
|
|
76
|
-
private
|
|
92
|
+
private destMap;
|
|
77
93
|
/**
|
|
78
|
-
*
|
|
94
|
+
* Plugins can contribute multiple virtual files for a single physical file.
|
|
95
|
+
* This collection links the virtual files back to the physical file that produced them.
|
|
96
|
+
* The key is the standardized and lower-cased srcPath
|
|
79
97
|
*/
|
|
80
|
-
|
|
98
|
+
private fileClusters;
|
|
81
99
|
private scopes;
|
|
82
100
|
protected addScope(scope: Scope): void;
|
|
101
|
+
protected removeScope(scope: Scope): void;
|
|
83
102
|
/**
|
|
84
103
|
* A map of every component currently loaded into the program, indexed by the component name.
|
|
85
104
|
* It is a compile-time error to have multiple components with the same name. However, we store an array of components
|
|
@@ -94,6 +113,15 @@ export declare class Program {
|
|
|
94
113
|
file: XmlFile;
|
|
95
114
|
scope: XmlScope;
|
|
96
115
|
};
|
|
116
|
+
/**
|
|
117
|
+
* Get the sorted names of custom components
|
|
118
|
+
*/
|
|
119
|
+
getSortedComponentNames(): string[];
|
|
120
|
+
/**
|
|
121
|
+
* Keeps a set of all the components that need to have their types updated during the current validation cycle
|
|
122
|
+
* Map <componentKey, componentName>
|
|
123
|
+
*/
|
|
124
|
+
private componentSymbolsToUpdate;
|
|
97
125
|
/**
|
|
98
126
|
* Register (or replace) the reference to a component in the component map
|
|
99
127
|
*/
|
|
@@ -102,6 +130,26 @@ export declare class Program {
|
|
|
102
130
|
* Remove the specified component from the components map
|
|
103
131
|
*/
|
|
104
132
|
private unregisterComponent;
|
|
133
|
+
/**
|
|
134
|
+
* Adds a component described in an XML to the set of components that needs to be updated this validation cycle.
|
|
135
|
+
* @param xmlFile XML file with <component> tag
|
|
136
|
+
*/
|
|
137
|
+
private addDeferredComponentTypeSymbolCreation;
|
|
138
|
+
private getComponentKey;
|
|
139
|
+
/**
|
|
140
|
+
* Resolves symbol table with the first component in this.components to have the same name as the component in the file
|
|
141
|
+
* @param componentKey key getting a component from `this.components`
|
|
142
|
+
* @param componentName the unprefixed name of the component that will be added (e.g. 'MyLabel' NOT 'roSgNodeMyLabel')
|
|
143
|
+
*/
|
|
144
|
+
private updateComponentSymbolInGlobalScope;
|
|
145
|
+
/**
|
|
146
|
+
* Adds a reference type to the global symbol table with the first component in this.components to have the same name as the component in the file
|
|
147
|
+
* This is so on a first validation, these types can be resolved in teh future (eg. when the actual component is created)
|
|
148
|
+
* If we don't add reference types at this top level, they will be created at the file level, and will never get resolved
|
|
149
|
+
* @param componentKey key getting a component from `this.components`
|
|
150
|
+
* @param componentName the unprefixed name of the component that will be added (e.g. 'MyLabel' NOT 'roSgNodeMyLabel')
|
|
151
|
+
*/
|
|
152
|
+
private addComponentReferenceType;
|
|
105
153
|
/**
|
|
106
154
|
* re-attach the dependency graph with a new key for any component who changed
|
|
107
155
|
* their position in their own named array (only matters when there are multiple
|
|
@@ -112,24 +160,22 @@ export declare class Program {
|
|
|
112
160
|
* Get a list of all files that are included in the project but are not referenced
|
|
113
161
|
* by any scope in the program.
|
|
114
162
|
*/
|
|
115
|
-
getUnreferencedFiles():
|
|
163
|
+
getUnreferencedFiles(): BscFile[];
|
|
116
164
|
/**
|
|
117
|
-
* Get the list of errors for the entire program.
|
|
118
|
-
* by walking through every file, so call this sparingly.
|
|
165
|
+
* Get the list of errors for the entire program.
|
|
119
166
|
*/
|
|
120
|
-
getDiagnostics(): BsDiagnostic[];
|
|
121
|
-
addDiagnostics(diagnostics: BsDiagnostic[]): void;
|
|
167
|
+
getDiagnostics(): import("./interfaces").BsDiagnostic[];
|
|
122
168
|
/**
|
|
123
169
|
* Determine if the specified file is loaded in this program right now.
|
|
124
|
-
* @param filePath
|
|
170
|
+
* @param filePath the absolute or relative path to the file
|
|
125
171
|
* @param normalizePath should the provided path be normalized before use
|
|
126
172
|
*/
|
|
127
173
|
hasFile(filePath: string, normalizePath?: boolean): boolean;
|
|
128
174
|
/**
|
|
129
175
|
* roku filesystem is case INsensitive, so find the scope by key case insensitive
|
|
130
|
-
* @param scopeName
|
|
176
|
+
* @param scopeName xml scope names are their `destPath`. Source scope is stored with the key `"source"`
|
|
131
177
|
*/
|
|
132
|
-
getScopeByName(scopeName: string): Scope;
|
|
178
|
+
getScopeByName(scopeName: string): Scope | undefined;
|
|
133
179
|
/**
|
|
134
180
|
* Return all scopes
|
|
135
181
|
*/
|
|
@@ -149,16 +195,34 @@ export declare class Program {
|
|
|
149
195
|
/**
|
|
150
196
|
* Load a file into the program. If that file already exists, it is replaced.
|
|
151
197
|
* If file contents are provided, those are used, Otherwise, the file is loaded from the file system
|
|
152
|
-
* @param srcDestOrPkgPath the absolute path,
|
|
153
|
-
* @param
|
|
198
|
+
* @param srcDestOrPkgPath the absolute path, the pkg path (i.e. `pkg:/path/to/file.brs`), or the destPath (i.e. `path/to/file.brs` relative to `pkg:/`)
|
|
199
|
+
* @param fileData the file contents. omit or pass `undefined` to prevent loading the data at this time
|
|
154
200
|
*/
|
|
155
|
-
setFile<T extends BscFile>(srcDestOrPkgPath: string,
|
|
201
|
+
setFile<T extends BscFile>(srcDestOrPkgPath: string, fileData?: FileData): T;
|
|
156
202
|
/**
|
|
157
203
|
* Load a file into the program. If that file already exists, it is replaced.
|
|
158
204
|
* @param fileEntry an object that specifies src and dest for the file.
|
|
159
|
-
* @param
|
|
205
|
+
* @param fileData the file contents. omit or pass `undefined` to prevent loading the data at this time
|
|
206
|
+
*/
|
|
207
|
+
setFile<T extends BscFile>(fileEntry: FileObj, fileData: FileData): T;
|
|
208
|
+
/**
|
|
209
|
+
* Given a srcPath, a destPath, or both, resolve whichever is missing, relative to rootDir.
|
|
210
|
+
* @param fileParam an object representing file paths
|
|
211
|
+
* @param rootDir must be a pre-normalized path
|
|
212
|
+
*/
|
|
213
|
+
private getPaths;
|
|
214
|
+
/**
|
|
215
|
+
* Remove any leading `pkg:/` found in the path
|
|
216
|
+
*/
|
|
217
|
+
private removePkgPrefix;
|
|
218
|
+
/**
|
|
219
|
+
* Is this file a .brs file found somewhere within the `pkg:/source/` folder?
|
|
220
|
+
*/
|
|
221
|
+
private isSourceBrsFile;
|
|
222
|
+
/**
|
|
223
|
+
* Is this file a .brs file found somewhere within the `pkg:/source/` folder?
|
|
160
224
|
*/
|
|
161
|
-
|
|
225
|
+
private isComponentsXmlFile;
|
|
162
226
|
/**
|
|
163
227
|
* Ensure source scope is created.
|
|
164
228
|
* Note: automatically called internally, and no-op if it exists already.
|
|
@@ -166,114 +230,193 @@ export declare class Program {
|
|
|
166
230
|
createSourceScope(): void;
|
|
167
231
|
/**
|
|
168
232
|
* Remove a set of files from the program
|
|
169
|
-
* @param srcPaths
|
|
233
|
+
* @param srcPaths can be an array of srcPath or destPath strings
|
|
234
|
+
* @param normalizePath should this function repair and standardize the filePaths? Passing false should have a performance boost if you can guarantee your paths are already sanitized
|
|
170
235
|
*/
|
|
171
|
-
removeFiles(srcPaths: string[]): void;
|
|
236
|
+
removeFiles(srcPaths: string[], normalizePath?: boolean): void;
|
|
172
237
|
/**
|
|
173
238
|
* Remove a file from the program
|
|
174
|
-
* @param filePath can be a srcPath, a
|
|
239
|
+
* @param filePath can be a srcPath, a destPath, or a destPath with leading `pkg:/`
|
|
175
240
|
* @param normalizePath should this function repair and standardize the path? Passing false should have a performance boost if you can guarantee your path is already sanitized
|
|
176
|
-
|
|
177
241
|
*/
|
|
178
|
-
removeFile(filePath: string, normalizePath?: boolean): void;
|
|
242
|
+
removeFile(filePath: string, normalizePath?: boolean, keepSymbolInformation?: boolean): void;
|
|
243
|
+
crossScopeValidation: CrossScopeValidator;
|
|
244
|
+
private isFirstValidation;
|
|
245
|
+
private validationDetails;
|
|
246
|
+
lastValidationInfo: {
|
|
247
|
+
brsFilesSrcPath: Set<string>;
|
|
248
|
+
xmlFilesSrcPath: Set<string>;
|
|
249
|
+
scopeNames: Set<string>;
|
|
250
|
+
componentsRebuilt: Set<string>;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Counter used to track which validation run is being logged
|
|
254
|
+
*/
|
|
255
|
+
private validationRunSequence;
|
|
179
256
|
/**
|
|
180
|
-
*
|
|
181
|
-
* @param folderSrcPath The absolute path to the folder on disk
|
|
182
|
-
* @param normalizePath should the provided path be normalized before use?
|
|
257
|
+
* How many milliseconds can pass while doing synchronous operations in validate before we register a short timeout (i.e. yield to the event loop)
|
|
183
258
|
*/
|
|
184
|
-
|
|
259
|
+
private validationMinSyncDuration;
|
|
260
|
+
private validatePromise;
|
|
185
261
|
/**
|
|
186
262
|
* Traverse the entire project, and validate all scopes
|
|
187
|
-
* @param force - if true, then all scopes are force to validate, even if they aren't marked as dirty
|
|
188
263
|
*/
|
|
189
264
|
validate(): void;
|
|
265
|
+
validate(options: {
|
|
266
|
+
async: false;
|
|
267
|
+
cancellationToken?: CancellationToken;
|
|
268
|
+
}): void;
|
|
269
|
+
validate(options: {
|
|
270
|
+
async: true;
|
|
271
|
+
cancellationToken?: CancellationToken;
|
|
272
|
+
}): Promise<void>;
|
|
273
|
+
private getScopesForCrossScopeValidation;
|
|
274
|
+
private doesXmlFileRequireProvidedSymbols;
|
|
190
275
|
/**
|
|
191
276
|
* Flag all duplicate component names
|
|
192
277
|
*/
|
|
193
278
|
private detectDuplicateComponentNames;
|
|
194
279
|
/**
|
|
195
|
-
*
|
|
280
|
+
* Get the files for a list of filePaths
|
|
281
|
+
* @param filePaths can be an array of srcPath or a destPath strings
|
|
282
|
+
* @param normalizePath should this function repair and standardize the paths? Passing false should have a performance boost if you can guarantee your paths are already sanitized
|
|
196
283
|
*/
|
|
197
|
-
|
|
284
|
+
getFiles<T extends BscFile>(filePaths: string[], normalizePath?: boolean): T[];
|
|
285
|
+
private getFilePathCache;
|
|
198
286
|
/**
|
|
199
287
|
* Get the file at the given path
|
|
200
|
-
* @param filePath can be a srcPath
|
|
288
|
+
* @param filePath can be a srcPath or a destPath
|
|
201
289
|
* @param normalizePath should this function repair and standardize the path? Passing false should have a performance boost if you can guarantee your path is already sanitized
|
|
202
290
|
*/
|
|
203
291
|
getFile<T extends BscFile>(filePath: string, normalizePath?: boolean): T;
|
|
292
|
+
private sortedScopeNames;
|
|
293
|
+
/**
|
|
294
|
+
* Gets a sorted list of all scopeNames, always beginning with "global", "source", then any others in alphabetical order
|
|
295
|
+
*/
|
|
296
|
+
private getSortedScopeNames;
|
|
204
297
|
/**
|
|
205
298
|
* Get a list of all scopes the file is loaded into
|
|
206
|
-
* @param file
|
|
299
|
+
* @param file the file
|
|
207
300
|
*/
|
|
208
|
-
getScopesForFile(file:
|
|
301
|
+
getScopesForFile(file: BscFile | string): Scope[];
|
|
302
|
+
/**
|
|
303
|
+
* Get the first found scope for a file.
|
|
304
|
+
*/
|
|
305
|
+
getFirstScopeForFile(file: BscFile): Scope | undefined;
|
|
209
306
|
getStatementsByName(name: string, originFile: BrsFile, namespaceName?: string): FileLink<Statement>[];
|
|
210
307
|
getStatementsForXmlFile(scope: XmlScope, filterName?: string): FileLink<FunctionStatement>[];
|
|
211
308
|
/**
|
|
212
309
|
* Find all available completion items at the given position
|
|
213
|
-
* @param
|
|
214
|
-
* @param
|
|
215
|
-
* @param columnIndex
|
|
310
|
+
* @param filePath can be a srcPath or a destPath
|
|
311
|
+
* @param position the position (line & column) where completions should be found
|
|
216
312
|
*/
|
|
217
|
-
getCompletions(
|
|
313
|
+
getCompletions(filePath: string, position: Position): import("vscode-languageserver-types").CompletionItem[];
|
|
218
314
|
/**
|
|
219
315
|
* Goes through each file and builds a list of workspace symbols for the program. Used by LanguageServer's onWorkspaceSymbol functionality
|
|
220
316
|
*/
|
|
221
|
-
getWorkspaceSymbols():
|
|
317
|
+
getWorkspaceSymbols(): import("vscode-languageserver-types").WorkspaceSymbol[];
|
|
222
318
|
/**
|
|
223
319
|
* Given a position in a file, if the position is sitting on some type of identifier,
|
|
224
320
|
* go to the definition of that identifier (where this thing was first defined)
|
|
225
|
-
* @param srcPath The absolute path to the source file on disk
|
|
226
321
|
*/
|
|
227
322
|
getDefinition(srcPath: string, position: Position): Location[];
|
|
228
323
|
/**
|
|
229
|
-
*
|
|
324
|
+
* Get hover information for a file and position
|
|
325
|
+
*/
|
|
326
|
+
getHover(srcPath: string, position: Position): Hover[];
|
|
327
|
+
/**
|
|
328
|
+
* Get full list of document symbols for a file
|
|
329
|
+
* @param srcPath path to the file
|
|
230
330
|
*/
|
|
231
|
-
|
|
331
|
+
getDocumentSymbols(srcPath: string): DocumentSymbol[] | undefined;
|
|
232
332
|
/**
|
|
233
333
|
* Compute code actions for the given file and range
|
|
234
|
-
* @param srcPath The absolute path to the source file on disk
|
|
235
334
|
*/
|
|
236
335
|
getCodeActions(srcPath: string, range: Range): CodeAction[];
|
|
237
336
|
/**
|
|
238
337
|
* Get semantic tokens for the specified file
|
|
239
338
|
*/
|
|
240
|
-
getSemanticTokens(srcPath: string): SemanticToken[];
|
|
241
|
-
getSignatureHelp(
|
|
242
|
-
|
|
243
|
-
private getPartialItemCounts;
|
|
339
|
+
getSemanticTokens(srcPath: string): SemanticToken[] | undefined;
|
|
340
|
+
getSignatureHelp(filePath: string, position: Position): SignatureInfoObj[];
|
|
341
|
+
getReferences(srcPath: string, position: Position): Location[];
|
|
244
342
|
/**
|
|
245
|
-
*
|
|
343
|
+
* Transpile a single file and get the result as a string.
|
|
344
|
+
* This does not write anything to the file system.
|
|
345
|
+
*
|
|
346
|
+
* This should only be called by `LanguageServer`.
|
|
347
|
+
* Internal usage should call `_getTranspiledFileContents` instead.
|
|
348
|
+
* @param filePath can be a srcPath or a destPath
|
|
246
349
|
*/
|
|
247
|
-
|
|
350
|
+
getTranspiledFileContents(filePath: string): Promise<FileTranspileResult>;
|
|
351
|
+
private getTranspiledFileContentsPipeline;
|
|
248
352
|
/**
|
|
249
|
-
* Get
|
|
250
|
-
* @param sourcePkgPath - the pkgPath of the source that wants to resolve script imports.
|
|
353
|
+
* Get the absolute output path for a file
|
|
251
354
|
*/
|
|
252
|
-
|
|
355
|
+
private getOutputPath;
|
|
356
|
+
private getOutDir;
|
|
253
357
|
/**
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
* @param srcPath The absolute path to the source file on disk
|
|
358
|
+
* Prepare the program for building
|
|
359
|
+
* @param files the list of files that should be prepared
|
|
257
360
|
*/
|
|
258
|
-
|
|
259
|
-
srcPath: string;
|
|
260
|
-
pkgPath: string;
|
|
261
|
-
code: string;
|
|
262
|
-
map: import("source-map").SourceMapGenerator;
|
|
263
|
-
};
|
|
264
|
-
transpile(fileEntries: FileObj[], stagingFolderPath: string): Promise<void>;
|
|
361
|
+
private prepare;
|
|
265
362
|
/**
|
|
266
|
-
*
|
|
363
|
+
* Generate the contents of every file
|
|
364
|
+
*/
|
|
365
|
+
private serialize;
|
|
366
|
+
/**
|
|
367
|
+
* Write the entire project to disk
|
|
267
368
|
*/
|
|
268
|
-
|
|
369
|
+
private write;
|
|
370
|
+
private buildPipeline;
|
|
371
|
+
/**
|
|
372
|
+
* Build the project. This transpiles/transforms/copies all files and moves them to the staging directory
|
|
373
|
+
* @param options the list of options used to build the program
|
|
374
|
+
*/
|
|
375
|
+
build(options?: ProgramBuildOptions): Promise<void>;
|
|
269
376
|
/**
|
|
270
377
|
* Find a list of files in the program that have a function with the given name (case INsensitive)
|
|
271
378
|
*/
|
|
272
|
-
|
|
379
|
+
findFilesForFunction(functionName: string): BscFile[];
|
|
273
380
|
/**
|
|
274
|
-
*
|
|
381
|
+
* Find a list of files in the program that have a class with the given name (case INsensitive)
|
|
275
382
|
*/
|
|
276
|
-
|
|
383
|
+
findFilesForClass(className: string): BscFile[];
|
|
384
|
+
findFilesForNamespace(name: string): BscFile[];
|
|
385
|
+
findFilesForEnum(name: string): BscFile[];
|
|
277
386
|
private _manifest;
|
|
387
|
+
/**
|
|
388
|
+
* Modify a parsed manifest map by reading `bs_const` and injecting values from `options.manifest.bs_const`
|
|
389
|
+
* @param parsedManifest The manifest map to read from and modify
|
|
390
|
+
*/
|
|
391
|
+
private buildBsConstsIntoParsedManifest;
|
|
392
|
+
/**
|
|
393
|
+
* Try to find and load the manifest into memory
|
|
394
|
+
* @param manifestFileObj A pointer to a potential manifest file object found during loading
|
|
395
|
+
* @param replaceIfAlreadyLoaded should we overwrite the internal `_manifest` if it already exists
|
|
396
|
+
*/
|
|
397
|
+
loadManifest(manifestFileObj?: FileObj, replaceIfAlreadyLoaded?: boolean): void;
|
|
398
|
+
/**
|
|
399
|
+
* Get a map of the manifest information
|
|
400
|
+
*/
|
|
401
|
+
getManifest(): Map<string, string>;
|
|
278
402
|
dispose(): void;
|
|
279
403
|
}
|
|
404
|
+
export interface FileTranspileResult {
|
|
405
|
+
srcPath: string;
|
|
406
|
+
destPath: string;
|
|
407
|
+
pkgPath: string;
|
|
408
|
+
code: string;
|
|
409
|
+
map: string;
|
|
410
|
+
typedef: string;
|
|
411
|
+
}
|
|
412
|
+
export interface ProgramBuildOptions {
|
|
413
|
+
/**
|
|
414
|
+
* The directory where the final built files should be placed. This directory will be cleared before running
|
|
415
|
+
*/
|
|
416
|
+
outDir?: string;
|
|
417
|
+
/**
|
|
418
|
+
* An array of files to build. If omitted, the entire list of files from the program will be used instead.
|
|
419
|
+
* Typically you will want to leave this blank
|
|
420
|
+
*/
|
|
421
|
+
files?: BscFile[];
|
|
422
|
+
}
|