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/interfaces.d.ts
CHANGED
|
@@ -1,50 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Range, Diagnostic, CodeAction, SemanticTokenTypes, SemanticTokenModifiers, Position, CompletionItem } from 'vscode-languageserver';
|
|
1
|
+
import type { Range, Diagnostic, CodeAction, Position, CompletionItem, Location, DocumentSymbol, WorkspaceSymbol } from 'vscode-languageserver-protocol';
|
|
3
2
|
import type { Scope } from './Scope';
|
|
4
3
|
import type { BrsFile } from './files/BrsFile';
|
|
5
4
|
import type { XmlFile } from './files/XmlFile';
|
|
6
5
|
import type { FunctionScope } from './FunctionScope';
|
|
7
|
-
import type {
|
|
6
|
+
import type { FunctionType } from './types/FunctionType';
|
|
8
7
|
import type { ParseMode } from './parser/Parser';
|
|
9
|
-
import type { Program } from './Program';
|
|
8
|
+
import type { Program, SourceObj, TranspileObj } from './Program';
|
|
10
9
|
import type { ProgramBuilder } from './ProgramBuilder';
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
10
|
+
import type { FunctionStatement } from './parser/Statement';
|
|
11
|
+
import type { Expression } from './parser/AstNode';
|
|
13
12
|
import type { TranspileState } from './parser/TranspileState';
|
|
14
|
-
import type { SourceNode } from 'source-map';
|
|
13
|
+
import type { SourceMapGenerator, SourceNode } from 'source-map';
|
|
15
14
|
import type { BscType } from './types/BscType';
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
18
|
-
import type {
|
|
19
|
-
import type { FileFactory } from './files/Factory';
|
|
20
|
-
import type { LazyFileData } from './files/LazyFileData';
|
|
21
|
-
import type { SymbolTable, SymbolTypeFlag } from './SymbolTable';
|
|
22
|
-
import type { CallExpression } from './parser/Expression';
|
|
15
|
+
import type { AstEditor } from './astUtils/AstEditor';
|
|
16
|
+
import type { Token } from './lexer/Token';
|
|
17
|
+
import type { SemanticTokenModifiers, SemanticTokenTypes } from 'vscode-languageserver';
|
|
23
18
|
export interface BsDiagnostic extends Diagnostic {
|
|
24
|
-
file:
|
|
19
|
+
file: BscFile;
|
|
25
20
|
/**
|
|
26
21
|
* A generic data container where additional details of the diagnostic can be stored. These are stripped out before being sent to a languageclient, and not printed to the console.
|
|
27
22
|
*/
|
|
28
23
|
data?: any;
|
|
29
24
|
}
|
|
30
|
-
export declare
|
|
31
|
-
Program = "Program",
|
|
32
|
-
Scope = "Scope",
|
|
33
|
-
File = "File",
|
|
34
|
-
ASTSegment = "AstSegment"
|
|
35
|
-
}
|
|
36
|
-
export interface BsDiagnosticWithOrigin extends BsDiagnostic {
|
|
37
|
-
origin: DiagnosticOrigin;
|
|
38
|
-
astSegment?: AstNode;
|
|
39
|
-
}
|
|
25
|
+
export declare type BscFile = BrsFile | XmlFile;
|
|
40
26
|
export interface Callable {
|
|
41
|
-
file:
|
|
27
|
+
file: BscFile;
|
|
42
28
|
name: string;
|
|
43
29
|
/**
|
|
44
30
|
* Is the callable declared as "sub". If falsey, assumed declared as "function"
|
|
45
31
|
*/
|
|
46
32
|
isSub: boolean;
|
|
47
|
-
type:
|
|
33
|
+
type: FunctionType;
|
|
48
34
|
/**
|
|
49
35
|
* A short description of the callable. Should be a short sentence.
|
|
50
36
|
*/
|
|
@@ -78,7 +64,6 @@ export interface FunctionCall {
|
|
|
78
64
|
* The full range of this function call (from the start of the function name to its closing paren)
|
|
79
65
|
*/
|
|
80
66
|
range: Range;
|
|
81
|
-
expression: CallExpression;
|
|
82
67
|
functionScope: FunctionScope;
|
|
83
68
|
file: File;
|
|
84
69
|
name: string;
|
|
@@ -116,12 +101,12 @@ export interface FileObj {
|
|
|
116
101
|
*/
|
|
117
102
|
export interface FileReference {
|
|
118
103
|
/**
|
|
119
|
-
* The
|
|
104
|
+
* The pkgPath to the referenced file.
|
|
120
105
|
*/
|
|
121
|
-
|
|
106
|
+
pkgPath: string;
|
|
122
107
|
text: string;
|
|
123
108
|
/**
|
|
124
|
-
* The file that is doing the import. Note this is NOT the file the
|
|
109
|
+
* The file that is doing the import. Note this is NOT the file the pkgPath points to.
|
|
125
110
|
*/
|
|
126
111
|
sourceFile: XmlFile | BrsFile;
|
|
127
112
|
/**
|
|
@@ -132,9 +117,17 @@ export interface FileReference {
|
|
|
132
117
|
*/
|
|
133
118
|
filePathRange?: Range;
|
|
134
119
|
}
|
|
120
|
+
export interface File {
|
|
121
|
+
/**
|
|
122
|
+
* The absolute path to the file, relative to the pkg
|
|
123
|
+
*/
|
|
124
|
+
pkgPath: string;
|
|
125
|
+
srcPath: string;
|
|
126
|
+
getDiagnostics(): BsDiagnostic[];
|
|
127
|
+
}
|
|
135
128
|
export interface VariableDeclaration {
|
|
136
129
|
name: string;
|
|
137
|
-
|
|
130
|
+
type: BscType;
|
|
138
131
|
/**
|
|
139
132
|
* The range for the variable name
|
|
140
133
|
*/
|
|
@@ -165,7 +158,7 @@ export interface CallableContainer {
|
|
|
165
158
|
}
|
|
166
159
|
export declare type CallableContainerMap = Map<string, CallableContainer[]>;
|
|
167
160
|
export interface CommentFlag {
|
|
168
|
-
file:
|
|
161
|
+
file: BscFile;
|
|
169
162
|
/**
|
|
170
163
|
* The location of the ignore comment.
|
|
171
164
|
*/
|
|
@@ -176,45 +169,22 @@ export interface CommentFlag {
|
|
|
176
169
|
affectedRange: Range;
|
|
177
170
|
codes: DiagnosticCode[] | null;
|
|
178
171
|
}
|
|
172
|
+
declare type ValidateHandler = (scope: Scope, files: BscFile[], callables: CallableContainerMap) => void;
|
|
179
173
|
export declare type CompilerPluginFactory = () => CompilerPlugin;
|
|
180
174
|
export interface CompilerPlugin {
|
|
181
175
|
name: string;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
*/
|
|
193
|
-
beforePrepareProgram?: PluginHandler<BeforePrepareProgramEvent>;
|
|
194
|
-
/**
|
|
195
|
-
* Called when the program gets prepared for building
|
|
196
|
-
*/
|
|
197
|
-
prepareProgram?: PluginHandler<PrepareProgramEvent>;
|
|
198
|
-
/**
|
|
199
|
-
* Called after the program gets prepared for building
|
|
200
|
-
*/
|
|
201
|
-
afterPrepareProgram?: PluginHandler<AfterPrepareProgramEvent>;
|
|
202
|
-
/**
|
|
203
|
-
* Called before the entire program is validated
|
|
204
|
-
*/
|
|
205
|
-
beforeProgramValidate?: PluginHandler<BeforeProgramValidateEvent>;
|
|
206
|
-
/**
|
|
207
|
-
* Called before the entire program is validated
|
|
208
|
-
*/
|
|
209
|
-
onProgramValidate?: PluginHandler<OnProgramValidateEvent>;
|
|
210
|
-
/**
|
|
211
|
-
* Called after the program has been validated
|
|
212
|
-
*/
|
|
213
|
-
afterProgramValidate?: PluginHandler<AfterProgramValidateEvent>;
|
|
214
|
-
/**
|
|
215
|
-
* Called right before the program is disposed/destroyed
|
|
216
|
-
*/
|
|
176
|
+
beforeProgramCreate?: (builder: ProgramBuilder) => void;
|
|
177
|
+
beforePrepublish?: (builder: ProgramBuilder, files: FileObj[]) => void;
|
|
178
|
+
afterPrepublish?: (builder: ProgramBuilder, files: FileObj[]) => void;
|
|
179
|
+
beforePublish?: (builder: ProgramBuilder, files: FileObj[]) => void;
|
|
180
|
+
afterPublish?: (builder: ProgramBuilder, files: FileObj[]) => void;
|
|
181
|
+
afterProgramCreate?: (program: Program) => void;
|
|
182
|
+
beforeProgramValidate?: (program: Program) => void;
|
|
183
|
+
afterProgramValidate?: (program: Program) => void;
|
|
184
|
+
beforeProgramTranspile?: (program: Program, entries: TranspileObj[], editor: AstEditor) => void;
|
|
185
|
+
afterProgramTranspile?: (program: Program, entries: TranspileObj[], editor: AstEditor) => void;
|
|
217
186
|
beforeProgramDispose?: PluginHandler<BeforeProgramDisposeEvent>;
|
|
187
|
+
onGetCodeActions?: PluginHandler<OnGetCodeActionsEvent>;
|
|
218
188
|
/**
|
|
219
189
|
* Emitted before the program starts collecting completions
|
|
220
190
|
*/
|
|
@@ -240,165 +210,108 @@ export interface CompilerPlugin {
|
|
|
240
210
|
*/
|
|
241
211
|
afterProvideHover?: PluginHandler<AfterProvideHoverEvent>;
|
|
242
212
|
/**
|
|
243
|
-
* Called
|
|
244
|
-
*/
|
|
245
|
-
afterScopeCreate?: PluginHandler<AfterScopeCreateEvent>;
|
|
246
|
-
beforeScopeDispose?: PluginHandler<BeforeScopeDisposeEvent>;
|
|
247
|
-
onScopeDispose?: PluginHandler<OnScopeDisposeEvent>;
|
|
248
|
-
afterScopeDispose?: PluginHandler<AfterScopeDisposeEvent>;
|
|
249
|
-
beforeScopeValidate?: PluginHandler<BeforeScopeValidateEvent>;
|
|
250
|
-
onScopeValidate?: PluginHandler<OnScopeValidateEvent>;
|
|
251
|
-
afterScopeValidate?: PluginHandler<BeforeScopeValidateEvent>;
|
|
252
|
-
onGetCodeActions?: PluginHandler<OnGetCodeActionsEvent>;
|
|
253
|
-
onGetSemanticTokens?: PluginHandler<OnGetSemanticTokensEvent>;
|
|
254
|
-
/**
|
|
255
|
-
* Called before plugins are asked to provide files to the program. (excludes virtual files produced by `provideFile` events).
|
|
256
|
-
* Call the `setFileData()` method to override the file contents.
|
|
257
|
-
*/
|
|
258
|
-
beforeProvideFile?: PluginHandler<BeforeProvideFileEvent>;
|
|
259
|
-
/**
|
|
260
|
-
* Give plugins the opportunity to handle processing a file. (excludes virtual files produced by `provideFile` events)
|
|
261
|
-
*/
|
|
262
|
-
provideFile?: PluginHandler<ProvideFileEvent>;
|
|
263
|
-
/**
|
|
264
|
-
* Called after a file was added to the program. (excludes virtual files produced by `provideFile` events)
|
|
265
|
-
*/
|
|
266
|
-
afterProvideFile?: PluginHandler<AfterProvideFileEvent>;
|
|
267
|
-
/**
|
|
268
|
-
* Called before a file is added to the program.
|
|
269
|
-
* Includes physical files as well as any virtual files produced by `provideFile` events
|
|
270
|
-
*/
|
|
271
|
-
beforeFileAdd?: PluginHandler<BeforeFileAddEvent>;
|
|
272
|
-
/**
|
|
273
|
-
* Called after a file has been added to the program.
|
|
274
|
-
* Includes physical files as well as any virtual files produced by `provideFile` events
|
|
275
|
-
*/
|
|
276
|
-
afterFileAdd?: PluginHandler<AfterFileAddEvent>;
|
|
277
|
-
/**
|
|
278
|
-
* Called before a file is removed from the program. This includes physical and virtual files
|
|
279
|
-
*/
|
|
280
|
-
beforeFileRemove?: PluginHandler<BeforeFileRemoveEvent>;
|
|
281
|
-
/**
|
|
282
|
-
* Called after a file has been removed from the program. This includes physical and virtual files
|
|
283
|
-
*/
|
|
284
|
-
afterFileRemove?: PluginHandler<AfterFileRemoveEvent>;
|
|
285
|
-
/**
|
|
286
|
-
* Called before each file is validated
|
|
287
|
-
*/
|
|
288
|
-
beforeFileValidate?: PluginHandler<BeforeFileValidateEvent>;
|
|
289
|
-
/**
|
|
290
|
-
* Called during the file validation process. If your plugin contributes file validations, this is a good place to contribute them.
|
|
291
|
-
*/
|
|
292
|
-
onFileValidate?: PluginHandler<OnFileValidateEvent>;
|
|
293
|
-
/**
|
|
294
|
-
* Called after each file is validated
|
|
213
|
+
* Called before the `provideDefinition` hook
|
|
295
214
|
*/
|
|
296
|
-
|
|
215
|
+
beforeProvideDefinition?(event: BeforeProvideDefinitionEvent): any;
|
|
297
216
|
/**
|
|
298
|
-
*
|
|
217
|
+
* Provide one or more `Location`s where the symbol at the given position was originally defined
|
|
218
|
+
* @param event
|
|
299
219
|
*/
|
|
300
|
-
|
|
220
|
+
provideDefinition?(event: ProvideDefinitionEvent): any;
|
|
301
221
|
/**
|
|
302
|
-
* Called
|
|
222
|
+
* Called after `provideDefinition`. Use this if you want to intercept or sanitize the definition data provided by bsc or other plugins
|
|
223
|
+
* @param event
|
|
303
224
|
*/
|
|
304
|
-
|
|
225
|
+
afterProvideDefinition?(event: AfterProvideDefinitionEvent): any;
|
|
305
226
|
/**
|
|
306
|
-
*
|
|
227
|
+
* Called before the `provideReferences` hook
|
|
307
228
|
*/
|
|
308
|
-
|
|
229
|
+
beforeProvideReferences?(event: BeforeProvideReferencesEvent): any;
|
|
309
230
|
/**
|
|
310
|
-
*
|
|
231
|
+
* Provide all of the `Location`s where the symbol at the given position is located
|
|
232
|
+
* @param event
|
|
311
233
|
*/
|
|
312
|
-
|
|
234
|
+
provideReferences?(event: ProvideReferencesEvent): any;
|
|
313
235
|
/**
|
|
314
|
-
*
|
|
236
|
+
* Called after `provideReferences`. Use this if you want to intercept or sanitize the references data provided by bsc or other plugins
|
|
237
|
+
* @param event
|
|
315
238
|
*/
|
|
316
|
-
|
|
239
|
+
afterProvideReferences?(event: AfterProvideReferencesEvent): any;
|
|
317
240
|
/**
|
|
318
|
-
*
|
|
241
|
+
* Called before the `provideDocumentSymbols` hook
|
|
319
242
|
*/
|
|
320
|
-
|
|
243
|
+
beforeProvideDocumentSymbols?(event: BeforeProvideDocumentSymbolsEvent): any;
|
|
321
244
|
/**
|
|
322
|
-
*
|
|
245
|
+
* Provide all of the `DocumentSymbol`s for the given file
|
|
246
|
+
* @param event
|
|
323
247
|
*/
|
|
324
|
-
|
|
248
|
+
provideDocumentSymbols?(event: ProvideDocumentSymbolsEvent): any;
|
|
325
249
|
/**
|
|
326
|
-
*
|
|
250
|
+
* Called after `provideDocumentSymbols`. Use this if you want to intercept or sanitize the document symbols data provided by bsc or other plugins
|
|
251
|
+
* @param event
|
|
327
252
|
*/
|
|
328
|
-
|
|
253
|
+
afterProvideDocumentSymbols?(event: AfterProvideDocumentSymbolsEvent): any;
|
|
329
254
|
/**
|
|
330
|
-
*
|
|
255
|
+
* Called before the `provideWorkspaceSymbols` hook
|
|
331
256
|
*/
|
|
332
|
-
|
|
257
|
+
beforeProvideWorkspaceSymbols?(event: BeforeProvideWorkspaceSymbolsEvent): any;
|
|
333
258
|
/**
|
|
334
|
-
*
|
|
259
|
+
* Provide all of the workspace symbols for the entire project
|
|
260
|
+
* @param event
|
|
335
261
|
*/
|
|
336
|
-
|
|
262
|
+
provideWorkspaceSymbols?(event: ProvideWorkspaceSymbolsEvent): any;
|
|
337
263
|
/**
|
|
338
|
-
*
|
|
264
|
+
* Called after `provideWorkspaceSymbols`. Use this if you want to intercept or sanitize the workspace symbols data provided by bsc or other plugins
|
|
265
|
+
* @param event
|
|
339
266
|
*/
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
267
|
+
afterProvideWorkspaceSymbols?(event: AfterProvideWorkspaceSymbolsEvent): any;
|
|
268
|
+
onGetSemanticTokens?: PluginHandler<OnGetSemanticTokensEvent>;
|
|
269
|
+
afterScopeCreate?: (scope: Scope) => void;
|
|
270
|
+
beforeScopeDispose?: (scope: Scope) => void;
|
|
271
|
+
afterScopeDispose?: (scope: Scope) => void;
|
|
272
|
+
beforeScopeValidate?: ValidateHandler;
|
|
273
|
+
onScopeValidate?: PluginHandler<OnScopeValidateEvent>;
|
|
274
|
+
afterScopeValidate?: ValidateHandler;
|
|
275
|
+
beforeFileParse?: (source: SourceObj) => void;
|
|
276
|
+
afterFileParse?: (file: BscFile) => void;
|
|
349
277
|
/**
|
|
350
|
-
*
|
|
278
|
+
* Called before each file is validated
|
|
351
279
|
*/
|
|
352
|
-
|
|
280
|
+
beforeFileValidate?: PluginHandler<BeforeFileValidateEvent>;
|
|
353
281
|
/**
|
|
354
|
-
* Called
|
|
355
|
-
* When a plugin has handled a file, it should be pushed to the `handledFiles` set so future plugins don't write the file multiple times
|
|
282
|
+
* Called during the file validation process. If your plugin contributes file validations, this is a good place to contribute them.
|
|
356
283
|
*/
|
|
357
|
-
|
|
284
|
+
onFileValidate?: PluginHandler<OnFileValidateEvent>;
|
|
358
285
|
/**
|
|
359
|
-
*
|
|
286
|
+
* Called after each file is validated
|
|
360
287
|
*/
|
|
361
|
-
|
|
288
|
+
afterFileValidate?: (file: BscFile) => void;
|
|
289
|
+
beforeFileTranspile?: PluginHandler<BeforeFileTranspileEvent>;
|
|
290
|
+
afterFileTranspile?: PluginHandler<AfterFileTranspileEvent>;
|
|
291
|
+
beforeFileDispose?: (file: BscFile) => void;
|
|
292
|
+
afterFileDispose?: (file: BscFile) => void;
|
|
362
293
|
}
|
|
363
294
|
export declare type PluginHandler<T, R = void> = (event: T) => R;
|
|
364
|
-
export interface OnGetCodeActionsEvent
|
|
295
|
+
export interface OnGetCodeActionsEvent {
|
|
365
296
|
program: Program;
|
|
366
|
-
file:
|
|
297
|
+
file: BscFile;
|
|
367
298
|
range: Range;
|
|
368
299
|
scopes: Scope[];
|
|
369
300
|
diagnostics: BsDiagnostic[];
|
|
370
301
|
codeActions: CodeAction[];
|
|
371
302
|
}
|
|
372
|
-
export interface
|
|
373
|
-
builder: ProgramBuilder;
|
|
374
|
-
}
|
|
375
|
-
export interface AfterProgramCreateEvent {
|
|
376
|
-
builder: ProgramBuilder;
|
|
377
|
-
program: Program;
|
|
378
|
-
}
|
|
379
|
-
export interface BeforeProgramValidateEvent {
|
|
380
|
-
program: Program;
|
|
381
|
-
}
|
|
382
|
-
export declare type OnProgramValidateEvent = BeforeProgramValidateEvent;
|
|
383
|
-
export declare type AfterProgramValidateEvent = BeforeProgramValidateEvent;
|
|
384
|
-
export interface ProvideCompletionsEvent<TFile extends File = File> {
|
|
303
|
+
export interface ProvideCompletionsEvent<TFile extends BscFile = BscFile> {
|
|
385
304
|
program: Program;
|
|
386
305
|
file: TFile;
|
|
387
306
|
scopes: Scope[];
|
|
388
307
|
position: Position;
|
|
389
308
|
completions: CompletionItem[];
|
|
390
309
|
}
|
|
391
|
-
export declare type BeforeProvideCompletionsEvent<TFile extends
|
|
392
|
-
export declare type AfterProvideCompletionsEvent<TFile extends
|
|
393
|
-
export interface BeforeBuildProgramEvent {
|
|
394
|
-
program: Program;
|
|
395
|
-
files: File[];
|
|
396
|
-
editor: Editor;
|
|
397
|
-
}
|
|
398
|
-
export declare type AfterBuildProgramEvent = BeforeBuildProgramEvent;
|
|
310
|
+
export declare type BeforeProvideCompletionsEvent<TFile extends BscFile = BscFile> = ProvideCompletionsEvent<TFile>;
|
|
311
|
+
export declare type AfterProvideCompletionsEvent<TFile extends BscFile = BscFile> = ProvideCompletionsEvent<TFile>;
|
|
399
312
|
export interface ProvideHoverEvent {
|
|
400
313
|
program: Program;
|
|
401
|
-
file:
|
|
314
|
+
file: BscFile;
|
|
402
315
|
position: Position;
|
|
403
316
|
scopes: Scope[];
|
|
404
317
|
hovers: Hover[];
|
|
@@ -420,42 +333,63 @@ export interface Hover {
|
|
|
420
333
|
}
|
|
421
334
|
export declare type BeforeProvideHoverEvent = ProvideHoverEvent;
|
|
422
335
|
export declare type AfterProvideHoverEvent = ProvideHoverEvent;
|
|
423
|
-
export interface
|
|
424
|
-
program: Program;
|
|
425
|
-
scope: Scope;
|
|
426
|
-
}
|
|
427
|
-
export interface BeforeScopeDisposeEvent {
|
|
428
|
-
program: Program;
|
|
429
|
-
scope: Scope;
|
|
430
|
-
}
|
|
431
|
-
export interface OnScopeDisposeEvent {
|
|
432
|
-
program: Program;
|
|
433
|
-
scope: Scope;
|
|
434
|
-
}
|
|
435
|
-
export interface AfterScopeDisposeEvent {
|
|
436
|
-
program: Program;
|
|
437
|
-
scope: Scope;
|
|
438
|
-
}
|
|
439
|
-
export interface BeforeScopeValidateEvent {
|
|
336
|
+
export interface ProvideDefinitionEvent<TFile = BscFile> {
|
|
440
337
|
program: Program;
|
|
441
|
-
|
|
338
|
+
/**
|
|
339
|
+
* The file that the getDefinition request was invoked in
|
|
340
|
+
*/
|
|
341
|
+
file: TFile;
|
|
342
|
+
/**
|
|
343
|
+
* The position in the text document where the getDefinition request was invoked
|
|
344
|
+
*/
|
|
345
|
+
position: Position;
|
|
346
|
+
/**
|
|
347
|
+
* The list of locations for where the item at the file and position was defined
|
|
348
|
+
*/
|
|
349
|
+
definitions: Location[];
|
|
442
350
|
}
|
|
443
|
-
export declare type
|
|
444
|
-
export
|
|
351
|
+
export declare type BeforeProvideDefinitionEvent<TFile = BscFile> = ProvideDefinitionEvent<TFile>;
|
|
352
|
+
export declare type AfterProvideDefinitionEvent<TFile = BscFile> = ProvideDefinitionEvent<TFile>;
|
|
353
|
+
export interface ProvideReferencesEvent<TFile = BscFile> {
|
|
445
354
|
program: Program;
|
|
446
|
-
|
|
447
|
-
|
|
355
|
+
/**
|
|
356
|
+
* The file that the getDefinition request was invoked in
|
|
357
|
+
*/
|
|
358
|
+
file: TFile;
|
|
359
|
+
/**
|
|
360
|
+
* The position in the text document where the getDefinition request was invoked
|
|
361
|
+
*/
|
|
362
|
+
position: Position;
|
|
363
|
+
/**
|
|
364
|
+
* The list of locations for where the item at the file and position was defined
|
|
365
|
+
*/
|
|
366
|
+
references: Location[];
|
|
448
367
|
}
|
|
449
|
-
export
|
|
368
|
+
export declare type BeforeProvideReferencesEvent<TFile = BscFile> = ProvideReferencesEvent<TFile>;
|
|
369
|
+
export declare type AfterProvideReferencesEvent<TFile = BscFile> = ProvideReferencesEvent<TFile>;
|
|
370
|
+
export interface ProvideDocumentSymbolsEvent<TFile = BscFile> {
|
|
450
371
|
program: Program;
|
|
451
|
-
|
|
452
|
-
|
|
372
|
+
/**
|
|
373
|
+
* The file that the `documentSymbol` request was invoked in
|
|
374
|
+
*/
|
|
375
|
+
file: TFile;
|
|
376
|
+
/**
|
|
377
|
+
* The result list of symbols
|
|
378
|
+
*/
|
|
379
|
+
documentSymbols: DocumentSymbol[];
|
|
453
380
|
}
|
|
454
|
-
export
|
|
381
|
+
export declare type BeforeProvideDocumentSymbolsEvent<TFile = BscFile> = ProvideDocumentSymbolsEvent<TFile>;
|
|
382
|
+
export declare type AfterProvideDocumentSymbolsEvent<TFile = BscFile> = ProvideDocumentSymbolsEvent<TFile>;
|
|
383
|
+
export interface ProvideWorkspaceSymbolsEvent {
|
|
455
384
|
program: Program;
|
|
456
|
-
|
|
385
|
+
/**
|
|
386
|
+
* The result list of symbols
|
|
387
|
+
*/
|
|
388
|
+
workspaceSymbols: WorkspaceSymbol[];
|
|
457
389
|
}
|
|
458
|
-
export
|
|
390
|
+
export declare type BeforeProvideWorkspaceSymbolsEvent = ProvideWorkspaceSymbolsEvent;
|
|
391
|
+
export declare type AfterProvideWorkspaceSymbolsEvent = ProvideWorkspaceSymbolsEvent;
|
|
392
|
+
export interface OnGetSemanticTokensEvent<T extends BscFile = BscFile> {
|
|
459
393
|
/**
|
|
460
394
|
* The program this file is from
|
|
461
395
|
*/
|
|
@@ -473,32 +407,31 @@ export interface OnGetSemanticTokensEvent<T extends File = File> {
|
|
|
473
407
|
*/
|
|
474
408
|
semanticTokens: SemanticToken[];
|
|
475
409
|
}
|
|
476
|
-
export
|
|
477
|
-
export interface OnFileValidateEvent<T extends File = File> {
|
|
410
|
+
export interface BeforeFileValidateEvent<T extends BscFile = BscFile> {
|
|
478
411
|
program: Program;
|
|
479
412
|
file: T;
|
|
480
413
|
}
|
|
481
|
-
export
|
|
482
|
-
export interface OnFileValidateEvent<T extends File = File> {
|
|
414
|
+
export interface OnFileValidateEvent<T extends BscFile = BscFile> {
|
|
483
415
|
program: Program;
|
|
484
416
|
file: T;
|
|
485
417
|
}
|
|
486
|
-
export interface TranspileEntry {
|
|
487
|
-
file: File;
|
|
488
|
-
outputPath: string;
|
|
489
|
-
}
|
|
490
|
-
export interface ScopeValidationOptions {
|
|
491
|
-
changedFiles?: File[];
|
|
492
|
-
changedSymbols?: Map<SymbolTypeFlag, Set<string>>;
|
|
493
|
-
force?: boolean;
|
|
494
|
-
}
|
|
495
418
|
export interface OnScopeValidateEvent {
|
|
496
419
|
program: Program;
|
|
497
420
|
scope: Scope;
|
|
498
|
-
changedFiles?: File[];
|
|
499
|
-
changedSymbols?: Map<SymbolTypeFlag, Set<string>>;
|
|
500
421
|
}
|
|
501
|
-
export
|
|
422
|
+
export declare type Editor = Pick<AstEditor, 'addToArray' | 'hasChanges' | 'removeFromArray' | 'setArrayValue' | 'setProperty' | 'overrideTranspileResult' | 'arrayPop' | 'arrayPush' | 'arrayShift' | 'arraySplice' | 'arrayUnshift' | 'removeProperty' | 'edit'>;
|
|
423
|
+
export interface BeforeFileTranspileEvent<TFile extends BscFile = BscFile> {
|
|
424
|
+
program: Program;
|
|
425
|
+
file: TFile;
|
|
426
|
+
outputPath: string;
|
|
427
|
+
/**
|
|
428
|
+
* An editor that can be used to transform properties or arrays. Once the `afterFileTranspile` event has fired, these changes will be reverted,
|
|
429
|
+
* restoring the objects to their prior state. This is useful for changing code right before a file gets transpiled, but when you don't want
|
|
430
|
+
* the changes to persist in the in-memory file.
|
|
431
|
+
*/
|
|
432
|
+
editor: Editor;
|
|
433
|
+
}
|
|
434
|
+
export interface AfterFileTranspileEvent<TFile extends BscFile = BscFile> {
|
|
502
435
|
/**
|
|
503
436
|
* The program this event was triggered for
|
|
504
437
|
*/
|
|
@@ -512,147 +445,18 @@ export interface AfterFileTranspileEvent<TFile extends File = File> {
|
|
|
512
445
|
/**
|
|
513
446
|
* The sourceMaps for the generated code (if emitting source maps is enabled)
|
|
514
447
|
*/
|
|
515
|
-
map?:
|
|
448
|
+
map?: SourceMapGenerator;
|
|
516
449
|
/**
|
|
517
450
|
* The generated type definition file contents (if emitting type definitions are enabled)
|
|
518
451
|
*/
|
|
519
452
|
typedef?: string;
|
|
520
|
-
}
|
|
521
|
-
export declare type BeforeProvideFileEvent<TFile extends File = File> = ProvideFileEvent<TFile>;
|
|
522
|
-
export interface ProvideFileEvent<TFile extends File = File> {
|
|
523
|
-
/**
|
|
524
|
-
* The lower-case file extension for the srcPath. (i.e. ".brs", ".xml")
|
|
525
|
-
*/
|
|
526
|
-
srcExtension: string;
|
|
527
|
-
/**
|
|
528
|
-
* The srcPath for the file. (i.e. `/user/bob/projects/VideoApp/source/main.bs`)
|
|
529
|
-
*/
|
|
530
|
-
srcPath: string;
|
|
531
|
-
/**
|
|
532
|
-
* The destPath for the file. (i.e. for `/user/bob/projects/VideoApp/source/main.bs`, destPath would be `source/main.bs`)
|
|
533
|
-
*/
|
|
534
|
-
destPath: string;
|
|
535
|
-
/**
|
|
536
|
-
* A lazy-loading container for this file's data. Call `.get()` to lazy load the data, and `.set()` to override file contents
|
|
537
|
-
*/
|
|
538
|
-
data: LazyFileData;
|
|
539
|
-
/**
|
|
540
|
-
* An array of files that should be added to the program as a result of this event
|
|
541
|
-
*/
|
|
542
|
-
files: TFile[];
|
|
543
|
-
/**
|
|
544
|
-
* The program for this event
|
|
545
|
-
*/
|
|
546
|
-
program: Program;
|
|
547
453
|
/**
|
|
548
|
-
*
|
|
549
|
-
*
|
|
550
|
-
*
|
|
454
|
+
* An editor that can be used to transform properties or arrays. Once the `afterFileTranspile` event has fired, these changes will be reverted,
|
|
455
|
+
* restoring the objects to their prior state. This is useful for changing code right before a file gets transpiled, but when you don't want
|
|
456
|
+
* the changes to persist in the in-memory file.
|
|
551
457
|
*/
|
|
552
|
-
fileFactory: FileFactory;
|
|
553
|
-
}
|
|
554
|
-
export declare type AfterProvideFileEvent<TFile extends File = File> = ProvideFileEvent<TFile>;
|
|
555
|
-
export interface BeforeFileAddEvent<TFile extends File = File> {
|
|
556
|
-
file: TFile;
|
|
557
|
-
program: Program;
|
|
558
|
-
}
|
|
559
|
-
export declare type AfterFileAddEvent<TFile extends File = File> = BeforeFileAddEvent<TFile>;
|
|
560
|
-
export interface BeforeFileRemoveEvent<TFile extends File = File> {
|
|
561
|
-
file: TFile;
|
|
562
|
-
program: Program;
|
|
563
|
-
}
|
|
564
|
-
export declare type AfterFileRemoveEvent<TFile extends File = File> = BeforeFileRemoveEvent<TFile>;
|
|
565
|
-
export declare type BeforePrepareProgramEvent = PrepareProgramEvent;
|
|
566
|
-
/**
|
|
567
|
-
* Event for when the program prepares itself for building
|
|
568
|
-
*/
|
|
569
|
-
export interface PrepareProgramEvent {
|
|
570
|
-
program: Program;
|
|
571
|
-
editor: Editor;
|
|
572
|
-
}
|
|
573
|
-
export declare type AfterPrepareProgramEvent = PrepareProgramEvent;
|
|
574
|
-
export declare type BeforePrepareFileEvent<TFile extends File = File> = PrepareFileEvent<TFile>;
|
|
575
|
-
/**
|
|
576
|
-
* Prepare the file for building
|
|
577
|
-
*/
|
|
578
|
-
export interface PrepareFileEvent<TFile extends File = File> {
|
|
579
|
-
program: Program;
|
|
580
|
-
file: TFile;
|
|
581
458
|
editor: Editor;
|
|
582
459
|
}
|
|
583
|
-
export declare type OnPrepareFileEvent<TFile extends File = File> = PrepareFileEvent<TFile>;
|
|
584
|
-
export declare type AfterPrepareFileEvent<TFile extends File = File> = PrepareFileEvent<TFile>;
|
|
585
|
-
/**
|
|
586
|
-
* A container that holds the code, map, and typedef for serialized code files.
|
|
587
|
-
*/
|
|
588
|
-
export interface SerializedCodeFile {
|
|
589
|
-
code?: string;
|
|
590
|
-
map?: string;
|
|
591
|
-
typedef?: string;
|
|
592
|
-
}
|
|
593
|
-
export interface BeforeSerializeProgramEvent {
|
|
594
|
-
program: Program;
|
|
595
|
-
files: File[];
|
|
596
|
-
result: Map<File, SerializedFile[]>;
|
|
597
|
-
}
|
|
598
|
-
export declare type OnSerializeProgramEvent = BeforeSerializeProgramEvent;
|
|
599
|
-
export declare type AfterSerializeProgramEvent = BeforeSerializeProgramEvent;
|
|
600
|
-
/**
|
|
601
|
-
* During the `SerializeFile` events, this is how plugins will contribute file data for a specific file
|
|
602
|
-
*/
|
|
603
|
-
export interface SerializedFile {
|
|
604
|
-
/**
|
|
605
|
-
* The raw data for this file (i.e. a binary buffer for a .jpeg file, or the transpiled code for a .bs file)
|
|
606
|
-
*/
|
|
607
|
-
data: Buffer;
|
|
608
|
-
/**
|
|
609
|
-
* The pkgPath for this chunk of data.
|
|
610
|
-
*/
|
|
611
|
-
pkgPath: string;
|
|
612
|
-
}
|
|
613
|
-
export declare type BeforeSerializeFileEvent<TFile extends File = File> = SerializeFileEvent<TFile>;
|
|
614
|
-
export interface SerializeFileEvent<TFile extends File = File> {
|
|
615
|
-
program: Program;
|
|
616
|
-
file: TFile;
|
|
617
|
-
/**
|
|
618
|
-
* The list of all files created across all the `SerializeFile` events.
|
|
619
|
-
* The key is the pkgPath of the file, and the
|
|
620
|
-
*/
|
|
621
|
-
result: Map<TFile, SerializedFile[]>;
|
|
622
|
-
}
|
|
623
|
-
export declare type AfterSerializeFileEvent<TFile extends File = File> = SerializeFileEvent<TFile>;
|
|
624
|
-
export interface BeforeWriteProgramEvent {
|
|
625
|
-
program: Program;
|
|
626
|
-
stagingDir: string;
|
|
627
|
-
files: Map<File, SerializedFile[]>;
|
|
628
|
-
}
|
|
629
|
-
export declare type AfterWriteProgramEvent = BeforeWriteProgramEvent;
|
|
630
|
-
export declare type BeforeWriteFileEvent = WriteFileEvent;
|
|
631
|
-
export interface WriteFileEvent {
|
|
632
|
-
program: Program;
|
|
633
|
-
file: SerializedFile;
|
|
634
|
-
/**
|
|
635
|
-
* The full path to where the file was (or will be) written to.
|
|
636
|
-
*/
|
|
637
|
-
outputPath: string;
|
|
638
|
-
/**
|
|
639
|
-
* A set of all files that have been properly written. Plugins should add any handled files to this list so future plugins don't write then again
|
|
640
|
-
*/
|
|
641
|
-
processedFiles: Set<SerializedFile>;
|
|
642
|
-
}
|
|
643
|
-
export declare type AfterWriteFileEvent = BeforeWriteFileEvent;
|
|
644
|
-
export interface TranspileObj {
|
|
645
|
-
file: File;
|
|
646
|
-
/**
|
|
647
|
-
* The absolute path to where the file should be written during build. (i.e. somewhere inside the stagingDir)
|
|
648
|
-
*/
|
|
649
|
-
outputPath: string;
|
|
650
|
-
}
|
|
651
|
-
export interface BeforeFileDisposeEvent {
|
|
652
|
-
program: Program;
|
|
653
|
-
file: File;
|
|
654
|
-
}
|
|
655
|
-
export declare type AfterFileDisposeEvent = BeforeFileDisposeEvent;
|
|
656
460
|
export interface BeforeProgramDisposeEvent {
|
|
657
461
|
program: Program;
|
|
658
462
|
}
|
|
@@ -665,10 +469,16 @@ export interface SemanticToken {
|
|
|
665
469
|
tokenModifiers?: SemanticTokenModifiers[];
|
|
666
470
|
}
|
|
667
471
|
export interface TypedefProvider {
|
|
668
|
-
getTypedef(state: TranspileState):
|
|
472
|
+
getTypedef(state: TranspileState): TranspileResult;
|
|
669
473
|
}
|
|
670
|
-
export declare type TranspileResult = Array<(string | SourceNode)>;
|
|
671
|
-
|
|
474
|
+
export declare type TranspileResult = Array<(string | SourceNode | TranspileResult)>;
|
|
475
|
+
/**
|
|
476
|
+
* This is the type that the SourceNode class is declared as taking in its constructor.
|
|
477
|
+
* The actual type that SourceNode accepts is the more permissive TranspileResult, but
|
|
478
|
+
* we need to use this declared type for some type casts.
|
|
479
|
+
*/
|
|
480
|
+
export declare type FlattenedTranspileResult = Array<string | SourceNode>;
|
|
481
|
+
export declare type FileResolver = (srcPath: string) => string | undefined | Thenable<string | undefined> | void;
|
|
672
482
|
export interface ExpressionInfo {
|
|
673
483
|
expressions: Expression[];
|
|
674
484
|
varExpressions: Expression[];
|
|
@@ -679,64 +489,4 @@ export interface FileLink<T> {
|
|
|
679
489
|
item: T;
|
|
680
490
|
file: BrsFile;
|
|
681
491
|
}
|
|
682
|
-
export
|
|
683
|
-
definingNode?: AstNode;
|
|
684
|
-
description?: string;
|
|
685
|
-
completionPriority?: number;
|
|
686
|
-
flags?: SymbolTypeFlag;
|
|
687
|
-
}
|
|
688
|
-
export interface GetTypeOptions {
|
|
689
|
-
flags: SymbolTypeFlag;
|
|
690
|
-
typeChain?: TypeChainEntry[];
|
|
691
|
-
data?: ExtraSymbolData;
|
|
692
|
-
ignoreCall?: boolean;
|
|
693
|
-
onlyCacheResolvedTypes?: boolean;
|
|
694
|
-
}
|
|
695
|
-
export declare class TypeChainEntry {
|
|
696
|
-
name: string;
|
|
697
|
-
type: BscType;
|
|
698
|
-
flags: SymbolTypeFlag;
|
|
699
|
-
range: Range;
|
|
700
|
-
separatorToken: Token;
|
|
701
|
-
constructor(name: string, type: BscType, flags: SymbolTypeFlag, range: Range, separatorToken?: Token);
|
|
702
|
-
get isResolved(): boolean;
|
|
703
|
-
}
|
|
704
|
-
export interface TypeChainProcessResult {
|
|
705
|
-
itemName: string;
|
|
706
|
-
itemParentTypeName: string;
|
|
707
|
-
fullNameOfItem: string;
|
|
708
|
-
fullChainName: string;
|
|
709
|
-
range: Range;
|
|
710
|
-
containsDynamic: boolean;
|
|
711
|
-
}
|
|
712
|
-
export interface TypeCompatibilityData {
|
|
713
|
-
missingFields?: {
|
|
714
|
-
name: string;
|
|
715
|
-
expectedType: BscType;
|
|
716
|
-
}[];
|
|
717
|
-
fieldMismatches?: {
|
|
718
|
-
name: string;
|
|
719
|
-
expectedType: BscType;
|
|
720
|
-
actualType: BscType;
|
|
721
|
-
}[];
|
|
722
|
-
depth?: number;
|
|
723
|
-
}
|
|
724
|
-
export interface NamespaceContainer {
|
|
725
|
-
file: File;
|
|
726
|
-
fullName: string;
|
|
727
|
-
fullNameLower: string;
|
|
728
|
-
parentNameLower: string;
|
|
729
|
-
nameParts: Identifier[];
|
|
730
|
-
nameRange: Range;
|
|
731
|
-
lastPartName: string;
|
|
732
|
-
lastPartNameLower: string;
|
|
733
|
-
functionStatements: Map<string, FunctionStatement>;
|
|
734
|
-
isTopLevel: boolean;
|
|
735
|
-
namespaceStatements?: NamespaceStatement[];
|
|
736
|
-
statements?: Statement[];
|
|
737
|
-
classStatements?: Map<string, ClassStatement>;
|
|
738
|
-
enumStatements?: Map<string, EnumStatement>;
|
|
739
|
-
constStatements?: Map<string, ConstStatement>;
|
|
740
|
-
namespaces?: Map<string, NamespaceContainer>;
|
|
741
|
-
symbolTable: SymbolTable;
|
|
742
|
-
}
|
|
492
|
+
export {};
|