brighterscript 0.66.0-alpha.8 → 0.67.0
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/CHANGELOG.md +120 -71
- package/README.md +14 -418
- package/dist/BsConfig.d.ts +25 -2
- package/dist/Cache.js +3 -3
- package/dist/Cache.js.map +1 -1
- package/dist/CodeActionUtil.d.ts +3 -3
- package/dist/CodeActionUtil.js.map +1 -1
- package/dist/CommentFlagProcessor.d.ts +3 -4
- package/dist/CommentFlagProcessor.js +4 -3
- package/dist/CommentFlagProcessor.js.map +1 -1
- package/dist/DependencyGraph.js +8 -8
- package/dist/DependencyGraph.js.map +1 -1
- package/dist/DiagnosticFilterer.d.ts +8 -4
- package/dist/DiagnosticFilterer.js +71 -38
- package/dist/DiagnosticFilterer.js.map +1 -1
- package/dist/DiagnosticMessages.d.ts +15 -36
- package/dist/DiagnosticMessages.js +15 -61
- package/dist/DiagnosticMessages.js.map +1 -1
- package/dist/DiagnosticSeverityAdjuster.js +3 -0
- package/dist/DiagnosticSeverityAdjuster.js.map +1 -1
- package/dist/FunctionScope.d.ts +2 -3
- package/dist/FunctionScope.js +0 -3
- package/dist/FunctionScope.js.map +1 -1
- package/dist/LanguageServer.d.ts +1 -2
- package/dist/LanguageServer.js +29 -35
- package/dist/LanguageServer.js.map +1 -1
- package/dist/Logger.d.ts +5 -9
- package/dist/Logger.js +18 -22
- package/dist/Logger.js.map +1 -1
- package/dist/PluginInterface.d.ts +13 -15
- package/dist/PluginInterface.js +16 -70
- package/dist/PluginInterface.js.map +1 -1
- package/dist/Program.d.ts +105 -138
- package/dist/Program.js +479 -702
- package/dist/Program.js.map +1 -1
- package/dist/ProgramBuilder.d.ts +8 -19
- package/dist/ProgramBuilder.js +82 -87
- package/dist/ProgramBuilder.js.map +1 -1
- package/dist/Scope.d.ts +56 -46
- package/dist/Scope.js +281 -217
- package/dist/Scope.js.map +1 -1
- package/dist/Stopwatch.js +1 -1
- package/dist/Stopwatch.js.map +1 -1
- package/dist/SymbolTable.d.ts +12 -68
- package/dist/SymbolTable.js +28 -213
- package/dist/SymbolTable.js.map +1 -1
- package/dist/XmlScope.d.ts +5 -7
- package/dist/XmlScope.js +36 -76
- package/dist/XmlScope.js.map +1 -1
- package/dist/astUtils/{Editor.d.ts → AstEditor.d.ts} +1 -6
- package/dist/astUtils/{Editor.js → AstEditor.js} +3 -9
- package/dist/astUtils/AstEditor.js.map +1 -0
- package/dist/astUtils/{Editor.spec.js → AstEditor.spec.js} +6 -10
- package/dist/astUtils/AstEditor.spec.js.map +1 -0
- package/dist/astUtils/creators.d.ts +8 -19
- package/dist/astUtils/creators.js +22 -54
- package/dist/astUtils/creators.js.map +1 -1
- package/dist/astUtils/creators.spec.js +0 -10
- package/dist/astUtils/creators.spec.js.map +1 -1
- package/dist/astUtils/reflection.d.ts +45 -81
- package/dist/astUtils/reflection.js +157 -220
- package/dist/astUtils/reflection.js.map +1 -1
- package/dist/astUtils/reflection.spec.js +19 -96
- package/dist/astUtils/reflection.spec.js.map +1 -1
- package/dist/astUtils/stackedVisitor.spec.js.map +1 -1
- package/dist/astUtils/visitors.d.ts +14 -18
- package/dist/astUtils/visitors.js +9 -22
- package/dist/astUtils/visitors.js.map +1 -1
- package/dist/astUtils/visitors.spec.js +9 -62
- package/dist/astUtils/visitors.spec.js.map +1 -1
- package/dist/astUtils/xml.d.ts +9 -9
- package/dist/astUtils/xml.js +6 -6
- package/dist/astUtils/xml.js.map +1 -1
- package/dist/bscPlugin/BscPlugin.d.ts +8 -11
- package/dist/bscPlugin/BscPlugin.js +21 -29
- package/dist/bscPlugin/BscPlugin.js.map +1 -1
- package/dist/bscPlugin/CallExpressionInfo.d.ts +6 -5
- package/dist/bscPlugin/CallExpressionInfo.js +2 -2
- package/dist/bscPlugin/CallExpressionInfo.js.map +1 -1
- package/dist/bscPlugin/codeActions/CodeActionsProcessor.js +11 -11
- package/dist/bscPlugin/codeActions/CodeActionsProcessor.js.map +1 -1
- package/dist/bscPlugin/codeActions/CodeActionsProcessor.spec.js +4 -4
- package/dist/bscPlugin/codeActions/CodeActionsProcessor.spec.js.map +1 -1
- package/dist/bscPlugin/completions/CompletionsProcessor.d.ts +1 -49
- package/dist/bscPlugin/completions/CompletionsProcessor.js +23 -424
- package/dist/bscPlugin/completions/CompletionsProcessor.js.map +1 -1
- package/dist/bscPlugin/definition/DefinitionProvider.d.ts +13 -0
- package/dist/bscPlugin/definition/DefinitionProvider.js +200 -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/hover/HoverProcessor.d.ts +3 -7
- package/dist/bscPlugin/hover/HoverProcessor.js +88 -128
- package/dist/bscPlugin/hover/HoverProcessor.js.map +1 -1
- package/dist/bscPlugin/hover/HoverProcessor.spec.js +24 -336
- package/dist/bscPlugin/hover/HoverProcessor.spec.js.map +1 -1
- package/dist/bscPlugin/references/ReferencesProvider.d.ts +12 -0
- package/dist/bscPlugin/references/ReferencesProvider.js +56 -0
- package/dist/bscPlugin/references/ReferencesProvider.js.map +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 +0 -1
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.js +5 -49
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.js.map +1 -1
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.spec.js +0 -22
- package/dist/bscPlugin/semanticTokens/BrsFileSemanticTokensProcessor.spec.js.map +1 -1
- 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.js +290 -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.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 +140 -0
- package/dist/bscPlugin/symbols/symbolUtils.js.map +1 -0
- package/dist/bscPlugin/transpile/{BrsFileTranspileProcessor.d.ts → BrsFilePreTranspileProcessor.d.ts} +2 -4
- package/dist/bscPlugin/transpile/{BrsFileTranspileProcessor.js → BrsFilePreTranspileProcessor.js} +15 -36
- package/dist/bscPlugin/transpile/BrsFilePreTranspileProcessor.js.map +1 -0
- package/dist/bscPlugin/transpile/BrsFilePreTranspileProcessor.spec.js +46 -0
- package/dist/bscPlugin/transpile/BrsFilePreTranspileProcessor.spec.js.map +1 -0
- package/dist/bscPlugin/validation/BrsFileValidator.d.ts +1 -0
- package/dist/bscPlugin/validation/BrsFileValidator.js +30 -41
- package/dist/bscPlugin/validation/BrsFileValidator.js.map +1 -1
- package/dist/bscPlugin/validation/BrsFileValidator.spec.js +2 -2
- package/dist/bscPlugin/validation/BrsFileValidator.spec.js.map +1 -1
- package/dist/bscPlugin/validation/ProgramValidator.d.ts +3 -3
- package/dist/bscPlugin/validation/ProgramValidator.js +6 -6
- package/dist/bscPlugin/validation/ProgramValidator.js.map +1 -1
- package/dist/bscPlugin/validation/ScopeValidator.d.ts +6 -28
- package/dist/bscPlugin/validation/ScopeValidator.js +166 -387
- package/dist/bscPlugin/validation/ScopeValidator.js.map +1 -1
- package/dist/bscPlugin/validation/XmlFileValidator.js +9 -9
- package/dist/bscPlugin/validation/XmlFileValidator.js.map +1 -1
- package/dist/diagnosticUtils.d.ts +2 -3
- package/dist/diagnosticUtils.js +5 -5
- package/dist/diagnosticUtils.js.map +1 -1
- package/dist/examples/plugins/removePrint.js +1 -1
- package/dist/examples/plugins/removePrint.js.map +1 -1
- package/dist/files/BrsFile.Class.spec.js +143 -114
- package/dist/files/BrsFile.Class.spec.js.map +1 -1
- package/dist/files/BrsFile.d.ts +61 -83
- package/dist/files/BrsFile.js +552 -607
- package/dist/files/BrsFile.js.map +1 -1
- package/dist/files/BrsFile.spec.js +1365 -1201
- package/dist/files/BrsFile.spec.js.map +1 -1
- package/dist/files/XmlFile.d.ts +28 -56
- package/dist/files/XmlFile.js +103 -89
- package/dist/files/XmlFile.js.map +1 -1
- package/dist/files/XmlFile.spec.js +179 -122
- package/dist/files/XmlFile.spec.js.map +1 -1
- package/dist/files/tests/imports.spec.js +19 -29
- package/dist/files/tests/imports.spec.js.map +1 -1
- package/dist/files/tests/optionalChaning.spec.js +14 -14
- package/dist/files/tests/optionalChaning.spec.js.map +1 -1
- package/dist/globalCallables.js +83 -88
- package/dist/globalCallables.js.map +1 -1
- package/dist/index.d.ts +1 -9
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +173 -423
- package/dist/interfaces.js +0 -24
- package/dist/interfaces.js.map +1 -1
- package/dist/lexer/Lexer.d.ts +9 -15
- package/dist/lexer/Lexer.js +35 -46
- package/dist/lexer/Lexer.js.map +1 -1
- package/dist/lexer/Lexer.spec.js +48 -40
- package/dist/lexer/Lexer.spec.js.map +1 -1
- package/dist/lexer/Token.d.ts +1 -5
- package/dist/lexer/Token.js +1 -1
- package/dist/lexer/Token.js.map +1 -1
- package/dist/lexer/TokenKind.d.ts +0 -6
- package/dist/lexer/TokenKind.js +2 -14
- package/dist/lexer/TokenKind.js.map +1 -1
- package/dist/logging.d.ts +9 -0
- package/dist/logging.js +16 -0
- package/dist/logging.js.map +1 -0
- package/dist/parser/AstNode.d.ts +6 -90
- package/dist/parser/AstNode.js +5 -96
- package/dist/parser/AstNode.js.map +1 -1
- package/dist/parser/AstNode.spec.js.map +1 -1
- package/dist/parser/BrsTranspileState.d.ts +3 -4
- package/dist/parser/BrsTranspileState.js +2 -3
- package/dist/parser/BrsTranspileState.js.map +1 -1
- package/dist/parser/Expression.d.ts +114 -137
- package/dist/parser/Expression.js +244 -373
- package/dist/parser/Expression.js.map +1 -1
- package/dist/parser/Parser.Class.spec.js +19 -46
- package/dist/parser/Parser.Class.spec.js.map +1 -1
- package/dist/parser/Parser.d.ts +18 -14
- package/dist/parser/Parser.js +196 -175
- package/dist/parser/Parser.js.map +1 -1
- package/dist/parser/Parser.spec.d.ts +0 -2
- package/dist/parser/Parser.spec.js +10 -674
- package/dist/parser/Parser.spec.js.map +1 -1
- package/dist/parser/SGParser.d.ts +6 -44
- package/dist/parser/SGParser.js +198 -194
- package/dist/parser/SGParser.js.map +1 -1
- package/dist/parser/SGParser.spec.js +11 -14
- package/dist/parser/SGParser.spec.js.map +1 -1
- package/dist/parser/SGTypes.d.ts +52 -280
- package/dist/parser/SGTypes.js +185 -562
- package/dist/parser/SGTypes.js.map +1 -1
- package/dist/parser/Statement.d.ts +140 -172
- package/dist/parser/Statement.js +201 -337
- package/dist/parser/Statement.js.map +1 -1
- package/dist/parser/Statement.spec.js.map +1 -1
- package/dist/parser/TranspileState.d.ts +3 -2
- package/dist/parser/TranspileState.js +8 -10
- package/dist/parser/TranspileState.js.map +1 -1
- package/dist/parser/tests/Parser.spec.js +3 -5
- package/dist/parser/tests/Parser.spec.js.map +1 -1
- package/dist/parser/tests/controlFlow/For.spec.js +8 -16
- package/dist/parser/tests/controlFlow/For.spec.js.map +1 -1
- package/dist/parser/tests/controlFlow/ForEach.spec.js +6 -12
- package/dist/parser/tests/controlFlow/ForEach.spec.js.map +1 -1
- package/dist/parser/tests/controlFlow/While.spec.js +4 -8
- package/dist/parser/tests/controlFlow/While.spec.js.map +1 -1
- package/dist/parser/tests/expression/Call.spec.js +4 -4
- package/dist/parser/tests/expression/Call.spec.js.map +1 -1
- package/dist/parser/tests/expression/Indexing.spec.js +25 -0
- package/dist/parser/tests/expression/Indexing.spec.js.map +1 -1
- package/dist/parser/tests/expression/NullCoalescenceExpression.spec.js +73 -29
- package/dist/parser/tests/expression/NullCoalescenceExpression.spec.js.map +1 -1
- package/dist/parser/tests/expression/RegexLiteralExpression.spec.js +10 -10
- package/dist/parser/tests/expression/RegexLiteralExpression.spec.js.map +1 -1
- package/dist/parser/tests/expression/SourceLiteralExpression.spec.js +24 -24
- package/dist/parser/tests/expression/SourceLiteralExpression.spec.js.map +1 -1
- package/dist/parser/tests/expression/TemplateStringExpression.spec.js +47 -35
- package/dist/parser/tests/expression/TemplateStringExpression.spec.js.map +1 -1
- package/dist/parser/tests/expression/TernaryExpression.spec.js +83 -36
- package/dist/parser/tests/expression/TernaryExpression.spec.js.map +1 -1
- package/dist/parser/tests/expression/UnaryExpression.spec.js +2 -2
- package/dist/parser/tests/expression/UnaryExpression.spec.js.map +1 -1
- package/dist/parser/tests/statement/ConstStatement.spec.js +26 -27
- package/dist/parser/tests/statement/ConstStatement.spec.js.map +1 -1
- package/dist/parser/tests/statement/Continue.spec.js +2 -2
- package/dist/parser/tests/statement/Continue.spec.js.map +1 -1
- package/dist/parser/tests/statement/Dim.spec.js.map +1 -1
- package/dist/parser/tests/statement/Enum.spec.js +393 -90
- package/dist/parser/tests/statement/Enum.spec.js.map +1 -1
- package/dist/parser/tests/statement/For.spec.js +6 -6
- package/dist/parser/tests/statement/For.spec.js.map +1 -1
- package/dist/parser/tests/statement/ForEach.spec.js +4 -4
- package/dist/parser/tests/statement/ForEach.spec.js.map +1 -1
- package/dist/parser/tests/statement/Function.spec.js +1 -1
- package/dist/parser/tests/statement/Function.spec.js.map +1 -1
- package/dist/parser/tests/statement/InterfaceStatement.spec.js +18 -18
- package/dist/parser/tests/statement/InterfaceStatement.spec.js.map +1 -1
- package/dist/parser/tests/statement/Misc.spec.js.map +1 -1
- package/dist/parser/tests/statement/PrintStatement.spec.js +13 -16
- package/dist/parser/tests/statement/PrintStatement.spec.js.map +1 -1
- package/dist/parser/tests/statement/ReturnStatement.spec.js +3 -5
- package/dist/parser/tests/statement/ReturnStatement.spec.js.map +1 -1
- package/dist/parser/tests/statement/Set.spec.js +13 -26
- package/dist/parser/tests/statement/Set.spec.js.map +1 -1
- package/dist/parser/tests/statement/Throw.spec.js.map +1 -1
- package/dist/parser/tests/statement/TryCatch.spec.js.map +1 -1
- package/dist/preprocessor/Chunk.js +1 -2
- package/dist/preprocessor/Chunk.js.map +1 -1
- package/dist/preprocessor/Preprocessor.d.ts +3 -4
- package/dist/preprocessor/Preprocessor.js +3 -3
- package/dist/preprocessor/Preprocessor.js.map +1 -1
- package/dist/preprocessor/PreprocessorParser.js +8 -1
- package/dist/preprocessor/PreprocessorParser.js.map +1 -1
- package/dist/roku-types/data.json +293 -243
- package/dist/roku-types/index.d.ts +38 -17
- package/dist/types/ArrayType.d.ts +4 -9
- package/dist/types/ArrayType.js +24 -72
- package/dist/types/ArrayType.js.map +1 -1
- package/dist/types/ArrayType.spec.js +10 -39
- package/dist/types/ArrayType.spec.js.map +1 -1
- package/dist/types/BooleanType.d.ts +4 -8
- package/dist/types/BooleanType.js +8 -19
- package/dist/types/BooleanType.js.map +1 -1
- package/dist/types/BooleanType.spec.js +3 -9
- package/dist/types/BooleanType.spec.js.map +1 -1
- package/dist/types/BscType.d.ts +2 -29
- package/dist/types/BscType.js +0 -113
- package/dist/types/BscType.js.map +1 -1
- package/dist/types/CustomType.d.ts +9 -0
- package/dist/types/CustomType.js +32 -0
- package/dist/types/CustomType.js.map +1 -0
- package/dist/types/DoubleType.d.ts +4 -8
- package/dist/types/DoubleType.js +20 -23
- package/dist/types/DoubleType.js.map +1 -1
- package/dist/types/DoubleType.spec.js +3 -11
- package/dist/types/DoubleType.spec.js.map +1 -1
- package/dist/types/DynamicType.d.ts +3 -9
- package/dist/types/DynamicType.js +2 -18
- package/dist/types/DynamicType.js.map +1 -1
- package/dist/types/DynamicType.spec.js +4 -15
- package/dist/types/DynamicType.spec.js.map +1 -1
- package/dist/types/FloatType.d.ts +4 -8
- package/dist/types/FloatType.js +20 -23
- package/dist/types/FloatType.js.map +1 -1
- package/dist/types/FloatType.spec.js +3 -3
- package/dist/types/FloatType.spec.js.map +1 -1
- package/dist/types/FunctionType.d.ts +20 -10
- package/dist/types/FunctionType.js +52 -27
- package/dist/types/FunctionType.js.map +1 -1
- package/dist/types/FunctionType.spec.js +23 -0
- package/dist/types/FunctionType.spec.js.map +1 -0
- package/dist/types/IntegerType.d.ts +4 -8
- package/dist/types/IntegerType.js +20 -23
- package/dist/types/IntegerType.js.map +1 -1
- package/dist/types/IntegerType.spec.js +3 -7
- package/dist/types/IntegerType.spec.js.map +1 -1
- package/dist/types/InterfaceType.d.ts +10 -12
- package/dist/types/InterfaceType.js +48 -23
- package/dist/types/InterfaceType.js.map +1 -1
- package/dist/types/InterfaceType.spec.js +45 -82
- package/dist/types/InterfaceType.spec.js.map +1 -1
- package/dist/types/InvalidType.d.ts +4 -7
- package/dist/types/InvalidType.js +8 -18
- package/dist/types/InvalidType.js.map +1 -1
- package/dist/types/InvalidType.spec.js +3 -7
- package/dist/types/InvalidType.spec.js.map +1 -1
- package/dist/types/LongIntegerType.d.ts +4 -8
- package/dist/types/LongIntegerType.js +20 -23
- package/dist/types/LongIntegerType.js.map +1 -1
- package/dist/types/LongIntegerType.spec.js +3 -9
- package/dist/types/LongIntegerType.spec.js.map +1 -1
- package/dist/types/ObjectType.d.ts +4 -8
- package/dist/types/ObjectType.js +7 -21
- package/dist/types/ObjectType.js.map +1 -1
- package/dist/types/ObjectType.spec.js +2 -2
- package/dist/types/ObjectType.spec.js.map +1 -1
- package/dist/types/StringType.d.ts +4 -11
- package/dist/types/StringType.js +8 -23
- package/dist/types/StringType.js.map +1 -1
- package/dist/types/StringType.spec.js +2 -2
- package/dist/types/StringType.spec.js.map +1 -1
- package/dist/types/UninitializedType.d.ts +3 -7
- package/dist/types/UninitializedType.js +3 -14
- package/dist/types/UninitializedType.js.map +1 -1
- package/dist/types/VoidType.d.ts +4 -8
- package/dist/types/VoidType.js +8 -18
- package/dist/types/VoidType.js.map +1 -1
- package/dist/types/VoidType.spec.js +2 -2
- package/dist/types/VoidType.spec.js.map +1 -1
- package/dist/util.d.ts +43 -104
- package/dist/util.js +243 -640
- package/dist/util.js.map +1 -1
- package/dist/validators/ClassValidator.d.ts +6 -1
- package/dist/validators/ClassValidator.js +61 -20
- package/dist/validators/ClassValidator.js.map +1 -1
- package/package.json +13 -12
- package/dist/ActionPipeline.d.ts +0 -10
- package/dist/ActionPipeline.js +0 -40
- package/dist/ActionPipeline.js.map +0 -1
- package/dist/AstValidationSegmenter.d.ts +0 -25
- package/dist/AstValidationSegmenter.js +0 -150
- package/dist/AstValidationSegmenter.js.map +0 -1
- package/dist/CacheVerifier.d.ts +0 -7
- package/dist/CacheVerifier.js +0 -20
- package/dist/CacheVerifier.js.map +0 -1
- package/dist/astUtils/Editor.js.map +0 -1
- package/dist/astUtils/Editor.spec.js.map +0 -1
- package/dist/bscPlugin/FileWriter.d.ts +0 -6
- package/dist/bscPlugin/FileWriter.js +0 -24
- package/dist/bscPlugin/FileWriter.js.map +0 -1
- package/dist/bscPlugin/completions/CompletionsProcessor.spec.js +0 -1658
- package/dist/bscPlugin/completions/CompletionsProcessor.spec.js.map +0 -1
- package/dist/bscPlugin/fileProviders/FileProvider.d.ts +0 -9
- package/dist/bscPlugin/fileProviders/FileProvider.js +0 -51
- package/dist/bscPlugin/fileProviders/FileProvider.js.map +0 -1
- package/dist/bscPlugin/serialize/BslibInjector.spec.js +0 -19
- package/dist/bscPlugin/serialize/BslibInjector.spec.js.map +0 -1
- package/dist/bscPlugin/serialize/BslibManager.d.ts +0 -9
- package/dist/bscPlugin/serialize/BslibManager.js +0 -40
- package/dist/bscPlugin/serialize/BslibManager.js.map +0 -1
- package/dist/bscPlugin/serialize/FileSerializer.d.ts +0 -9
- package/dist/bscPlugin/serialize/FileSerializer.js +0 -72
- package/dist/bscPlugin/serialize/FileSerializer.js.map +0 -1
- package/dist/bscPlugin/transpile/BrsFileTranspileProcessor.js.map +0 -1
- package/dist/bscPlugin/transpile/BrsFileTranspileProcessor.spec.js +0 -41
- package/dist/bscPlugin/transpile/BrsFileTranspileProcessor.spec.js.map +0 -1
- package/dist/bscPlugin/transpile/XmlFilePreTranspileProcessor.d.ts +0 -11
- package/dist/bscPlugin/transpile/XmlFilePreTranspileProcessor.js +0 -53
- package/dist/bscPlugin/transpile/XmlFilePreTranspileProcessor.js.map +0 -1
- package/dist/bscPlugin/validation/ScopeValidator.spec.js +0 -2004
- package/dist/bscPlugin/validation/ScopeValidator.spec.js.map +0 -1
- package/dist/files/AssetFile.d.ts +0 -26
- package/dist/files/AssetFile.js +0 -26
- package/dist/files/AssetFile.js.map +0 -1
- package/dist/files/Factory.d.ts +0 -25
- package/dist/files/Factory.js +0 -22
- package/dist/files/Factory.js.map +0 -1
- package/dist/files/File.d.ts +0 -106
- package/dist/files/File.js +0 -16
- package/dist/files/File.js.map +0 -1
- package/dist/files/LazyFileData.d.ts +0 -20
- package/dist/files/LazyFileData.js +0 -54
- package/dist/files/LazyFileData.js.map +0 -1
- package/dist/files/LazyFileData.spec.js +0 -27
- package/dist/files/LazyFileData.spec.js.map +0 -1
- package/dist/parser/tests/expression/TypeExpression.spec.js +0 -127
- package/dist/parser/tests/expression/TypeExpression.spec.js.map +0 -1
- package/dist/types/AssociativeArrayType.d.ts +0 -11
- package/dist/types/AssociativeArrayType.js +0 -52
- package/dist/types/AssociativeArrayType.js.map +0 -1
- package/dist/types/BaseFunctionType.d.ts +0 -9
- package/dist/types/BaseFunctionType.js +0 -25
- package/dist/types/BaseFunctionType.js.map +0 -1
- package/dist/types/BscTypeKind.d.ts +0 -25
- package/dist/types/BscTypeKind.js +0 -30
- package/dist/types/BscTypeKind.js.map +0 -1
- package/dist/types/BuiltInInterfaceAdder.d.ts +0 -23
- package/dist/types/BuiltInInterfaceAdder.js +0 -160
- package/dist/types/BuiltInInterfaceAdder.js.map +0 -1
- package/dist/types/BuiltInInterfaceAdder.spec.d.ts +0 -1
- package/dist/types/BuiltInInterfaceAdder.spec.js +0 -116
- package/dist/types/BuiltInInterfaceAdder.spec.js.map +0 -1
- package/dist/types/ClassType.d.ts +0 -17
- package/dist/types/ClassType.js +0 -58
- package/dist/types/ClassType.js.map +0 -1
- package/dist/types/ClassType.spec.d.ts +0 -1
- package/dist/types/ClassType.spec.js +0 -77
- package/dist/types/ClassType.spec.js.map +0 -1
- package/dist/types/ComponentType.d.ts +0 -26
- package/dist/types/ComponentType.js +0 -83
- package/dist/types/ComponentType.js.map +0 -1
- package/dist/types/EnumType.d.ts +0 -40
- package/dist/types/EnumType.js +0 -81
- package/dist/types/EnumType.js.map +0 -1
- package/dist/types/EnumType.spec.d.ts +0 -1
- package/dist/types/EnumType.spec.js +0 -33
- package/dist/types/EnumType.spec.js.map +0 -1
- package/dist/types/InheritableType.d.ts +0 -28
- package/dist/types/InheritableType.js +0 -152
- package/dist/types/InheritableType.js.map +0 -1
- package/dist/types/NamespaceType.d.ts +0 -12
- package/dist/types/NamespaceType.js +0 -28
- package/dist/types/NamespaceType.js.map +0 -1
- package/dist/types/ReferenceType.d.ts +0 -63
- package/dist/types/ReferenceType.js +0 -423
- package/dist/types/ReferenceType.js.map +0 -1
- package/dist/types/ReferenceType.spec.d.ts +0 -1
- package/dist/types/ReferenceType.spec.js +0 -137
- package/dist/types/ReferenceType.spec.js.map +0 -1
- package/dist/types/TypedFunctionType.d.ts +0 -33
- package/dist/types/TypedFunctionType.js +0 -106
- package/dist/types/TypedFunctionType.js.map +0 -1
- package/dist/types/TypedFunctionType.spec.d.ts +0 -1
- package/dist/types/TypedFunctionType.spec.js +0 -122
- package/dist/types/TypedFunctionType.spec.js.map +0 -1
- package/dist/types/UnionType.d.ts +0 -20
- package/dist/types/UnionType.js +0 -123
- package/dist/types/UnionType.js.map +0 -1
- package/dist/types/UnionType.spec.d.ts +0 -1
- package/dist/types/UnionType.spec.js +0 -130
- package/dist/types/UnionType.spec.js.map +0 -1
- package/dist/types/helper.spec.d.ts +0 -1
- package/dist/types/helper.spec.js +0 -145
- package/dist/types/helper.spec.js.map +0 -1
- package/dist/types/helpers.d.ts +0 -24
- package/dist/types/helpers.js +0 -178
- package/dist/types/helpers.js.map +0 -1
- package/dist/types/index.d.ts +0 -22
- package/dist/types/index.js +0 -39
- package/dist/types/index.js.map +0 -1
- /package/dist/astUtils/{Editor.spec.d.ts → AstEditor.spec.d.ts} +0 -0
- /package/dist/bscPlugin/{completions/CompletionsProcessor.spec.d.ts → definition/DefinitionProvider.spec.d.ts} +0 -0
- /package/dist/bscPlugin/{serialize/BslibInjector.spec.d.ts → references/ReferencesProvider.spec.d.ts} +0 -0
- /package/dist/bscPlugin/{transpile/BrsFileTranspileProcessor.spec.d.ts → symbols/DocumentSymbolProcessor.spec.d.ts} +0 -0
- /package/dist/bscPlugin/{validation/ScopeValidator.spec.d.ts → symbols/WorkspaceSymbolProcessor.spec.d.ts} +0 -0
- /package/dist/{files/LazyFileData.spec.d.ts → bscPlugin/transpile/BrsFilePreTranspileProcessor.spec.d.ts} +0 -0
- /package/dist/{parser/tests/expression/TypeExpression.spec.d.ts → types/FunctionType.spec.d.ts} +0 -0
package/dist/util.d.ts
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { BsConfig } from './BsConfig';
|
|
3
|
-
import type { CallableContainer, BsDiagnostic, FileReference, CallableContainerMap, CompilerPlugin, ExpressionInfo,
|
|
1
|
+
import type { Diagnostic, Position, Range, Location } from 'vscode-languageserver';
|
|
2
|
+
import type { BsConfig, FinalizedBsConfig } from './BsConfig';
|
|
3
|
+
import type { CallableContainer, BsDiagnostic, FileReference, CallableContainerMap, CompilerPlugin, ExpressionInfo, TranspileResult } from './interfaces';
|
|
4
4
|
import { BooleanType } from './types/BooleanType';
|
|
5
5
|
import { DoubleType } from './types/DoubleType';
|
|
6
6
|
import { DynamicType } from './types/DynamicType';
|
|
7
7
|
import { FloatType } from './types/FloatType';
|
|
8
|
+
import { FunctionType } from './types/FunctionType';
|
|
8
9
|
import { IntegerType } from './types/IntegerType';
|
|
10
|
+
import { InvalidType } from './types/InvalidType';
|
|
9
11
|
import { LongIntegerType } from './types/LongIntegerType';
|
|
10
12
|
import { ObjectType } from './types/ObjectType';
|
|
11
13
|
import { StringType } from './types/StringType';
|
|
12
14
|
import { VoidType } from './types/VoidType';
|
|
13
|
-
import { ParseMode } from './parser/Parser';
|
|
14
15
|
import type { DottedGetExpression, VariableExpression } from './parser/Expression';
|
|
15
16
|
import type { Identifier, Locatable, Token } from './lexer/Token';
|
|
17
|
+
import { CustomType } from './types/CustomType';
|
|
16
18
|
import { SourceNode } from 'source-map';
|
|
19
|
+
import type { SGAttribute } from './parser/SGTypes';
|
|
17
20
|
import type { BrsFile } from './files/BrsFile';
|
|
18
21
|
import type { XmlFile } from './files/XmlFile';
|
|
19
|
-
import type {
|
|
20
|
-
import { type Expression, type Statement } from './parser/AstNode';
|
|
21
|
-
import type { BscType } from './types/BscType';
|
|
22
|
-
import { FunctionType } from './types/FunctionType';
|
|
23
|
-
import type { SymbolTable } from './SymbolTable';
|
|
24
|
-
import type { UnresolvedSymbol } from './AstValidationSegmenter';
|
|
22
|
+
import type { Expression, Statement } from './parser/AstNode';
|
|
25
23
|
export declare class Util {
|
|
26
24
|
clearConsole(): void;
|
|
27
25
|
/**
|
|
@@ -50,7 +48,6 @@ export declare class Util {
|
|
|
50
48
|
startsWithProtocol(path: string): boolean;
|
|
51
49
|
/**
|
|
52
50
|
* Given a pkg path of any kind, transform it to a roku-specific pkg path (i.e. "pkg:/some/path.brs")
|
|
53
|
-
* @deprecated use `sanitizePkgPath instead. Will be removed in v1
|
|
54
51
|
*/
|
|
55
52
|
getRokuPkgPath(pkgPath: string): string;
|
|
56
53
|
/**
|
|
@@ -70,7 +67,7 @@ export declare class Util {
|
|
|
70
67
|
* @param configFilePath the relative or absolute path to a brighterscript config json file
|
|
71
68
|
* @param parentProjectPaths a list of parent config files. This is used by this method to recursively build the config list
|
|
72
69
|
*/
|
|
73
|
-
loadConfigFile(configFilePath: string, parentProjectPaths?: string[], cwd?: string): BsConfig;
|
|
70
|
+
loadConfigFile(configFilePath: string | undefined, parentProjectPaths?: string[], cwd?: string): BsConfig | undefined;
|
|
74
71
|
/**
|
|
75
72
|
* Convert relative paths to absolute paths, relative to the given directory. Also de-dupes the paths. Modifies the array in-place
|
|
76
73
|
* @param collection usually a bsconfig.
|
|
@@ -89,12 +86,12 @@ export declare class Util {
|
|
|
89
86
|
* merge with bsconfig.json and the provided options.
|
|
90
87
|
* @param config a bsconfig object to use as the baseline for the resulting config
|
|
91
88
|
*/
|
|
92
|
-
normalizeAndResolveConfig(config: BsConfig):
|
|
89
|
+
normalizeAndResolveConfig(config: BsConfig | undefined): FinalizedBsConfig;
|
|
93
90
|
/**
|
|
94
91
|
* Set defaults for any missing items
|
|
95
92
|
* @param config a bsconfig object to use as the baseline for the resulting config
|
|
96
93
|
*/
|
|
97
|
-
normalizeConfig(config: BsConfig):
|
|
94
|
+
normalizeConfig(config: BsConfig | undefined): FinalizedBsConfig;
|
|
98
95
|
/**
|
|
99
96
|
* Get the root directory from options.
|
|
100
97
|
* Falls back to options.cwd.
|
|
@@ -134,7 +131,7 @@ export declare class Util {
|
|
|
134
131
|
* | bbb | bb | bbb | b | bbb | bb | bb | b | a |
|
|
135
132
|
* ```
|
|
136
133
|
*/
|
|
137
|
-
rangesIntersect(a: Range, b: Range): boolean;
|
|
134
|
+
rangesIntersect(a: Range | undefined, b: Range | undefined): boolean;
|
|
138
135
|
/**
|
|
139
136
|
* Do `a` and `b` overlap by at least one character or touch at the edges
|
|
140
137
|
* ```
|
|
@@ -144,28 +141,13 @@ export declare class Util {
|
|
|
144
141
|
* | bbb | bb | bbb | b | bbb | bb | bb | b | a |
|
|
145
142
|
* ```
|
|
146
143
|
*/
|
|
147
|
-
rangesIntersectOrTouch(a: Range, b: Range): boolean;
|
|
144
|
+
rangesIntersectOrTouch(a: Range | undefined, b: Range | undefined): boolean;
|
|
148
145
|
/**
|
|
149
146
|
* Test if `position` is in `range`. If the position is at the edges, will return true.
|
|
150
147
|
* Adapted from core vscode
|
|
151
148
|
*/
|
|
152
|
-
rangeContains(range: Range, position: Position): boolean;
|
|
153
|
-
comparePositionToRange(position: Position, range: Range): 1 | -1 | 0;
|
|
154
|
-
/**
|
|
155
|
-
* Combine all the documentation found before a token (i.e. comment tokens)
|
|
156
|
-
*/
|
|
157
|
-
getTokenDocumentation(tokens: Token[], token?: Token): string;
|
|
158
|
-
/**
|
|
159
|
-
* Combine all the documentation for a node - uses the AstNode's leadingTrivia property
|
|
160
|
-
*/
|
|
161
|
-
getNodeDocumentation(node: AstNode): string;
|
|
162
|
-
/**
|
|
163
|
-
* Prefixes a component name so it can be used as type in the symbol table, without polluting available symbols
|
|
164
|
-
*
|
|
165
|
-
* @param sgNodeName the Name of the component
|
|
166
|
-
* @returns the node name, prefixed with `roSGNode`
|
|
167
|
-
*/
|
|
168
|
-
getSgNodeTypeName(sgNodeName: string): string;
|
|
149
|
+
rangeContains(range: Range | undefined, position: Position | undefined): boolean;
|
|
150
|
+
comparePositionToRange(position: Position | undefined, range: Range | undefined): 1 | -1 | 0;
|
|
169
151
|
/**
|
|
170
152
|
* Parse an xml file and get back a javascript object containing its results
|
|
171
153
|
*/
|
|
@@ -196,11 +178,11 @@ export declare class Util {
|
|
|
196
178
|
/**
|
|
197
179
|
* Get the outDir from options, taking into account cwd and absolute outFile paths
|
|
198
180
|
*/
|
|
199
|
-
getOutDir(options:
|
|
181
|
+
getOutDir(options: FinalizedBsConfig): string;
|
|
200
182
|
/**
|
|
201
183
|
* Get paths to all files on disc that match this project's source list
|
|
202
184
|
*/
|
|
203
|
-
getFilePaths(options:
|
|
185
|
+
getFilePaths(options: FinalizedBsConfig): Promise<import("roku-deploy").StandardizedFileEntry[]>;
|
|
204
186
|
/**
|
|
205
187
|
* Given a path to a brs file, compute the path to a theoretical d.bs file.
|
|
206
188
|
* Only `.brs` files can have typedef path, so return undefined for everything else
|
|
@@ -213,7 +195,7 @@ export declare class Util {
|
|
|
213
195
|
/**
|
|
214
196
|
* Walks up the chain to find the closest bsconfig.json file
|
|
215
197
|
*/
|
|
216
|
-
findClosestConfigFile(currentPath: string): Promise<string>;
|
|
198
|
+
findClosestConfigFile(currentPath: string): Promise<string | undefined>;
|
|
217
199
|
/**
|
|
218
200
|
* Set a timeout for the specified milliseconds, and resolve the promise once the timeout is finished.
|
|
219
201
|
* @param milliseconds the minimum number of milliseconds to sleep for
|
|
@@ -224,7 +206,7 @@ export declare class Util {
|
|
|
224
206
|
* @param array the array to flatMap over
|
|
225
207
|
* @param callback a function that is called for every array item
|
|
226
208
|
*/
|
|
227
|
-
flatMap<T, R>(array: T[], callback: (arg: T) => R): R;
|
|
209
|
+
flatMap<T, R>(array: T[], callback: (arg: T) => R[]): R[];
|
|
228
210
|
/**
|
|
229
211
|
* Determines if the position is greater than the range. This means
|
|
230
212
|
* the position does not touch the range, and has a position greater than the end
|
|
@@ -252,9 +234,9 @@ export declare class Util {
|
|
|
252
234
|
* If the two items have lines that touch
|
|
253
235
|
*/
|
|
254
236
|
linesTouch(first: {
|
|
255
|
-
range
|
|
237
|
+
range?: Range | undefined;
|
|
256
238
|
}, second: {
|
|
257
|
-
range
|
|
239
|
+
range?: Range | undefined;
|
|
258
240
|
}): boolean;
|
|
259
241
|
/**
|
|
260
242
|
* Given text with (or without) dots separating text, get the rightmost word.
|
|
@@ -264,7 +246,7 @@ export declare class Util {
|
|
|
264
246
|
/**
|
|
265
247
|
* Find a script import that the current position touches, or undefined if not found
|
|
266
248
|
*/
|
|
267
|
-
getScriptImportAtPosition(scriptImports: FileReference[], position: Position): FileReference;
|
|
249
|
+
getScriptImportAtPosition(scriptImports: FileReference[], position: Position): FileReference | undefined;
|
|
268
250
|
/**
|
|
269
251
|
* Given the class name text, return a namespace-prefixed name.
|
|
270
252
|
* If the name already has a period in it, or the namespaceName was not provided, return the class name as is.
|
|
@@ -278,11 +260,6 @@ export declare class Util {
|
|
|
278
260
|
* Helper for creating `Location` objects. Prefer using this function because vscode-languageserver's `Location.create()` is significantly slower at scale
|
|
279
261
|
*/
|
|
280
262
|
createLocation(uri: string, range: Range): Location;
|
|
281
|
-
/**
|
|
282
|
-
* A cache of `Range` objects. The key is a 52bit integer created from the 4 range integers and leveraging bitshifting.
|
|
283
|
-
* The whole point of this cache is to reduce garbage collection churn, so we didn't want to use string concatenation for the key
|
|
284
|
-
*/
|
|
285
|
-
private rangeCache;
|
|
286
263
|
/**
|
|
287
264
|
* Helper for creating `Range` objects. Prefer using this function because vscode-languageserver's `Range.create()` is significantly slower
|
|
288
265
|
*/
|
|
@@ -297,16 +274,14 @@ export declare class Util {
|
|
|
297
274
|
*/
|
|
298
275
|
createBoundingRange(...locatables: Array<{
|
|
299
276
|
range?: Range;
|
|
300
|
-
}>): Range;
|
|
301
|
-
/**
|
|
302
|
-
* A cache of `Position` objects. The key is a 26bit integer created from line and character and leveraging bitshifting
|
|
303
|
-
* The whole point of this cache is to reduce garbage collection churn, so we didn't want to use string concatenation for the key
|
|
304
|
-
*/
|
|
305
|
-
private positionCache;
|
|
277
|
+
} | null | undefined>): Range | undefined;
|
|
306
278
|
/**
|
|
307
279
|
* Create a `Position` object. Prefer this over `Position.create` for performance reasons
|
|
308
280
|
*/
|
|
309
|
-
createPosition(line: number, character: number):
|
|
281
|
+
createPosition(line: number, character: number): {
|
|
282
|
+
line: number;
|
|
283
|
+
character: number;
|
|
284
|
+
};
|
|
310
285
|
/**
|
|
311
286
|
* Convert a list of tokens into a string, including their leading whitespace
|
|
312
287
|
*/
|
|
@@ -314,27 +289,10 @@ export declare class Util {
|
|
|
314
289
|
/**
|
|
315
290
|
* Convert a token into a BscType
|
|
316
291
|
*/
|
|
317
|
-
tokenToBscType(token: Token): DynamicType |
|
|
318
|
-
/**
|
|
319
|
-
* Deciphers the correct types for fields based on docs
|
|
320
|
-
* https://developer.roku.com/en-ca/docs/references/scenegraph/xml-elements/interface.md
|
|
321
|
-
* @param typeDescriptor the type descriptor from the docs
|
|
322
|
-
* @returns {BscType} the known type, or dynamic
|
|
323
|
-
*/
|
|
324
|
-
getNodeFieldType(typeDescriptor: string, lookupTable?: SymbolTable): BscType;
|
|
325
|
-
/**
|
|
326
|
-
* Return the type of the result of a binary operator
|
|
327
|
-
* Note: compound assignments (eg. +=) internally use a binary expression, so that's why TokenKind.PlusEqual, etc. are here too
|
|
328
|
-
*/
|
|
329
|
-
binaryOperatorResultType(leftType: BscType, operator: Token, rightType: BscType): BscType;
|
|
330
|
-
/**
|
|
331
|
-
* Return the type of the result of a binary operator
|
|
332
|
-
*/
|
|
333
|
-
unaryOperatorResultType(operator: Token, exprType: BscType): BscType;
|
|
292
|
+
tokenToBscType(token: Token, allowCustomType?: boolean): DynamicType | BooleanType | LongIntegerType | IntegerType | FloatType | DoubleType | FunctionType | InvalidType | ObjectType | StringType | VoidType | CustomType;
|
|
334
293
|
/**
|
|
335
294
|
* Get the extension for the given file path. Basically the part after the final dot, except for
|
|
336
295
|
* `d.bs` which is treated as single extension
|
|
337
|
-
* @returns the file extension (i.e. ".d.bs", ".bs", ".brs", ".xml", ".jpg", etc...)
|
|
338
296
|
*/
|
|
339
297
|
getExtension(filePath: string): string;
|
|
340
298
|
/**
|
|
@@ -345,33 +303,30 @@ export declare class Util {
|
|
|
345
303
|
* Gathers expressions, variables, and unique names from an expression.
|
|
346
304
|
* This is mostly used for the ternary expression
|
|
347
305
|
*/
|
|
348
|
-
getExpressionInfo(expression: Expression): ExpressionInfo;
|
|
349
|
-
concatAnnotationLeadingTrivia(stmt: Statement, otherTrivia: Token[]): Token[];
|
|
306
|
+
getExpressionInfo(expression: Expression, file: BrsFile): ExpressionInfo;
|
|
350
307
|
/**
|
|
351
308
|
* Create a SourceNode that maps every line to itself. Useful for creating maps for files
|
|
352
309
|
* that haven't changed at all, but we still need the map
|
|
353
310
|
*/
|
|
354
311
|
simpleMap(source: string, src: string): SourceNode;
|
|
312
|
+
/**
|
|
313
|
+
* Creates a new SGAttribute object, but keeps the existing Range references (since those shouldn't ever get changed directly)
|
|
314
|
+
*/
|
|
315
|
+
cloneSGAttribute(attr: SGAttribute, value: string): SGAttribute;
|
|
355
316
|
/**
|
|
356
317
|
* Converts a path into a standardized format (drive letter to lower, remove extra slashes, use single slash type, resolve relative parts, etc...)
|
|
357
318
|
*/
|
|
358
319
|
standardizePath(thePath: string): string;
|
|
320
|
+
/**
|
|
321
|
+
* Copy the version of bslib from local node_modules to the staging folder
|
|
322
|
+
*/
|
|
323
|
+
copyBslibToStaging(stagingDir: string, bslibDestinationDir?: string): Promise<void>;
|
|
359
324
|
/**
|
|
360
325
|
* Given a Diagnostic or BsDiagnostic, return a deep clone of the diagnostic.
|
|
361
326
|
* @param diagnostic the diagnostic to clone
|
|
362
327
|
* @param relatedInformationFallbackLocation a default location to use for all `relatedInformation` entries that are missing a location
|
|
363
328
|
*/
|
|
364
|
-
toDiagnostic(diagnostic: Diagnostic | BsDiagnostic, relatedInformationFallbackLocation: string):
|
|
365
|
-
severity: import("vscode-languageserver").DiagnosticSeverity;
|
|
366
|
-
range: Range;
|
|
367
|
-
message: string;
|
|
368
|
-
relatedInformation: {
|
|
369
|
-
location: Location;
|
|
370
|
-
message: string;
|
|
371
|
-
}[];
|
|
372
|
-
code: string | number;
|
|
373
|
-
source: string;
|
|
374
|
-
};
|
|
329
|
+
toDiagnostic(diagnostic: Diagnostic | BsDiagnostic, relatedInformationFallbackLocation: string): Diagnostic;
|
|
375
330
|
/**
|
|
376
331
|
* Get the first locatable item found at the specified position
|
|
377
332
|
* @param locatables an array of items that have a `range` property
|
|
@@ -399,13 +354,7 @@ export declare class Util {
|
|
|
399
354
|
* @param node any ast expression
|
|
400
355
|
* @returns an array of the parts of the dotted get. If not fully a dotted get, then returns undefined
|
|
401
356
|
*/
|
|
402
|
-
getAllDottedGetParts(node:
|
|
403
|
-
/**
|
|
404
|
-
* Given an expression, return all the DottedGet name parts as a string.
|
|
405
|
-
* Mostly used to convert namespaced item full names to a strings
|
|
406
|
-
*/
|
|
407
|
-
getAllDottedGetPartsAsString(node: Expression | Statement, parseMode?: ParseMode): string;
|
|
408
|
-
stringJoin(strings: string[], separator: string): string;
|
|
357
|
+
getAllDottedGetParts(node: Expression | Statement): Identifier[] | undefined;
|
|
409
358
|
/**
|
|
410
359
|
* Break an expression into each part.
|
|
411
360
|
*/
|
|
@@ -424,20 +373,10 @@ export declare class Util {
|
|
|
424
373
|
rangeToString(range: Range): string;
|
|
425
374
|
validateTooDeepFile(file: (BrsFile | XmlFile)): void;
|
|
426
375
|
/**
|
|
427
|
-
*
|
|
428
|
-
*/
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
isInTypeExpression(expression: AstNode): boolean;
|
|
432
|
-
setContainsUnresolvedSymbol(symbolLowerNameSet: Set<string>, symbol: UnresolvedSymbol): boolean;
|
|
433
|
-
truncate<T>(options: {
|
|
434
|
-
leadingText: string;
|
|
435
|
-
items: T[];
|
|
436
|
-
trailingText?: string;
|
|
437
|
-
maxLength: number;
|
|
438
|
-
itemSeparator?: string;
|
|
439
|
-
partBuilder?: (item: T) => string;
|
|
440
|
-
}): string;
|
|
376
|
+
* Wraps SourceNode's constructor to be compatible with the TranspileResult type
|
|
377
|
+
*/
|
|
378
|
+
sourceNodeFromTranspileResult(line: number | null, column: number | null, source: string | null, chunks?: string | SourceNode | TranspileResult, name?: string): SourceNode;
|
|
379
|
+
isBuiltInType(typeName: string): any;
|
|
441
380
|
}
|
|
442
381
|
/**
|
|
443
382
|
* A tagged template literal function for standardizing the path. This has to be defined as standalone function since it's a tagged template literal function,
|