@wrtnlabs/evidence 0.0.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/LICENSE +21 -0
- package/README.md +516 -0
- package/lib/EvidenceChecker.d.ts +85 -0
- package/lib/EvidenceChecker.js +109 -0
- package/lib/adapters/bigquery/BigQueryColumnType.d.ts +14 -0
- package/lib/adapters/bigquery/BigQueryColumnType.js +34 -0
- package/lib/adapters/bigquery/BigQueryFileScanner.d.ts +97 -0
- package/lib/adapters/bigquery/BigQueryFileScanner.js +375 -0
- package/lib/adapters/bigquery/BigQueryIdentifier.d.ts +37 -0
- package/lib/adapters/bigquery/BigQueryIdentifier.js +88 -0
- package/lib/adapters/bigquery/BigQueryString.d.ts +14 -0
- package/lib/adapters/bigquery/BigQueryString.js +82 -0
- package/lib/adapters/bigquery/BigQueryWithdrawals.d.ts +14 -0
- package/lib/adapters/bigquery/BigQueryWithdrawals.js +70 -0
- package/lib/adapters/bigquery/EvidenceBigQueryAdapter.d.ts +17 -0
- package/lib/adapters/bigquery/EvidenceBigQueryAdapter.js +27 -0
- package/lib/adapters/c/CAdapter.d.ts +48 -0
- package/lib/adapters/c/CAdapter.js +677 -0
- package/lib/adapters/c/CDeclarationForm.d.ts +8 -0
- package/lib/adapters/c/CDeclarationForm.js +2 -0
- package/lib/adapters/c/CDeclaratorKind.d.ts +8 -0
- package/lib/adapters/c/CDeclaratorKind.js +2 -0
- package/lib/adapters/c/CDocumentation.d.ts +12 -0
- package/lib/adapters/c/CDocumentation.js +35 -0
- package/lib/adapters/c/CFileScanner.d.ts +64 -0
- package/lib/adapters/c/CFileScanner.js +505 -0
- package/lib/adapters/c/CSyntax.d.ts +24 -0
- package/lib/adapters/c/CSyntax.js +164 -0
- package/lib/adapters/c/EvidenceCAdapter.d.ts +15 -0
- package/lib/adapters/c/EvidenceCAdapter.js +19 -0
- package/lib/adapters/c/ICDeclaration.d.ts +74 -0
- package/lib/adapters/c/ICDeclaration.js +2 -0
- package/lib/adapters/c/ICDeclarationAddress.d.ts +28 -0
- package/lib/adapters/c/ICDeclarationAddress.js +2 -0
- package/lib/adapters/c/ICDeclarationGroup.d.ts +23 -0
- package/lib/adapters/c/ICDeclarationGroup.js +2 -0
- package/lib/adapters/c/ICDeclaratorShape.d.ts +30 -0
- package/lib/adapters/c/ICDeclaratorShape.js +2 -0
- package/lib/adapters/c/ICDocumentation.d.ts +36 -0
- package/lib/adapters/c/ICDocumentation.js +2 -0
- package/lib/adapters/c/ICDocumentationAttachment.d.ts +21 -0
- package/lib/adapters/c/ICDocumentationAttachment.js +2 -0
- package/lib/adapters/c/ICFileAnalysis.d.ts +44 -0
- package/lib/adapters/c/ICFileAnalysis.js +2 -0
- package/lib/adapters/c/ICTypeContext.d.ts +21 -0
- package/lib/adapters/c/ICTypeContext.js +2 -0
- package/lib/adapters/cpp/CppAccess.d.ts +7 -0
- package/lib/adapters/cpp/CppAccess.js +2 -0
- package/lib/adapters/cpp/CppAdapter.d.ts +50 -0
- package/lib/adapters/cpp/CppAdapter.js +707 -0
- package/lib/adapters/cpp/CppAliasKind.d.ts +7 -0
- package/lib/adapters/cpp/CppAliasKind.js +2 -0
- package/lib/adapters/cpp/CppDeclarationForm.d.ts +7 -0
- package/lib/adapters/cpp/CppDeclarationForm.js +2 -0
- package/lib/adapters/cpp/CppDeclaratorKind.d.ts +7 -0
- package/lib/adapters/cpp/CppDeclaratorKind.js +2 -0
- package/lib/adapters/cpp/CppDocumentation.d.ts +12 -0
- package/lib/adapters/cpp/CppDocumentation.js +35 -0
- package/lib/adapters/cpp/CppFileScanner.d.ts +79 -0
- package/lib/adapters/cpp/CppFileScanner.js +792 -0
- package/lib/adapters/cpp/CppScopeKind.d.ts +7 -0
- package/lib/adapters/cpp/CppScopeKind.js +2 -0
- package/lib/adapters/cpp/CppSyntax.d.ts +31 -0
- package/lib/adapters/cpp/CppSyntax.js +342 -0
- package/lib/adapters/cpp/CppVisibility.d.ts +7 -0
- package/lib/adapters/cpp/CppVisibility.js +2 -0
- package/lib/adapters/cpp/EvidenceCppAdapter.d.ts +16 -0
- package/lib/adapters/cpp/EvidenceCppAdapter.js +20 -0
- package/lib/adapters/cpp/ICppAlias.d.ts +44 -0
- package/lib/adapters/cpp/ICppAlias.js +2 -0
- package/lib/adapters/cpp/ICppDeclaration.d.ts +55 -0
- package/lib/adapters/cpp/ICppDeclaration.js +2 -0
- package/lib/adapters/cpp/ICppDeclarationGroup.d.ts +25 -0
- package/lib/adapters/cpp/ICppDeclarationGroup.js +2 -0
- package/lib/adapters/cpp/ICppDeclaratorShape.d.ts +42 -0
- package/lib/adapters/cpp/ICppDeclaratorShape.js +2 -0
- package/lib/adapters/cpp/ICppDocumentation.d.ts +30 -0
- package/lib/adapters/cpp/ICppDocumentation.js +2 -0
- package/lib/adapters/cpp/ICppDocumentationAttachment.d.ts +16 -0
- package/lib/adapters/cpp/ICppDocumentationAttachment.js +2 -0
- package/lib/adapters/cpp/ICppFileAnalysis.d.ts +41 -0
- package/lib/adapters/cpp/ICppFileAnalysis.js +2 -0
- package/lib/adapters/cpp/ICppQualifiedName.d.ts +16 -0
- package/lib/adapters/cpp/ICppQualifiedName.js +2 -0
- package/lib/adapters/cpp/ICppResolvedAlias.d.ts +24 -0
- package/lib/adapters/cpp/ICppResolvedAlias.js +2 -0
- package/lib/adapters/cpp/ICppScopeContext.d.ts +37 -0
- package/lib/adapters/cpp/ICppScopeContext.js +2 -0
- package/lib/adapters/csharp/CSharpAccessibility.d.ts +7 -0
- package/lib/adapters/csharp/CSharpAccessibility.js +2 -0
- package/lib/adapters/csharp/CSharpAdapter.d.ts +47 -0
- package/lib/adapters/csharp/CSharpAdapter.js +687 -0
- package/lib/adapters/csharp/CSharpDeclarationForm.d.ts +7 -0
- package/lib/adapters/csharp/CSharpDeclarationForm.js +2 -0
- package/lib/adapters/csharp/CSharpDocumentation.d.ts +12 -0
- package/lib/adapters/csharp/CSharpDocumentation.js +35 -0
- package/lib/adapters/csharp/CSharpFileScanner.d.ts +54 -0
- package/lib/adapters/csharp/CSharpFileScanner.js +403 -0
- package/lib/adapters/csharp/CSharpSyntax.d.ts +23 -0
- package/lib/adapters/csharp/CSharpSyntax.js +174 -0
- package/lib/adapters/csharp/CSharpTypeKind.d.ts +7 -0
- package/lib/adapters/csharp/CSharpTypeKind.js +2 -0
- package/lib/adapters/csharp/EvidenceCSharpAdapter.d.ts +15 -0
- package/lib/adapters/csharp/EvidenceCSharpAdapter.js +19 -0
- package/lib/adapters/csharp/ICSharpDeclaration.d.ts +63 -0
- package/lib/adapters/csharp/ICSharpDeclaration.js +2 -0
- package/lib/adapters/csharp/ICSharpDeclarationAddress.d.ts +22 -0
- package/lib/adapters/csharp/ICSharpDeclarationAddress.js +2 -0
- package/lib/adapters/csharp/ICSharpDeclarationGroup.d.ts +19 -0
- package/lib/adapters/csharp/ICSharpDeclarationGroup.js +2 -0
- package/lib/adapters/csharp/ICSharpDocumentation.d.ts +43 -0
- package/lib/adapters/csharp/ICSharpDocumentation.js +2 -0
- package/lib/adapters/csharp/ICSharpDocumentationAttachment.d.ts +25 -0
- package/lib/adapters/csharp/ICSharpDocumentationAttachment.js +2 -0
- package/lib/adapters/csharp/ICSharpFileAnalysis.d.ts +51 -0
- package/lib/adapters/csharp/ICSharpFileAnalysis.js +2 -0
- package/lib/adapters/csharp/ICSharpTypeContext.d.ts +41 -0
- package/lib/adapters/csharp/ICSharpTypeContext.js +2 -0
- package/lib/adapters/dart/DartAdapter.d.ts +96 -0
- package/lib/adapters/dart/DartAdapter.js +616 -0
- package/lib/adapters/dart/DartDocumentation.d.ts +16 -0
- package/lib/adapters/dart/DartDocumentation.js +73 -0
- package/lib/adapters/dart/DartFileScanner.d.ts +112 -0
- package/lib/adapters/dart/DartFileScanner.js +415 -0
- package/lib/adapters/dart/DartLibraries.d.ts +24 -0
- package/lib/adapters/dart/DartLibraries.js +228 -0
- package/lib/adapters/dart/EvidenceDartAdapter.d.ts +15 -0
- package/lib/adapters/dart/EvidenceDartAdapter.js +19 -0
- package/lib/adapters/dart/IDartDeclaration.d.ts +69 -0
- package/lib/adapters/dart/IDartDeclaration.js +2 -0
- package/lib/adapters/dart/IDartDirective.d.ts +53 -0
- package/lib/adapters/dart/IDartDirective.js +2 -0
- package/lib/adapters/dart/IDartDocumentation.d.ts +31 -0
- package/lib/adapters/dart/IDartDocumentation.js +2 -0
- package/lib/adapters/dart/IDartDocumentationAttachment.d.ts +23 -0
- package/lib/adapters/dart/IDartDocumentationAttachment.js +2 -0
- package/lib/adapters/dart/IDartExportFilter.d.ts +22 -0
- package/lib/adapters/dart/IDartExportFilter.js +2 -0
- package/lib/adapters/dart/IDartFileAnalysis.d.ts +55 -0
- package/lib/adapters/dart/IDartFileAnalysis.js +2 -0
- package/lib/adapters/dbml/DbmlDocumentation.d.ts +15 -0
- package/lib/adapters/dbml/DbmlDocumentation.js +49 -0
- package/lib/adapters/dbml/DbmlFileScanner.d.ts +114 -0
- package/lib/adapters/dbml/DbmlFileScanner.js +364 -0
- package/lib/adapters/dbml/EvidenceDbmlAdapter.d.ts +88 -0
- package/lib/adapters/dbml/EvidenceDbmlAdapter.js +674 -0
- package/lib/adapters/dbml/IDbmlDeclaration.d.ts +38 -0
- package/lib/adapters/dbml/IDbmlDeclaration.js +2 -0
- package/lib/adapters/dbml/IDbmlDocumentation.d.ts +34 -0
- package/lib/adapters/dbml/IDbmlDocumentation.js +2 -0
- package/lib/adapters/dbml/IDbmlEndpoint.d.ts +20 -0
- package/lib/adapters/dbml/IDbmlEndpoint.js +2 -0
- package/lib/adapters/dbml/IDbmlEnum.d.ts +27 -0
- package/lib/adapters/dbml/IDbmlEnum.js +2 -0
- package/lib/adapters/dbml/IDbmlFileAnalysis.d.ts +56 -0
- package/lib/adapters/dbml/IDbmlFileAnalysis.js +2 -0
- package/lib/adapters/dbml/IDbmlRelation.d.ts +56 -0
- package/lib/adapters/dbml/IDbmlRelation.js +2 -0
- package/lib/adapters/ecmascript/EcmaScriptAdapter.d.ts +71 -0
- package/lib/adapters/ecmascript/EcmaScriptAdapter.js +516 -0
- package/lib/adapters/ecmascript/EcmaScriptExportKind.d.ts +7 -0
- package/lib/adapters/ecmascript/EcmaScriptExportKind.js +2 -0
- package/lib/adapters/ecmascript/EcmaScriptExportResolver.d.ts +175 -0
- package/lib/adapters/ecmascript/EcmaScriptExportResolver.js +510 -0
- package/lib/adapters/ecmascript/EcmaScriptFileScanner.d.ts +84 -0
- package/lib/adapters/ecmascript/EcmaScriptFileScanner.js +946 -0
- package/lib/adapters/ecmascript/EcmaScriptModuleMode.d.ts +7 -0
- package/lib/adapters/ecmascript/EcmaScriptModuleMode.js +2 -0
- package/lib/adapters/ecmascript/EcmaScriptModuleResolver.d.ts +70 -0
- package/lib/adapters/ecmascript/EcmaScriptModuleResolver.js +211 -0
- package/lib/adapters/ecmascript/EcmaScriptSyntax.d.ts +24 -0
- package/lib/adapters/ecmascript/EcmaScriptSyntax.js +263 -0
- package/lib/adapters/ecmascript/EcmaScriptType.d.ts +7 -0
- package/lib/adapters/ecmascript/EcmaScriptType.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptBinding.d.ts +29 -0
- package/lib/adapters/ecmascript/IEcmaScriptBinding.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptComment.d.ts +39 -0
- package/lib/adapters/ecmascript/IEcmaScriptComment.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptCommentAttachment.d.ts +24 -0
- package/lib/adapters/ecmascript/IEcmaScriptCommentAttachment.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptExport.d.ts +51 -0
- package/lib/adapters/ecmascript/IEcmaScriptExport.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptFileAnalysis.d.ts +56 -0
- package/lib/adapters/ecmascript/IEcmaScriptFileAnalysis.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptHostPosition.d.ts +25 -0
- package/lib/adapters/ecmascript/IEcmaScriptHostPosition.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptImport.d.ts +44 -0
- package/lib/adapters/ecmascript/IEcmaScriptImport.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptModule.d.ts +55 -0
- package/lib/adapters/ecmascript/IEcmaScriptModule.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptModuleResolution.d.ts +40 -0
- package/lib/adapters/ecmascript/IEcmaScriptModuleResolution.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptOwnedUnit.d.ts +45 -0
- package/lib/adapters/ecmascript/IEcmaScriptOwnedUnit.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptResolution.d.ts +31 -0
- package/lib/adapters/ecmascript/IEcmaScriptResolution.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptStatementContext.d.ts +58 -0
- package/lib/adapters/ecmascript/IEcmaScriptStatementContext.js +2 -0
- package/lib/adapters/ecmascript/IJavaScriptPackageJson.d.ts +16 -0
- package/lib/adapters/ecmascript/IJavaScriptPackageJson.js +2 -0
- package/lib/adapters/go/EvidenceGoAdapter.d.ts +15 -0
- package/lib/adapters/go/EvidenceGoAdapter.js +19 -0
- package/lib/adapters/go/GoAdapter.d.ts +43 -0
- package/lib/adapters/go/GoAdapter.js +509 -0
- package/lib/adapters/go/GoDeclarationForm.d.ts +7 -0
- package/lib/adapters/go/GoDeclarationForm.js +2 -0
- package/lib/adapters/go/GoFileScanner.d.ts +57 -0
- package/lib/adapters/go/GoFileScanner.js +288 -0
- package/lib/adapters/go/GoPackageResolver.d.ts +147 -0
- package/lib/adapters/go/GoPackageResolver.js +306 -0
- package/lib/adapters/go/GoSyntax.d.ts +17 -0
- package/lib/adapters/go/GoSyntax.js +107 -0
- package/lib/adapters/go/IGoDeclaration.d.ts +53 -0
- package/lib/adapters/go/IGoDeclaration.js +2 -0
- package/lib/adapters/go/IGoDocumentation.d.ts +35 -0
- package/lib/adapters/go/IGoDocumentation.js +2 -0
- package/lib/adapters/go/IGoDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/go/IGoDocumentationAttachment.js +2 -0
- package/lib/adapters/go/IGoFileAnalysis.d.ts +60 -0
- package/lib/adapters/go/IGoFileAnalysis.js +2 -0
- package/lib/adapters/go/IGoMaterializedDeclaration.d.ts +28 -0
- package/lib/adapters/go/IGoMaterializedDeclaration.js +2 -0
- package/lib/adapters/java/EvidenceJavaAdapter.d.ts +15 -0
- package/lib/adapters/java/EvidenceJavaAdapter.js +19 -0
- package/lib/adapters/java/IJavaDeclaration.d.ts +65 -0
- package/lib/adapters/java/IJavaDeclaration.js +2 -0
- package/lib/adapters/java/IJavaDocumentation.d.ts +35 -0
- package/lib/adapters/java/IJavaDocumentation.js +2 -0
- package/lib/adapters/java/IJavaDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/java/IJavaDocumentationAttachment.js +2 -0
- package/lib/adapters/java/IJavaFileAnalysis.d.ts +42 -0
- package/lib/adapters/java/IJavaFileAnalysis.js +2 -0
- package/lib/adapters/java/IJavaTypeContext.d.ts +39 -0
- package/lib/adapters/java/IJavaTypeContext.js +2 -0
- package/lib/adapters/java/JavaAdapter.d.ts +45 -0
- package/lib/adapters/java/JavaAdapter.js +572 -0
- package/lib/adapters/java/JavaDeclarationForm.d.ts +7 -0
- package/lib/adapters/java/JavaDeclarationForm.js +2 -0
- package/lib/adapters/java/JavaDocumentation.d.ts +12 -0
- package/lib/adapters/java/JavaDocumentation.js +52 -0
- package/lib/adapters/java/JavaFileScanner.d.ts +51 -0
- package/lib/adapters/java/JavaFileScanner.js +317 -0
- package/lib/adapters/java/JavaSyntax.d.ts +18 -0
- package/lib/adapters/java/JavaSyntax.js +100 -0
- package/lib/adapters/java/JavaTypeKind.d.ts +7 -0
- package/lib/adapters/java/JavaTypeKind.js +2 -0
- package/lib/adapters/javascript/EvidenceJavaScriptAdapter.d.ts +26 -0
- package/lib/adapters/javascript/EvidenceJavaScriptAdapter.js +32 -0
- package/lib/adapters/kotlin/EvidenceKotlinAdapter.d.ts +15 -0
- package/lib/adapters/kotlin/EvidenceKotlinAdapter.js +19 -0
- package/lib/adapters/kotlin/IKotlinDeclaration.d.ts +77 -0
- package/lib/adapters/kotlin/IKotlinDeclaration.js +2 -0
- package/lib/adapters/kotlin/IKotlinDocumentation.d.ts +31 -0
- package/lib/adapters/kotlin/IKotlinDocumentation.js +2 -0
- package/lib/adapters/kotlin/IKotlinDocumentationAttachment.d.ts +23 -0
- package/lib/adapters/kotlin/IKotlinDocumentationAttachment.js +2 -0
- package/lib/adapters/kotlin/IKotlinFileAnalysis.d.ts +39 -0
- package/lib/adapters/kotlin/IKotlinFileAnalysis.js +2 -0
- package/lib/adapters/kotlin/IKotlinResolvedType.d.ts +23 -0
- package/lib/adapters/kotlin/IKotlinResolvedType.js +2 -0
- package/lib/adapters/kotlin/IKotlinTypeReference.d.ts +44 -0
- package/lib/adapters/kotlin/IKotlinTypeReference.js +2 -0
- package/lib/adapters/kotlin/KotlinAdapter.d.ts +114 -0
- package/lib/adapters/kotlin/KotlinAdapter.js +649 -0
- package/lib/adapters/kotlin/KotlinDocumentation.d.ts +18 -0
- package/lib/adapters/kotlin/KotlinDocumentation.js +80 -0
- package/lib/adapters/kotlin/KotlinFileScanner.d.ts +153 -0
- package/lib/adapters/kotlin/KotlinFileScanner.js +508 -0
- package/lib/adapters/kotlin/KotlinReceivers.d.ts +16 -0
- package/lib/adapters/kotlin/KotlinReceivers.js +104 -0
- package/lib/adapters/lua/EvidenceLuaAdapter.d.ts +16 -0
- package/lib/adapters/lua/EvidenceLuaAdapter.js +20 -0
- package/lib/adapters/lua/ILuaDeclaration.d.ts +54 -0
- package/lib/adapters/lua/ILuaDeclaration.js +2 -0
- package/lib/adapters/lua/ILuaDocumentation.d.ts +31 -0
- package/lib/adapters/lua/ILuaDocumentation.js +2 -0
- package/lib/adapters/lua/ILuaDocumentationAttachment.d.ts +23 -0
- package/lib/adapters/lua/ILuaDocumentationAttachment.js +2 -0
- package/lib/adapters/lua/ILuaFileAnalysis.d.ts +39 -0
- package/lib/adapters/lua/ILuaFileAnalysis.js +2 -0
- package/lib/adapters/lua/ILuaValue.d.ts +39 -0
- package/lib/adapters/lua/ILuaValue.js +2 -0
- package/lib/adapters/lua/LuaAdapter.d.ts +114 -0
- package/lib/adapters/lua/LuaAdapter.js +647 -0
- package/lib/adapters/lua/LuaDocumentation.d.ts +19 -0
- package/lib/adapters/lua/LuaDocumentation.js +79 -0
- package/lib/adapters/lua/LuaFileScanner.d.ts +167 -0
- package/lib/adapters/lua/LuaFileScanner.js +585 -0
- package/lib/adapters/markdown/EvidenceMarkdownAdapter.d.ts +28 -0
- package/lib/adapters/markdown/EvidenceMarkdownAdapter.js +296 -0
- package/lib/adapters/markdown/EvidenceMarkdownRenderedEdge.d.ts +7 -0
- package/lib/adapters/markdown/EvidenceMarkdownRenderedEdge.js +2 -0
- package/lib/adapters/markdown/IMarkdownComment.d.ts +31 -0
- package/lib/adapters/markdown/IMarkdownComment.js +2 -0
- package/lib/adapters/markdown/IMarkdownFence.d.ts +25 -0
- package/lib/adapters/markdown/IMarkdownFence.js +2 -0
- package/lib/adapters/markdown/IMarkdownHeading.d.ts +25 -0
- package/lib/adapters/markdown/IMarkdownHeading.js +2 -0
- package/lib/adapters/markdown/MarkdownScanner.d.ts +102 -0
- package/lib/adapters/markdown/MarkdownScanner.js +471 -0
- package/lib/adapters/markdown/MarkdownSyntax.d.ts +34 -0
- package/lib/adapters/markdown/MarkdownSyntax.js +234 -0
- package/lib/adapters/markdown/MarkdownTarget.d.ts +17 -0
- package/lib/adapters/markdown/MarkdownTarget.js +38 -0
- package/lib/adapters/matlab/EvidenceMatlabAdapter.d.ts +15 -0
- package/lib/adapters/matlab/EvidenceMatlabAdapter.js +19 -0
- package/lib/adapters/matlab/IMatlabDeclaration.d.ts +103 -0
- package/lib/adapters/matlab/IMatlabDeclaration.js +2 -0
- package/lib/adapters/matlab/IMatlabDocumentation.d.ts +35 -0
- package/lib/adapters/matlab/IMatlabDocumentation.js +2 -0
- package/lib/adapters/matlab/IMatlabDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/matlab/IMatlabDocumentationAttachment.js +2 -0
- package/lib/adapters/matlab/IMatlabFileAnalysis.d.ts +43 -0
- package/lib/adapters/matlab/IMatlabFileAnalysis.js +2 -0
- package/lib/adapters/matlab/MatlabAdapter.d.ts +104 -0
- package/lib/adapters/matlab/MatlabAdapter.js +625 -0
- package/lib/adapters/matlab/MatlabDocumentation.d.ts +18 -0
- package/lib/adapters/matlab/MatlabDocumentation.js +78 -0
- package/lib/adapters/matlab/MatlabFileScanner.d.ts +118 -0
- package/lib/adapters/matlab/MatlabFileScanner.js +454 -0
- package/lib/adapters/matlab/MatlabOwnership.d.ts +17 -0
- package/lib/adapters/matlab/MatlabOwnership.js +139 -0
- package/lib/adapters/mysql/EvidenceMysqlAdapter.d.ts +16 -0
- package/lib/adapters/mysql/EvidenceMysqlAdapter.js +23 -0
- package/lib/adapters/mysql/MysqlDocumentation.d.ts +15 -0
- package/lib/adapters/mysql/MysqlDocumentation.js +40 -0
- package/lib/adapters/mysql/MysqlFileScanner.d.ts +16 -0
- package/lib/adapters/mysql/MysqlFileScanner.js +78 -0
- package/lib/adapters/mysql/MysqlIdentifier.d.ts +13 -0
- package/lib/adapters/mysql/MysqlIdentifier.js +30 -0
- package/lib/adapters/mysql/MysqlPolicy.d.ts +39 -0
- package/lib/adapters/mysql/MysqlPolicy.js +173 -0
- package/lib/adapters/objc/EvidenceObjcAdapter.d.ts +15 -0
- package/lib/adapters/objc/EvidenceObjcAdapter.js +19 -0
- package/lib/adapters/objc/IObjcDeclaration.d.ts +79 -0
- package/lib/adapters/objc/IObjcDeclaration.js +2 -0
- package/lib/adapters/objc/IObjcDocumentation.d.ts +35 -0
- package/lib/adapters/objc/IObjcDocumentation.js +2 -0
- package/lib/adapters/objc/IObjcDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/objc/IObjcDocumentationAttachment.js +2 -0
- package/lib/adapters/objc/IObjcFileAnalysis.d.ts +43 -0
- package/lib/adapters/objc/IObjcFileAnalysis.js +2 -0
- package/lib/adapters/objc/ObjcAdapter.d.ts +100 -0
- package/lib/adapters/objc/ObjcAdapter.js +646 -0
- package/lib/adapters/objc/ObjcDeclarationForm.d.ts +7 -0
- package/lib/adapters/objc/ObjcDeclarationForm.js +2 -0
- package/lib/adapters/objc/ObjcDocumentation.d.ts +8 -0
- package/lib/adapters/objc/ObjcDocumentation.js +11 -0
- package/lib/adapters/objc/ObjcFileScanner.d.ts +123 -0
- package/lib/adapters/objc/ObjcFileScanner.js +461 -0
- package/lib/adapters/php/EvidencePhpAdapter.d.ts +15 -0
- package/lib/adapters/php/EvidencePhpAdapter.js +19 -0
- package/lib/adapters/php/IPhpDeclaration.d.ts +64 -0
- package/lib/adapters/php/IPhpDeclaration.js +2 -0
- package/lib/adapters/php/IPhpDocumentation.d.ts +35 -0
- package/lib/adapters/php/IPhpDocumentation.js +2 -0
- package/lib/adapters/php/IPhpDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/php/IPhpDocumentationAttachment.js +2 -0
- package/lib/adapters/php/IPhpFileAnalysis.d.ts +48 -0
- package/lib/adapters/php/IPhpFileAnalysis.js +2 -0
- package/lib/adapters/php/PhpAdapter.d.ts +108 -0
- package/lib/adapters/php/PhpAdapter.js +670 -0
- package/lib/adapters/php/PhpDocumentation.d.ts +18 -0
- package/lib/adapters/php/PhpDocumentation.js +80 -0
- package/lib/adapters/php/PhpFileScanner.d.ts +79 -0
- package/lib/adapters/php/PhpFileScanner.js +346 -0
- package/lib/adapters/postgresql/EvidencePostgresqlAdapter.d.ts +26 -0
- package/lib/adapters/postgresql/EvidencePostgresqlAdapter.js +41 -0
- package/lib/adapters/postgresql/IPostgresqlFileAnalysis.d.ts +16 -0
- package/lib/adapters/postgresql/IPostgresqlFileAnalysis.js +2 -0
- package/lib/adapters/postgresql/IPostgresqlReference.d.ts +26 -0
- package/lib/adapters/postgresql/IPostgresqlReference.js +2 -0
- package/lib/adapters/postgresql/PostgresqlFileScanner.d.ts +103 -0
- package/lib/adapters/postgresql/PostgresqlFileScanner.js +431 -0
- package/lib/adapters/postgresql/PostgresqlFingerprint.d.ts +14 -0
- package/lib/adapters/postgresql/PostgresqlFingerprint.js +29 -0
- package/lib/adapters/postgresql/PostgresqlIdentity.d.ts +20 -0
- package/lib/adapters/postgresql/PostgresqlIdentity.js +41 -0
- package/lib/adapters/postgresql/PostgresqlOwnership.d.ts +14 -0
- package/lib/adapters/postgresql/PostgresqlOwnership.js +668 -0
- package/lib/adapters/prisma/EvidencePrismaAdapter.d.ts +57 -0
- package/lib/adapters/prisma/EvidencePrismaAdapter.js +603 -0
- package/lib/adapters/prisma/IPrismaBlockHead.d.ts +21 -0
- package/lib/adapters/prisma/IPrismaBlockHead.js +2 -0
- package/lib/adapters/prisma/IPrismaCacheEntry.d.ts +22 -0
- package/lib/adapters/prisma/IPrismaCacheEntry.js +2 -0
- package/lib/adapters/prisma/IPrismaCommentRun.d.ts +51 -0
- package/lib/adapters/prisma/IPrismaCommentRun.js +2 -0
- package/lib/adapters/prisma/IPrismaDatamodel.d.ts +15 -0
- package/lib/adapters/prisma/IPrismaDatamodel.js +2 -0
- package/lib/adapters/prisma/IPrismaDatamodelField.d.ts +26 -0
- package/lib/adapters/prisma/IPrismaDatamodelField.js +2 -0
- package/lib/adapters/prisma/IPrismaDatamodelModel.d.ts +29 -0
- package/lib/adapters/prisma/IPrismaDatamodelModel.js +2 -0
- package/lib/adapters/prisma/IPrismaField.d.ts +36 -0
- package/lib/adapters/prisma/IPrismaField.js +2 -0
- package/lib/adapters/prisma/IPrismaFileAnalysis.d.ts +31 -0
- package/lib/adapters/prisma/IPrismaFileAnalysis.js +2 -0
- package/lib/adapters/prisma/IPrismaLineParts.d.ts +26 -0
- package/lib/adapters/prisma/IPrismaLineParts.js +2 -0
- package/lib/adapters/prisma/IPrismaLoadResult.d.ts +22 -0
- package/lib/adapters/prisma/IPrismaLoadResult.js +2 -0
- package/lib/adapters/prisma/IPrismaLocatedDeclaration.d.ts +20 -0
- package/lib/adapters/prisma/IPrismaLocatedDeclaration.js +2 -0
- package/lib/adapters/prisma/IPrismaLocation.d.ts +22 -0
- package/lib/adapters/prisma/IPrismaLocation.js +2 -0
- package/lib/adapters/prisma/IPrismaModel.d.ts +36 -0
- package/lib/adapters/prisma/IPrismaModel.js +2 -0
- package/lib/adapters/prisma/IPrismaOwnedUnit.d.ts +37 -0
- package/lib/adapters/prisma/IPrismaOwnedUnit.js +2 -0
- package/lib/adapters/prisma/IPrismaParser.d.ts +28 -0
- package/lib/adapters/prisma/IPrismaParser.js +2 -0
- package/lib/adapters/prisma/IPrismaPendingComment.d.ts +52 -0
- package/lib/adapters/prisma/IPrismaPendingComment.js +2 -0
- package/lib/adapters/prisma/IPrismaSchemaFile.d.ts +22 -0
- package/lib/adapters/prisma/IPrismaSchemaFile.js +2 -0
- package/lib/adapters/prisma/ITrimmedMapping.d.ts +23 -0
- package/lib/adapters/prisma/ITrimmedMapping.js +2 -0
- package/lib/adapters/prisma/PrismaCommentForm.d.ts +7 -0
- package/lib/adapters/prisma/PrismaCommentForm.js +2 -0
- package/lib/adapters/prisma/PrismaFileScanner.d.ts +70 -0
- package/lib/adapters/prisma/PrismaFileScanner.js +361 -0
- package/lib/adapters/prisma/PrismaModelLoader.d.ts +12 -0
- package/lib/adapters/prisma/PrismaModelLoader.js +268 -0
- package/lib/adapters/prisma/PrismaSyntax.d.ts +9 -0
- package/lib/adapters/prisma/PrismaSyntax.js +27 -0
- package/lib/adapters/prisma/PrismaTarget.d.ts +10 -0
- package/lib/adapters/prisma/PrismaTarget.js +23 -0
- package/lib/adapters/python/EvidencePythonAdapter.d.ts +15 -0
- package/lib/adapters/python/EvidencePythonAdapter.js +19 -0
- package/lib/adapters/python/IPythonAll.d.ts +24 -0
- package/lib/adapters/python/IPythonAll.js +2 -0
- package/lib/adapters/python/IPythonBinding.d.ts +52 -0
- package/lib/adapters/python/IPythonBinding.js +2 -0
- package/lib/adapters/python/IPythonClassContext.d.ts +36 -0
- package/lib/adapters/python/IPythonClassContext.js +2 -0
- package/lib/adapters/python/IPythonDocumentation.d.ts +47 -0
- package/lib/adapters/python/IPythonDocumentation.js +2 -0
- package/lib/adapters/python/IPythonDocumentationAttachment.d.ts +31 -0
- package/lib/adapters/python/IPythonDocumentationAttachment.js +2 -0
- package/lib/adapters/python/IPythonFileAnalysis.d.ts +63 -0
- package/lib/adapters/python/IPythonFileAnalysis.js +2 -0
- package/lib/adapters/python/IPythonHostPosition.d.ts +33 -0
- package/lib/adapters/python/IPythonHostPosition.js +2 -0
- package/lib/adapters/python/IPythonModule.d.ts +42 -0
- package/lib/adapters/python/IPythonModule.js +2 -0
- package/lib/adapters/python/IPythonOwnedUnit.d.ts +30 -0
- package/lib/adapters/python/IPythonOwnedUnit.js +2 -0
- package/lib/adapters/python/IPythonResolution.d.ts +21 -0
- package/lib/adapters/python/IPythonResolution.js +2 -0
- package/lib/adapters/python/IPythonResolvedBinding.d.ts +20 -0
- package/lib/adapters/python/IPythonResolvedBinding.js +2 -0
- package/lib/adapters/python/PythonAdapter.d.ts +43 -0
- package/lib/adapters/python/PythonAdapter.js +488 -0
- package/lib/adapters/python/PythonAllState.d.ts +7 -0
- package/lib/adapters/python/PythonAllState.js +2 -0
- package/lib/adapters/python/PythonBindingKind.d.ts +7 -0
- package/lib/adapters/python/PythonBindingKind.js +2 -0
- package/lib/adapters/python/PythonExportResolver.d.ts +146 -0
- package/lib/adapters/python/PythonExportResolver.js +408 -0
- package/lib/adapters/python/PythonFileScanner.d.ts +367 -0
- package/lib/adapters/python/PythonFileScanner.js +1019 -0
- package/lib/adapters/python/PythonResolutionMode.d.ts +7 -0
- package/lib/adapters/python/PythonResolutionMode.js +2 -0
- package/lib/adapters/python/PythonSyntax.d.ts +115 -0
- package/lib/adapters/python/PythonSyntax.js +298 -0
- package/lib/adapters/ruby/EvidenceRubyAdapter.d.ts +15 -0
- package/lib/adapters/ruby/EvidenceRubyAdapter.js +19 -0
- package/lib/adapters/ruby/IRubyConstantPath.d.ts +20 -0
- package/lib/adapters/ruby/IRubyConstantPath.js +2 -0
- package/lib/adapters/ruby/IRubyDeclaration.d.ts +105 -0
- package/lib/adapters/ruby/IRubyDeclaration.js +2 -0
- package/lib/adapters/ruby/IRubyDocumentation.d.ts +42 -0
- package/lib/adapters/ruby/IRubyDocumentation.js +2 -0
- package/lib/adapters/ruby/IRubyDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/ruby/IRubyDocumentationAttachment.js +2 -0
- package/lib/adapters/ruby/IRubyFileAnalysis.d.ts +42 -0
- package/lib/adapters/ruby/IRubyFileAnalysis.js +2 -0
- package/lib/adapters/ruby/IRubyScopeContext.d.ts +48 -0
- package/lib/adapters/ruby/IRubyScopeContext.js +2 -0
- package/lib/adapters/ruby/RubyAdapter.d.ts +50 -0
- package/lib/adapters/ruby/RubyAdapter.js +724 -0
- package/lib/adapters/ruby/RubyAttributeMode.d.ts +7 -0
- package/lib/adapters/ruby/RubyAttributeMode.js +2 -0
- package/lib/adapters/ruby/RubyContainerKind.d.ts +7 -0
- package/lib/adapters/ruby/RubyContainerKind.js +2 -0
- package/lib/adapters/ruby/RubyDeclarationForm.d.ts +7 -0
- package/lib/adapters/ruby/RubyDeclarationForm.js +2 -0
- package/lib/adapters/ruby/RubyFileScanner.d.ts +332 -0
- package/lib/adapters/ruby/RubyFileScanner.js +990 -0
- package/lib/adapters/ruby/RubyMethodSide.d.ts +7 -0
- package/lib/adapters/ruby/RubyMethodSide.js +2 -0
- package/lib/adapters/ruby/RubyScopeKind.d.ts +7 -0
- package/lib/adapters/ruby/RubyScopeKind.js +2 -0
- package/lib/adapters/ruby/RubySyntax.d.ts +81 -0
- package/lib/adapters/ruby/RubySyntax.js +202 -0
- package/lib/adapters/ruby/RubyVisibility.d.ts +7 -0
- package/lib/adapters/ruby/RubyVisibility.js +2 -0
- package/lib/adapters/rust/EvidenceRustAdapter.d.ts +15 -0
- package/lib/adapters/rust/EvidenceRustAdapter.js +19 -0
- package/lib/adapters/rust/IRustDeclaration.d.ts +72 -0
- package/lib/adapters/rust/IRustDeclaration.js +2 -0
- package/lib/adapters/rust/IRustDocumentation.d.ts +41 -0
- package/lib/adapters/rust/IRustDocumentation.js +2 -0
- package/lib/adapters/rust/IRustDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/rust/IRustDocumentationAttachment.js +2 -0
- package/lib/adapters/rust/IRustExportRecord.d.ts +28 -0
- package/lib/adapters/rust/IRustExportRecord.js +2 -0
- package/lib/adapters/rust/IRustExternalModule.d.ts +32 -0
- package/lib/adapters/rust/IRustExternalModule.js +2 -0
- package/lib/adapters/rust/IRustFileAnalysis.d.ts +66 -0
- package/lib/adapters/rust/IRustFileAnalysis.js +2 -0
- package/lib/adapters/rust/IRustFilePlacement.d.ts +35 -0
- package/lib/adapters/rust/IRustFilePlacement.js +2 -0
- package/lib/adapters/rust/IRustImplementation.d.ts +38 -0
- package/lib/adapters/rust/IRustImplementation.js +2 -0
- package/lib/adapters/rust/IRustLocatedDeclaration.d.ts +35 -0
- package/lib/adapters/rust/IRustLocatedDeclaration.js +2 -0
- package/lib/adapters/rust/IRustModuleRecord.d.ts +62 -0
- package/lib/adapters/rust/IRustModuleRecord.js +2 -0
- package/lib/adapters/rust/IRustPublicOccurrence.d.ts +35 -0
- package/lib/adapters/rust/IRustPublicOccurrence.js +2 -0
- package/lib/adapters/rust/IRustResolvedMember.d.ts +34 -0
- package/lib/adapters/rust/IRustResolvedMember.js +2 -0
- package/lib/adapters/rust/IRustUse.d.ts +33 -0
- package/lib/adapters/rust/IRustUse.js +2 -0
- package/lib/adapters/rust/IRustUseBinding.d.ts +26 -0
- package/lib/adapters/rust/IRustUseBinding.js +2 -0
- package/lib/adapters/rust/RustAdapter.d.ts +43 -0
- package/lib/adapters/rust/RustAdapter.js +503 -0
- package/lib/adapters/rust/RustDeclarationForm.d.ts +7 -0
- package/lib/adapters/rust/RustDeclarationForm.js +2 -0
- package/lib/adapters/rust/RustFileScanner.d.ts +61 -0
- package/lib/adapters/rust/RustFileScanner.js +550 -0
- package/lib/adapters/rust/RustModuleResolver.d.ts +70 -0
- package/lib/adapters/rust/RustModuleResolver.js +716 -0
- package/lib/adapters/rust/RustSyntax.d.ts +93 -0
- package/lib/adapters/rust/RustSyntax.js +244 -0
- package/lib/adapters/rust/RustVisibility.d.ts +7 -0
- package/lib/adapters/rust/RustVisibility.js +2 -0
- package/lib/adapters/scala/EvidenceScalaAdapter.d.ts +15 -0
- package/lib/adapters/scala/EvidenceScalaAdapter.js +19 -0
- package/lib/adapters/scala/IScalaDeclaration.d.ts +78 -0
- package/lib/adapters/scala/IScalaDeclaration.js +2 -0
- package/lib/adapters/scala/IScalaDocumentation.d.ts +35 -0
- package/lib/adapters/scala/IScalaDocumentation.js +2 -0
- package/lib/adapters/scala/IScalaDocumentationAttachment.d.ts +22 -0
- package/lib/adapters/scala/IScalaDocumentationAttachment.js +2 -0
- package/lib/adapters/scala/IScalaExport.d.ts +29 -0
- package/lib/adapters/scala/IScalaExport.js +2 -0
- package/lib/adapters/scala/IScalaFileAnalysis.d.ts +50 -0
- package/lib/adapters/scala/IScalaFileAnalysis.js +2 -0
- package/lib/adapters/scala/ScalaAdapter.d.ts +100 -0
- package/lib/adapters/scala/ScalaAdapter.js +638 -0
- package/lib/adapters/scala/ScalaDocumentation.d.ts +16 -0
- package/lib/adapters/scala/ScalaDocumentation.js +77 -0
- package/lib/adapters/scala/ScalaExports.d.ts +16 -0
- package/lib/adapters/scala/ScalaExports.js +136 -0
- package/lib/adapters/scala/ScalaFileScanner.d.ts +111 -0
- package/lib/adapters/scala/ScalaFileScanner.js +434 -0
- package/lib/adapters/sql/EvidenceSqlAdapter.d.ts +13 -0
- package/lib/adapters/sql/EvidenceSqlAdapter.js +28 -0
- package/lib/adapters/sql/ISqlAdapterOptions.d.ts +33 -0
- package/lib/adapters/sql/ISqlAdapterOptions.js +2 -0
- package/lib/adapters/sql/ISqlDeclaration.d.ts +67 -0
- package/lib/adapters/sql/ISqlDeclaration.js +2 -0
- package/lib/adapters/sql/ISqlDocumentation.d.ts +40 -0
- package/lib/adapters/sql/ISqlDocumentation.js +2 -0
- package/lib/adapters/sql/ISqlDocumentationAttachment.d.ts +18 -0
- package/lib/adapters/sql/ISqlDocumentationAttachment.js +2 -0
- package/lib/adapters/sql/ISqlFileAnalysis.d.ts +41 -0
- package/lib/adapters/sql/ISqlFileAnalysis.js +2 -0
- package/lib/adapters/sql/ISqlPolicy.d.ts +43 -0
- package/lib/adapters/sql/ISqlPolicy.js +2 -0
- package/lib/adapters/sql/SqlAdapter.d.ts +123 -0
- package/lib/adapters/sql/SqlAdapter.js +658 -0
- package/lib/adapters/sql/SqlDocumentation.d.ts +16 -0
- package/lib/adapters/sql/SqlDocumentation.js +91 -0
- package/lib/adapters/sql/SqlFileScanner.d.ts +86 -0
- package/lib/adapters/sql/SqlFileScanner.js +299 -0
- package/lib/adapters/sql/SqlPolicy.d.ts +20 -0
- package/lib/adapters/sql/SqlPolicy.js +111 -0
- package/lib/adapters/sqlite/EvidenceSqliteAdapter.d.ts +16 -0
- package/lib/adapters/sqlite/EvidenceSqliteAdapter.js +26 -0
- package/lib/adapters/sqlite/SqliteFileScanner.d.ts +83 -0
- package/lib/adapters/sqlite/SqliteFileScanner.js +285 -0
- package/lib/adapters/sqlite/SqliteSyntax.d.ts +26 -0
- package/lib/adapters/sqlite/SqliteSyntax.js +49 -0
- package/lib/adapters/swagger/EvidenceSwaggerAdapter.d.ts +55 -0
- package/lib/adapters/swagger/EvidenceSwaggerAdapter.js +489 -0
- package/lib/adapters/swagger/IRemoteSwaggerSource.d.ts +19 -0
- package/lib/adapters/swagger/IRemoteSwaggerSource.js +2 -0
- package/lib/adapters/swagger/ISwaggerCacheEntry.d.ts +18 -0
- package/lib/adapters/swagger/ISwaggerCacheEntry.js +2 -0
- package/lib/adapters/swagger/ISwaggerLoadResult.d.ts +13 -0
- package/lib/adapters/swagger/ISwaggerLoadResult.js +2 -0
- package/lib/adapters/swagger/ISwaggerOperation.d.ts +42 -0
- package/lib/adapters/swagger/ISwaggerOperation.js +2 -0
- package/lib/adapters/swagger/ISwaggerOperationLocation.d.ts +21 -0
- package/lib/adapters/swagger/ISwaggerOperationLocation.js +2 -0
- package/lib/adapters/swagger/IYamlScalarMapping.d.ts +36 -0
- package/lib/adapters/swagger/IYamlScalarMapping.js +2 -0
- package/lib/adapters/swagger/SwaggerDescription.d.ts +18 -0
- package/lib/adapters/swagger/SwaggerDescription.js +62 -0
- package/lib/adapters/swagger/SwaggerDocumentInput.d.ts +8 -0
- package/lib/adapters/swagger/SwaggerDocumentInput.js +2 -0
- package/lib/adapters/swagger/SwaggerDocumentLoader.d.ts +15 -0
- package/lib/adapters/swagger/SwaggerDocumentLoader.js +6962 -0
- package/lib/adapters/swagger/SwaggerRemoteReader.d.ts +26 -0
- package/lib/adapters/swagger/SwaggerRemoteReader.js +89 -0
- package/lib/adapters/swagger/SwaggerTarget.d.ts +14 -0
- package/lib/adapters/swagger/SwaggerTarget.js +29 -0
- package/lib/adapters/swagger/YamlScalarMapper.d.ts +11 -0
- package/lib/adapters/swagger/YamlScalarMapper.js +76 -0
- package/lib/adapters/swift/EvidenceSwiftAdapter.d.ts +15 -0
- package/lib/adapters/swift/EvidenceSwiftAdapter.js +19 -0
- package/lib/adapters/swift/ISwiftDeclaration.d.ts +91 -0
- package/lib/adapters/swift/ISwiftDeclaration.js +2 -0
- package/lib/adapters/swift/ISwiftDocumentation.d.ts +35 -0
- package/lib/adapters/swift/ISwiftDocumentation.js +2 -0
- package/lib/adapters/swift/ISwiftDocumentationAttachment.d.ts +22 -0
- package/lib/adapters/swift/ISwiftDocumentationAttachment.js +2 -0
- package/lib/adapters/swift/ISwiftFileAnalysis.d.ts +43 -0
- package/lib/adapters/swift/ISwiftFileAnalysis.js +2 -0
- package/lib/adapters/swift/SwiftAdapter.d.ts +108 -0
- package/lib/adapters/swift/SwiftAdapter.js +666 -0
- package/lib/adapters/swift/SwiftDocumentation.d.ts +16 -0
- package/lib/adapters/swift/SwiftDocumentation.js +75 -0
- package/lib/adapters/swift/SwiftFileScanner.d.ts +87 -0
- package/lib/adapters/swift/SwiftFileScanner.js +341 -0
- package/lib/adapters/swift/SwiftOwnership.d.ts +16 -0
- package/lib/adapters/swift/SwiftOwnership.js +141 -0
- package/lib/adapters/typescript/EvidenceTypeScriptAdapter.d.ts +29 -0
- package/lib/adapters/typescript/EvidenceTypeScriptAdapter.js +35 -0
- package/lib/adapters/zig/EvidenceZigAdapter.d.ts +16 -0
- package/lib/adapters/zig/EvidenceZigAdapter.js +20 -0
- package/lib/adapters/zig/IZigDeclaration.d.ts +73 -0
- package/lib/adapters/zig/IZigDeclaration.js +2 -0
- package/lib/adapters/zig/IZigDocumentation.d.ts +35 -0
- package/lib/adapters/zig/IZigDocumentation.js +2 -0
- package/lib/adapters/zig/IZigDocumentationAttachment.d.ts +21 -0
- package/lib/adapters/zig/IZigDocumentationAttachment.js +2 -0
- package/lib/adapters/zig/IZigFileAnalysis.d.ts +47 -0
- package/lib/adapters/zig/IZigFileAnalysis.js +2 -0
- package/lib/adapters/zig/ZigAdapter.d.ts +114 -0
- package/lib/adapters/zig/ZigAdapter.js +647 -0
- package/lib/adapters/zig/ZigDocumentation.d.ts +18 -0
- package/lib/adapters/zig/ZigDocumentation.js +80 -0
- package/lib/adapters/zig/ZigFileScanner.d.ts +125 -0
- package/lib/adapters/zig/ZigFileScanner.js +538 -0
- package/lib/commands/EvidenceCommand.d.ts +70 -0
- package/lib/commands/EvidenceCommand.js +722 -0
- package/lib/commands/EvidenceCommandError.d.ts +16 -0
- package/lib/commands/EvidenceCommandError.js +23 -0
- package/lib/commands/EvidenceWatcher.d.ts +134 -0
- package/lib/commands/EvidenceWatcher.js +500 -0
- package/lib/contexts/EvidenceQueryPopulationContext.d.ts +102 -0
- package/lib/contexts/EvidenceQueryPopulationContext.js +166 -0
- package/lib/contexts/IEvidenceCheckContext.d.ts +26 -0
- package/lib/contexts/IEvidenceCheckContext.js +2 -0
- package/lib/contexts/IEvidenceClaimContext.d.ts +48 -0
- package/lib/contexts/IEvidenceClaimContext.js +2 -0
- package/lib/contexts/IEvidenceGraphClaimContext.d.ts +40 -0
- package/lib/contexts/IEvidenceGraphClaimContext.js +2 -0
- package/lib/contexts/IEvidenceGraphReferenceContext.d.ts +65 -0
- package/lib/contexts/IEvidenceGraphReferenceContext.js +2 -0
- package/lib/contexts/IEvidenceQueryContext.d.ts +32 -0
- package/lib/contexts/IEvidenceQueryContext.js +2 -0
- package/lib/contexts/IEvidenceTagContext.d.ts +64 -0
- package/lib/contexts/IEvidenceTagContext.js +2 -0
- package/lib/executable/evidence.d.ts +2 -0
- package/lib/executable/evidence.js +14 -0
- package/lib/graph/EvidenceFingerprint.d.ts +27 -0
- package/lib/graph/EvidenceFingerprint.js +37 -0
- package/lib/graph/EvidenceGraph.d.ts +56 -0
- package/lib/graph/EvidenceGraph.js +1944 -0
- package/lib/graph/EvidenceInventory.d.ts +146 -0
- package/lib/graph/EvidenceInventory.js +1165 -0
- package/lib/graph/EvidenceQuery.d.ts +86 -0
- package/lib/graph/EvidenceQuery.js +109 -0
- package/lib/index.d.ts +110 -0
- package/lib/index.js +154 -0
- package/lib/internal/CanonicalJson.d.ts +20 -0
- package/lib/internal/CanonicalJson.js +67 -0
- package/lib/internal/ConfigDependencyScanner.d.ts +40 -0
- package/lib/internal/ConfigDependencyScanner.js +330 -0
- package/lib/internal/EvidenceAdapterFactory.d.ts +15 -0
- package/lib/internal/EvidenceAdapterFactory.js +104 -0
- package/lib/internal/EvidenceArtifactTypes.d.ts +20 -0
- package/lib/internal/EvidenceArtifactTypes.js +41 -0
- package/lib/internal/EvidenceConfigFormat.d.ts +11 -0
- package/lib/internal/EvidenceConfigFormat.js +24 -0
- package/lib/internal/EvidenceFingerprintIndex.d.ts +49 -0
- package/lib/internal/EvidenceFingerprintIndex.js +201 -0
- package/lib/internal/EvidenceTargetApplicability.d.ts +16 -0
- package/lib/internal/EvidenceTargetApplicability.js +144 -0
- package/lib/internal/EvidenceTargetBody.d.ts +21 -0
- package/lib/internal/EvidenceTargetBody.js +66 -0
- package/lib/internal/FileGlob.d.ts +24 -0
- package/lib/internal/FileGlob.js +148 -0
- package/lib/internal/IConfigDependencyScan.d.ts +25 -0
- package/lib/internal/IConfigDependencyScan.js +2 -0
- package/lib/internal/IConfigPackageScope.d.ts +16 -0
- package/lib/internal/IConfigPackageScope.js +2 -0
- package/lib/internal/IEvaluateTypeScriptConfigOptions.d.ts +16 -0
- package/lib/internal/IEvaluateTypeScriptConfigOptions.js +2 -0
- package/lib/internal/IEvidenceMaterializedClaim.d.ts +47 -0
- package/lib/internal/IEvidenceMaterializedClaim.js +2 -0
- package/lib/internal/IEvidenceMaterializedReference.d.ts +31 -0
- package/lib/internal/IEvidenceMaterializedReference.js +2 -0
- package/lib/internal/IEvidenceQueryPopulation.d.ts +43 -0
- package/lib/internal/IEvidenceQueryPopulation.js +2 -0
- package/lib/internal/IEvidenceResolvedAcknowledgement.d.ts +30 -0
- package/lib/internal/IEvidenceResolvedAcknowledgement.js +2 -0
- package/lib/internal/IEvidenceResolvedReview.d.ts +30 -0
- package/lib/internal/IEvidenceResolvedReview.js +2 -0
- package/lib/internal/IEvidenceTargetBody.d.ts +22 -0
- package/lib/internal/IEvidenceTargetBody.js +2 -0
- package/lib/internal/IEvidenceTargetCandidate.d.ts +23 -0
- package/lib/internal/IEvidenceTargetCandidate.js +2 -0
- package/lib/internal/IEvidenceUnhostedChecklist.d.ts +38 -0
- package/lib/internal/IEvidenceUnhostedChecklist.js +2 -0
- package/lib/internal/IEvidenceWatchAttempt.d.ts +39 -0
- package/lib/internal/IEvidenceWatchAttempt.js +2 -0
- package/lib/internal/IFileGlobPattern.d.ts +22 -0
- package/lib/internal/IFileGlobPattern.js +2 -0
- package/lib/internal/IPackageManifest.d.ts +16 -0
- package/lib/internal/IPackageManifest.js +2 -0
- package/lib/internal/IPendingEvidenceTag.d.ts +36 -0
- package/lib/internal/IPendingEvidenceTag.js +2 -0
- package/lib/internal/ITreeSitterAssetLock.d.ts +23 -0
- package/lib/internal/ITreeSitterAssetLock.js +2 -0
- package/lib/internal/ITreeSitterAssetOptions.d.ts +51 -0
- package/lib/internal/ITreeSitterAssetOptions.js +2 -0
- package/lib/internal/ITreeSitterAssetPending.d.ts +29 -0
- package/lib/internal/ITreeSitterAssetPending.js +2 -0
- package/lib/internal/ITtsxExecutables.d.ts +16 -0
- package/lib/internal/ITtsxExecutables.js +2 -0
- package/lib/internal/ITtsxManifest.d.ts +17 -0
- package/lib/internal/ITtsxManifest.js +2 -0
- package/lib/internal/InventoryMerge.d.ts +53 -0
- package/lib/internal/InventoryMerge.js +317 -0
- package/lib/internal/InventorySources.d.ts +16 -0
- package/lib/internal/InventorySources.js +77 -0
- package/lib/internal/ParserSlots.d.ts +79 -0
- package/lib/internal/ParserSlots.js +113 -0
- package/lib/internal/SourceCollector.d.ts +62 -0
- package/lib/internal/SourceCollector.js +301 -0
- package/lib/internal/SourceFailure.d.ts +17 -0
- package/lib/internal/SourceFailure.js +23 -0
- package/lib/internal/SourcePath.d.ts +43 -0
- package/lib/internal/SourcePath.js +93 -0
- package/lib/internal/SourceText.d.ts +40 -0
- package/lib/internal/SourceText.js +81 -0
- package/lib/internal/TreeSitterAssetCache.d.ts +35 -0
- package/lib/internal/TreeSitterAssetCache.js +456 -0
- package/lib/internal/TreeSitterAssetScope.d.ts +23 -0
- package/lib/internal/TreeSitterAssetScope.js +40 -0
- package/lib/internal/TreeSitterAssets.d.ts +67 -0
- package/lib/internal/TreeSitterAssets.js +367 -0
- package/lib/internal/TreeSitterRange.d.ts +17 -0
- package/lib/internal/TreeSitterRange.js +33 -0
- package/lib/internal/TreeSitterRuntime.d.ts +17 -0
- package/lib/internal/TreeSitterRuntime.js +57 -0
- package/lib/internal/WatchDependencySet.d.ts +31 -0
- package/lib/internal/WatchDependencySet.js +59 -0
- package/lib/internal/WatchDependencySnapshot.d.ts +38 -0
- package/lib/internal/WatchDependencySnapshot.js +191 -0
- package/lib/internal/createEvidenceConfigPlan.d.ts +10 -0
- package/lib/internal/createEvidenceConfigPlan.js +90 -0
- package/lib/internal/evaluateTypeScriptConfig.d.ts +9 -0
- package/lib/internal/evaluateTypeScriptConfig.js +341 -0
- package/lib/internal/parser-grammars.json +452 -0
- package/lib/internal/validateEvidenceConfig.d.ts +8 -0
- package/lib/internal/validateEvidenceConfig.js +154 -0
- package/lib/loaders/EvidenceConfigLoader.d.ts +36 -0
- package/lib/loaders/EvidenceConfigLoader.js +557 -0
- package/lib/loaders/EvidenceSourceLoader.d.ts +35 -0
- package/lib/loaders/EvidenceSourceLoader.js +50 -0
- package/lib/parsers/EvidenceDocumentation.d.ts +20 -0
- package/lib/parsers/EvidenceDocumentation.js +77 -0
- package/lib/parsers/EvidenceLanguageRegistry.d.ts +49 -0
- package/lib/parsers/EvidenceLanguageRegistry.js +652 -0
- package/lib/parsers/EvidenceParseSession.d.ts +141 -0
- package/lib/parsers/EvidenceParseSession.js +193 -0
- package/lib/parsers/EvidenceParser.d.ts +109 -0
- package/lib/parsers/EvidenceParser.js +307 -0
- package/lib/parsers/EvidenceParserError.d.ts +71 -0
- package/lib/parsers/EvidenceParserError.js +63 -0
- package/lib/parsers/EvidenceTagParser.d.ts +56 -0
- package/lib/parsers/EvidenceTagParser.js +81 -0
- package/lib/programmers/EvidenceCheckProgrammer.d.ts +36 -0
- package/lib/programmers/EvidenceCheckProgrammer.js +446 -0
- package/lib/programmers/EvidenceQueryProgrammer.d.ts +69 -0
- package/lib/programmers/EvidenceQueryProgrammer.js +970 -0
- package/lib/programmers/EvidenceTagProgrammer.d.ts +25 -0
- package/lib/programmers/EvidenceTagProgrammer.js +252 -0
- package/lib/reporters/EvidenceGraphReporter.d.ts +39 -0
- package/lib/reporters/EvidenceGraphReporter.js +193 -0
- package/lib/reporters/EvidenceQueryReporter.d.ts +33 -0
- package/lib/reporters/EvidenceQueryReporter.js +181 -0
- package/lib/reporters/EvidenceReporter.d.ts +33 -0
- package/lib/reporters/EvidenceReporter.js +117 -0
- package/lib/reporters/EvidenceWatchReporter.d.ts +31 -0
- package/lib/reporters/EvidenceWatchReporter.js +46 -0
- package/lib/structures/IEvidenceAdapter.d.ts +39 -0
- package/lib/structures/IEvidenceAdapter.js +2 -0
- package/lib/structures/IEvidenceAddress.d.ts +29 -0
- package/lib/structures/IEvidenceAddress.js +2 -0
- package/lib/structures/IEvidenceCheckAnalysis.d.ts +37 -0
- package/lib/structures/IEvidenceCheckAnalysis.js +2 -0
- package/lib/structures/IEvidenceCheckClaim.d.ts +48 -0
- package/lib/structures/IEvidenceCheckClaim.js +2 -0
- package/lib/structures/IEvidenceCheckCommand.d.ts +47 -0
- package/lib/structures/IEvidenceCheckCommand.js +2 -0
- package/lib/structures/IEvidenceCheckCounts.d.ts +70 -0
- package/lib/structures/IEvidenceCheckCounts.js +2 -0
- package/lib/structures/IEvidenceCheckObligation.d.ts +67 -0
- package/lib/structures/IEvidenceCheckObligation.js +2 -0
- package/lib/structures/IEvidenceCheckReport.d.ts +74 -0
- package/lib/structures/IEvidenceCheckReport.js +2 -0
- package/lib/structures/IEvidenceClaim.d.ts +12 -0
- package/lib/structures/IEvidenceClaim.js +2 -0
- package/lib/structures/IEvidenceClaimBase.d.ts +111 -0
- package/lib/structures/IEvidenceClaimBase.js +2 -0
- package/lib/structures/IEvidenceCommand.d.ts +16 -0
- package/lib/structures/IEvidenceCommand.js +2 -0
- package/lib/structures/IEvidenceCommandFailure.d.ts +58 -0
- package/lib/structures/IEvidenceCommandFailure.js +2 -0
- package/lib/structures/IEvidenceCommandResult.d.ts +31 -0
- package/lib/structures/IEvidenceCommandResult.js +2 -0
- package/lib/structures/IEvidenceCommentSyntax.d.ts +42 -0
- package/lib/structures/IEvidenceCommentSyntax.js +2 -0
- package/lib/structures/IEvidenceConfig.d.ts +42 -0
- package/lib/structures/IEvidenceConfig.js +2 -0
- package/lib/structures/IEvidenceConfigPlan.d.ts +29 -0
- package/lib/structures/IEvidenceConfigPlan.js +2 -0
- package/lib/structures/IEvidenceConfigPlanClaim.d.ts +49 -0
- package/lib/structures/IEvidenceConfigPlanClaim.js +2 -0
- package/lib/structures/IEvidenceConfigPlanReference.d.ts +40 -0
- package/lib/structures/IEvidenceConfigPlanReference.js +2 -0
- package/lib/structures/IEvidenceDatabaseClaim.d.ts +26 -0
- package/lib/structures/IEvidenceDatabaseClaim.js +2 -0
- package/lib/structures/IEvidenceDatabaseLanguage.d.ts +37 -0
- package/lib/structures/IEvidenceDatabaseLanguage.js +2 -0
- package/lib/structures/IEvidenceDatabaseLanguageAdapter.d.ts +48 -0
- package/lib/structures/IEvidenceDatabaseLanguageAdapter.js +2 -0
- package/lib/structures/IEvidenceDatabaseReference.d.ts +20 -0
- package/lib/structures/IEvidenceDatabaseReference.js +2 -0
- package/lib/structures/IEvidenceDeclaration.d.ts +37 -0
- package/lib/structures/IEvidenceDeclaration.js +2 -0
- package/lib/structures/IEvidenceDiagnostic.d.ts +66 -0
- package/lib/structures/IEvidenceDiagnostic.js +2 -0
- package/lib/structures/IEvidenceDocumentation.d.ts +51 -0
- package/lib/structures/IEvidenceDocumentation.js +2 -0
- package/lib/structures/IEvidenceDocumentedConfig.d.ts +20 -0
- package/lib/structures/IEvidenceDocumentedConfig.js +2 -0
- package/lib/structures/IEvidenceFingerprint.d.ts +49 -0
- package/lib/structures/IEvidenceFingerprint.js +2 -0
- package/lib/structures/IEvidenceGrammar.d.ts +47 -0
- package/lib/structures/IEvidenceGrammar.js +2 -0
- package/lib/structures/IEvidenceGrammarAsset.d.ts +37 -0
- package/lib/structures/IEvidenceGrammarAsset.js +2 -0
- package/lib/structures/IEvidenceGraphBoundary.d.ts +73 -0
- package/lib/structures/IEvidenceGraphBoundary.js +2 -0
- package/lib/structures/IEvidenceGraphClaim.d.ts +65 -0
- package/lib/structures/IEvidenceGraphClaim.js +2 -0
- package/lib/structures/IEvidenceGraphClaimResult.d.ts +36 -0
- package/lib/structures/IEvidenceGraphClaimResult.js +2 -0
- package/lib/structures/IEvidenceGraphCommand.d.ts +40 -0
- package/lib/structures/IEvidenceGraphCommand.js +2 -0
- package/lib/structures/IEvidenceGraphEdge.d.ts +56 -0
- package/lib/structures/IEvidenceGraphEdge.js +2 -0
- package/lib/structures/IEvidenceGraphExportEdge.d.ts +71 -0
- package/lib/structures/IEvidenceGraphExportEdge.js +2 -0
- package/lib/structures/IEvidenceGraphExportReview.d.ts +55 -0
- package/lib/structures/IEvidenceGraphExportReview.js +2 -0
- package/lib/structures/IEvidenceGraphHostCoverage.d.ts +36 -0
- package/lib/structures/IEvidenceGraphHostCoverage.js +2 -0
- package/lib/structures/IEvidenceGraphHostNode.d.ts +46 -0
- package/lib/structures/IEvidenceGraphHostNode.js +2 -0
- package/lib/structures/IEvidenceGraphInput.d.ts +24 -0
- package/lib/structures/IEvidenceGraphInput.js +2 -0
- package/lib/structures/IEvidenceGraphNode.d.ts +82 -0
- package/lib/structures/IEvidenceGraphNode.js +2 -0
- package/lib/structures/IEvidenceGraphObligation.d.ts +79 -0
- package/lib/structures/IEvidenceGraphObligation.js +2 -0
- package/lib/structures/IEvidenceGraphPolicy.d.ts +53 -0
- package/lib/structures/IEvidenceGraphPolicy.js +2 -0
- package/lib/structures/IEvidenceGraphReference.d.ts +95 -0
- package/lib/structures/IEvidenceGraphReference.js +2 -0
- package/lib/structures/IEvidenceGraphReport.d.ts +84 -0
- package/lib/structures/IEvidenceGraphReport.js +2 -0
- package/lib/structures/IEvidenceGraphResolution.d.ts +22 -0
- package/lib/structures/IEvidenceGraphResolution.js +2 -0
- package/lib/structures/IEvidenceGraphResult.d.ts +37 -0
- package/lib/structures/IEvidenceGraphResult.js +2 -0
- package/lib/structures/IEvidenceGraphReviewResolution.d.ts +23 -0
- package/lib/structures/IEvidenceGraphReviewResolution.js +2 -0
- package/lib/structures/IEvidenceHelpCommand.d.ts +14 -0
- package/lib/structures/IEvidenceHelpCommand.js +2 -0
- package/lib/structures/IEvidenceHost.d.ts +78 -0
- package/lib/structures/IEvidenceHost.js +2 -0
- package/lib/structures/IEvidenceInitCommand.d.ts +26 -0
- package/lib/structures/IEvidenceInitCommand.js +2 -0
- package/lib/structures/IEvidenceInspectCommand.d.ts +46 -0
- package/lib/structures/IEvidenceInspectCommand.js +2 -0
- package/lib/structures/IEvidenceInspectReport.d.ts +70 -0
- package/lib/structures/IEvidenceInspectReport.js +2 -0
- package/lib/structures/IEvidenceInspectedAcknowledgement.d.ts +60 -0
- package/lib/structures/IEvidenceInspectedAcknowledgement.js +2 -0
- package/lib/structures/IEvidenceInspectedObligation.d.ts +61 -0
- package/lib/structures/IEvidenceInspectedObligation.js +2 -0
- package/lib/structures/IEvidenceInspectedReview.d.ts +48 -0
- package/lib/structures/IEvidenceInspectedReview.js +2 -0
- package/lib/structures/IEvidenceInspectedUnit.d.ts +36 -0
- package/lib/structures/IEvidenceInspectedUnit.js +2 -0
- package/lib/structures/IEvidenceInspection.d.ts +73 -0
- package/lib/structures/IEvidenceInspection.js +2 -0
- package/lib/structures/IEvidenceInventory.d.ts +114 -0
- package/lib/structures/IEvidenceInventory.js +2 -0
- package/lib/structures/IEvidenceLanguage.d.ts +37 -0
- package/lib/structures/IEvidenceLanguage.js +2 -0
- package/lib/structures/IEvidenceLanguageAdapter.d.ts +49 -0
- package/lib/structures/IEvidenceLanguageAdapter.js +2 -0
- package/lib/structures/IEvidenceLanguageCandidate.d.ts +94 -0
- package/lib/structures/IEvidenceLanguageCandidate.js +2 -0
- package/lib/structures/IEvidenceLanguageGrammar.d.ts +29 -0
- package/lib/structures/IEvidenceLanguageGrammar.js +2 -0
- package/lib/structures/IEvidenceLanguagesCommand.d.ts +33 -0
- package/lib/structures/IEvidenceLanguagesCommand.js +2 -0
- package/lib/structures/IEvidenceLanguagesReport.d.ts +36 -0
- package/lib/structures/IEvidenceLanguagesReport.js +2 -0
- package/lib/structures/IEvidenceListCommand.d.ts +55 -0
- package/lib/structures/IEvidenceListCommand.js +2 -0
- package/lib/structures/IEvidenceListItem.d.ts +69 -0
- package/lib/structures/IEvidenceListItem.js +2 -0
- package/lib/structures/IEvidenceListReport.d.ts +82 -0
- package/lib/structures/IEvidenceListReport.js +2 -0
- package/lib/structures/IEvidenceMarkdownClaim.d.ts +19 -0
- package/lib/structures/IEvidenceMarkdownClaim.js +2 -0
- package/lib/structures/IEvidenceMarkdownReference.d.ts +48 -0
- package/lib/structures/IEvidenceMarkdownReference.js +2 -0
- package/lib/structures/IEvidenceParserInput.d.ts +31 -0
- package/lib/structures/IEvidenceParserInput.js +2 -0
- package/lib/structures/IEvidenceParserOptions.d.ts +19 -0
- package/lib/structures/IEvidenceParserOptions.js +2 -0
- package/lib/structures/IEvidenceParserState.d.ts +34 -0
- package/lib/structures/IEvidenceParserState.js +2 -0
- package/lib/structures/IEvidencePopulation.d.ts +63 -0
- package/lib/structures/IEvidencePopulation.js +2 -0
- package/lib/structures/IEvidenceProgrammingClaim.d.ts +28 -0
- package/lib/structures/IEvidenceProgrammingClaim.js +2 -0
- package/lib/structures/IEvidenceProgrammingReference.d.ts +20 -0
- package/lib/structures/IEvidenceProgrammingReference.js +2 -0
- package/lib/structures/IEvidencePublicAddress.d.ts +21 -0
- package/lib/structures/IEvidencePublicAddress.js +2 -0
- package/lib/structures/IEvidenceQueryScope.d.ts +41 -0
- package/lib/structures/IEvidenceQueryScope.js +2 -0
- package/lib/structures/IEvidenceReference.d.ts +12 -0
- package/lib/structures/IEvidenceReference.js +2 -0
- package/lib/structures/IEvidenceReferenceBase.d.ts +107 -0
- package/lib/structures/IEvidenceReferenceBase.js +2 -0
- package/lib/structures/IEvidenceResolution.d.ts +32 -0
- package/lib/structures/IEvidenceResolution.js +2 -0
- package/lib/structures/IEvidenceReview.d.ts +50 -0
- package/lib/structures/IEvidenceReview.js +2 -0
- package/lib/structures/IEvidenceSourceAddress.d.ts +39 -0
- package/lib/structures/IEvidenceSourceAddress.js +2 -0
- package/lib/structures/IEvidenceSourceDependency.d.ts +24 -0
- package/lib/structures/IEvidenceSourceDependency.js +2 -0
- package/lib/structures/IEvidenceSourceDiagnostic.d.ts +30 -0
- package/lib/structures/IEvidenceSourceDiagnostic.js +2 -0
- package/lib/structures/IEvidenceSourceFile.d.ts +50 -0
- package/lib/structures/IEvidenceSourceFile.js +2 -0
- package/lib/structures/IEvidenceSourceLocation.d.ts +23 -0
- package/lib/structures/IEvidenceSourceLocation.js +2 -0
- package/lib/structures/IEvidenceSourcePosition.d.ts +36 -0
- package/lib/structures/IEvidenceSourcePosition.js +2 -0
- package/lib/structures/IEvidenceSourceRange.d.ts +28 -0
- package/lib/structures/IEvidenceSourceRange.js +2 -0
- package/lib/structures/IEvidenceSourceRoot.d.ts +38 -0
- package/lib/structures/IEvidenceSourceRoot.js +2 -0
- package/lib/structures/IEvidenceSourceSelection.d.ts +23 -0
- package/lib/structures/IEvidenceSourceSelection.js +2 -0
- package/lib/structures/IEvidenceSourceSnapshot.d.ts +53 -0
- package/lib/structures/IEvidenceSourceSnapshot.js +2 -0
- package/lib/structures/IEvidenceSupportedDatabaseLanguage.d.ts +36 -0
- package/lib/structures/IEvidenceSupportedDatabaseLanguage.js +2 -0
- package/lib/structures/IEvidenceSupportedLanguage.d.ts +36 -0
- package/lib/structures/IEvidenceSupportedLanguage.js +2 -0
- package/lib/structures/IEvidenceSwaggerClaim.d.ts +17 -0
- package/lib/structures/IEvidenceSwaggerClaim.js +2 -0
- package/lib/structures/IEvidenceSwaggerReference.d.ts +23 -0
- package/lib/structures/IEvidenceSwaggerReference.js +2 -0
- package/lib/structures/IEvidenceTagParseResult.d.ts +37 -0
- package/lib/structures/IEvidenceTagParseResult.js +2 -0
- package/lib/structures/IEvidenceTargetResolution.d.ts +51 -0
- package/lib/structures/IEvidenceTargetResolution.js +2 -0
- package/lib/structures/IEvidenceTargetStatement.d.ts +32 -0
- package/lib/structures/IEvidenceTargetStatement.js +2 -0
- package/lib/structures/IEvidenceUnit.d.ts +96 -0
- package/lib/structures/IEvidenceUnit.js +2 -0
- package/lib/structures/IEvidenceUnitSite.d.ts +44 -0
- package/lib/structures/IEvidenceUnitSite.js +2 -0
- package/lib/structures/IEvidenceVersionCommand.d.ts +14 -0
- package/lib/structures/IEvidenceVersionCommand.js +2 -0
- package/lib/structures/IEvidenceWatchCheckCycle.d.ts +60 -0
- package/lib/structures/IEvidenceWatchCheckCycle.js +2 -0
- package/lib/structures/IEvidenceWatchFailureCycle.d.ts +70 -0
- package/lib/structures/IEvidenceWatchFailureCycle.js +2 -0
- package/lib/structures/IEvidenceWatchOptions.d.ts +37 -0
- package/lib/structures/IEvidenceWatchOptions.js +2 -0
- package/lib/structures/IEvidenceWithdrawal.d.ts +24 -0
- package/lib/structures/IEvidenceWithdrawal.js +2 -0
- package/lib/structures/index.d.ts +105 -0
- package/lib/structures/index.js +2 -0
- package/lib/targets/EvidenceAccessor.d.ts +31 -0
- package/lib/targets/EvidenceAccessor.js +165 -0
- package/lib/targets/EvidenceFileTarget.d.ts +41 -0
- package/lib/targets/EvidenceFileTarget.js +122 -0
- package/lib/targets/EvidenceTargetResolver.d.ts +174 -0
- package/lib/targets/EvidenceTargetResolver.js +403 -0
- package/lib/typings/EvidenceAcknowledgementKind.d.ts +7 -0
- package/lib/typings/EvidenceAcknowledgementKind.js +2 -0
- package/lib/typings/EvidenceActiveSeverity.d.ts +7 -0
- package/lib/typings/EvidenceActiveSeverity.js +2 -0
- package/lib/typings/EvidenceArtifactType.d.ts +10 -0
- package/lib/typings/EvidenceArtifactType.js +2 -0
- package/lib/typings/EvidenceCheckStatus.d.ts +8 -0
- package/lib/typings/EvidenceCheckStatus.js +2 -0
- package/lib/typings/EvidenceCommandExitCode.d.ts +8 -0
- package/lib/typings/EvidenceCommandExitCode.js +2 -0
- package/lib/typings/EvidenceDatabaseSymbol.d.ts +24 -0
- package/lib/typings/EvidenceDatabaseSymbol.js +2 -0
- package/lib/typings/EvidenceDatabaseType.d.ts +7 -0
- package/lib/typings/EvidenceDatabaseType.js +2 -0
- package/lib/typings/EvidenceGrammarWasmAvailability.d.ts +7 -0
- package/lib/typings/EvidenceGrammarWasmAvailability.js +2 -0
- package/lib/typings/EvidenceGraphFormat.d.ts +7 -0
- package/lib/typings/EvidenceGraphFormat.js +2 -0
- package/lib/typings/EvidenceGraphNode.d.ts +10 -0
- package/lib/typings/EvidenceGraphNode.js +2 -0
- package/lib/typings/EvidenceLanguageCandidateId.d.ts +7 -0
- package/lib/typings/EvidenceLanguageCandidateId.js +2 -0
- package/lib/typings/EvidenceLanguageCandidateKind.d.ts +7 -0
- package/lib/typings/EvidenceLanguageCandidateKind.js +2 -0
- package/lib/typings/EvidenceMarkdownSymbol.d.ts +22 -0
- package/lib/typings/EvidenceMarkdownSymbol.js +2 -0
- package/lib/typings/EvidenceParserErrorCode.d.ts +8 -0
- package/lib/typings/EvidenceParserErrorCode.js +2 -0
- package/lib/typings/EvidencePopulationRole.d.ts +7 -0
- package/lib/typings/EvidencePopulationRole.js +2 -0
- package/lib/typings/EvidenceProgrammingSymbol.d.ts +58 -0
- package/lib/typings/EvidenceProgrammingSymbol.js +2 -0
- package/lib/typings/EvidenceProgrammingType.d.ts +7 -0
- package/lib/typings/EvidenceProgrammingType.js +2 -0
- package/lib/typings/EvidenceQueryReport.d.ts +10 -0
- package/lib/typings/EvidenceQueryReport.js +2 -0
- package/lib/typings/EvidenceReportFormat.d.ts +7 -0
- package/lib/typings/EvidenceReportFormat.js +2 -0
- package/lib/typings/EvidenceSeverity.d.ts +7 -0
- package/lib/typings/EvidenceSeverity.js +2 -0
- package/lib/typings/EvidenceSymbol.d.ts +11 -0
- package/lib/typings/EvidenceSymbol.js +2 -0
- package/lib/typings/EvidenceTargetResolutionStatus.d.ts +8 -0
- package/lib/typings/EvidenceTargetResolutionStatus.js +2 -0
- package/lib/typings/EvidenceUnitSelection.d.ts +7 -0
- package/lib/typings/EvidenceUnitSelection.js +2 -0
- package/lib/typings/EvidenceWatchCycle.d.ts +9 -0
- package/lib/typings/EvidenceWatchCycle.js +2 -0
- package/lib/typings/EvidenceWatchPublisher.d.ts +8 -0
- package/lib/typings/EvidenceWatchPublisher.js +2 -0
- package/lib/typings/index.d.ts +25 -0
- package/lib/typings/index.js +2 -0
- package/package.json +66 -0
|
@@ -0,0 +1,1165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.EvidenceInventory = void 0;
|
|
40
|
+
const _assertGuard_1 = __importStar(require("typia/lib/internal/_assertGuard"));
|
|
41
|
+
const _jsonStringifyNumber_1 = __importStar(require("typia/lib/internal/_jsonStringifyNumber"));
|
|
42
|
+
const _jsonStringifyArray_1 = __importStar(require("typia/lib/internal/_jsonStringifyArray"));
|
|
43
|
+
const _jsonStringifyString_1 = __importStar(require("typia/lib/internal/_jsonStringifyString"));
|
|
44
|
+
const _jsonStringifyTail_1 = __importStar(require("typia/lib/internal/_jsonStringifyTail"));
|
|
45
|
+
const typia_1 = __importDefault(require("typia"));
|
|
46
|
+
const InventoryMerge_1 = require("../internal/InventoryMerge");
|
|
47
|
+
const SourceText_1 = require("../internal/SourceText");
|
|
48
|
+
/**
|
|
49
|
+
* Reconciles adapter records and indexes independently selected evidence populations.
|
|
50
|
+
*
|
|
51
|
+
* Construction captures the supplied inventories, merges compatible identities,
|
|
52
|
+
* and checks source ranges, parent relationships, addresses, and host ownership.
|
|
53
|
+
* Inconsistent records leave diagnostics and an incomplete inventory instead of
|
|
54
|
+
* silently disappearing from the denominator. Normalization makes snapshots and
|
|
55
|
+
* serialization deterministic.
|
|
56
|
+
*
|
|
57
|
+
* Selection distinguishes required units from their addressable ancestors and
|
|
58
|
+
* propagates withdrawals through explicit parent links. Resolution then matches
|
|
59
|
+
* an exact file and segmented accessor within that scope. Aliases can name one
|
|
60
|
+
* identity; an address naming several identities remains ambiguous.
|
|
61
|
+
*
|
|
62
|
+
* Snapshots, populations, and resolutions are owned copies. Mutating one result
|
|
63
|
+
* cannot affect this index or a later selection.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* const inventory: EvidenceInventory = new EvidenceInventory([adapterOutput]);
|
|
67
|
+
* const population: IEvidencePopulation = inventory.select([methodId]);
|
|
68
|
+
* const target: IEvidenceResolution = inventory.resolve(
|
|
69
|
+
* { file: "api.ts", segments: ["Client"] },
|
|
70
|
+
* [methodId],
|
|
71
|
+
* );
|
|
72
|
+
* // Client may resolve as an aggregate owner while only its method is required.
|
|
73
|
+
*/
|
|
74
|
+
class EvidenceInventory {
|
|
75
|
+
/**
|
|
76
|
+
* Reconciled records owned by this index.
|
|
77
|
+
*
|
|
78
|
+
* Validation appends findings here before normalization. Public methods return
|
|
79
|
+
* copies so callers cannot invalidate the lookup tables by editing a snapshot.
|
|
80
|
+
*/
|
|
81
|
+
data;
|
|
82
|
+
/**
|
|
83
|
+
* Semantic identity lookup over the reconciled units.
|
|
84
|
+
*
|
|
85
|
+
* Parent traversal uses these IDs rather than public names. The same table
|
|
86
|
+
* supports validation of addresses, hosts, and selected identities.
|
|
87
|
+
*/
|
|
88
|
+
units = new Map();
|
|
89
|
+
/**
|
|
90
|
+
* Effective withdrawals for each unit, including its ancestors' directives.
|
|
91
|
+
*
|
|
92
|
+
* Validation computes these chains once. Selection excludes affected units,
|
|
93
|
+
* while resolution retains the directive locations to explain hidden targets.
|
|
94
|
+
*/
|
|
95
|
+
withdrawals = new Map();
|
|
96
|
+
/**
|
|
97
|
+
* Captures, reconciles, and validates one or more adapter inventories.
|
|
98
|
+
*
|
|
99
|
+
* Shape validation rejects malformed input. Semantic inconsistencies become
|
|
100
|
+
* inventory diagnostics so callers can inspect the partial records and their
|
|
101
|
+
* incomplete status rather than receiving an apparently healthy subset.
|
|
102
|
+
*/
|
|
103
|
+
constructor(inventories) {
|
|
104
|
+
this.data = InventoryMerge_1.InventoryMerge.combine(structuredClone((() => {
|
|
105
|
+
const _ip0 = input => "string" === typeof input["id"];
|
|
106
|
+
const _ip1 = input => "string" === typeof input["file"];
|
|
107
|
+
const _iv0 = new Set(["bigquery", "c", "cpp", "csharp", "dart", "dbml", "go", "java", "javascript", "kotlin", "lua", "markdown", "matlab", "mysql", "objc", "php", "postgresql", "prisma", "python", "ruby", "rust", "scala", "sql", "sqlite", "swagger", "swift", "typescript", "zig"]);
|
|
108
|
+
const _iv1 = new Set(["column", "file", "function", "h1", "h2", "h3", "h4", "model", "operation", "property", "relation", "type"]);
|
|
109
|
+
const _ip2 = input => "object" === typeof input["range"] && null !== input["range"] && _io4(input["range"]);
|
|
110
|
+
const _ip3 = input => "object" === typeof input["location"] && null !== input["location"] && _io3(input["location"]);
|
|
111
|
+
const _ip4 = input => "string" === typeof input["hostId"];
|
|
112
|
+
const _ip5 = input => "string" === typeof input["target"];
|
|
113
|
+
const _ap0 = (input, _path, _exceptionable = true) => "string" === typeof input["id"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
114
|
+
method: "typia.assert",
|
|
115
|
+
path: _path + ".id",
|
|
116
|
+
expected: "string",
|
|
117
|
+
value: input["id"]
|
|
118
|
+
}, _errorFactory);
|
|
119
|
+
const _ap1 = (input, _path, _exceptionable = true) => "string" === typeof input["file"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
120
|
+
method: "typia.assert",
|
|
121
|
+
path: _path + ".file",
|
|
122
|
+
expected: "string",
|
|
123
|
+
value: input["file"]
|
|
124
|
+
}, _errorFactory);
|
|
125
|
+
const _av0 = new Set(["bigquery", "c", "cpp", "csharp", "dart", "dbml", "go", "java", "javascript", "kotlin", "lua", "markdown", "matlab", "mysql", "objc", "php", "postgresql", "prisma", "python", "ruby", "rust", "scala", "sql", "sqlite", "swagger", "swift", "typescript", "zig"]);
|
|
126
|
+
const _ae0 = "(\"bigquery\" | \"c\" | \"cpp\" | \"csharp\" | \"dart\" | \"dbml\" | \"go\" | \"java\" | \"javascript\" | \"kotlin\" | \"lua\" | \"markdown\" | \"matlab\" | \"mysql\" | \"objc\" | \"php\" | \"postgresql\" | \"prisma\" | \"python\" | \"ruby\" | \"rust\" | \"scala\" | \"sql\" | \"sqlite\" | \"swagger\" | \"swift\" | \"typescript\" | \"zig\")";
|
|
127
|
+
const _av1 = new Set(["column", "file", "function", "h1", "h2", "h3", "h4", "model", "operation", "property", "relation", "type"]);
|
|
128
|
+
const _ap2 = (input, _path, _exceptionable = true) => ("object" === typeof input["range"] && null !== input["range"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
129
|
+
method: "typia.assert",
|
|
130
|
+
path: _path + ".range",
|
|
131
|
+
expected: "IEvidenceSourceRange",
|
|
132
|
+
value: input["range"]
|
|
133
|
+
}, _errorFactory)) && _ao4(input["range"], _path + ".range", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
134
|
+
method: "typia.assert",
|
|
135
|
+
path: _path + ".range",
|
|
136
|
+
expected: "IEvidenceSourceRange",
|
|
137
|
+
value: input["range"]
|
|
138
|
+
}, _errorFactory);
|
|
139
|
+
const _ap3 = (input, _path, _exceptionable = true) => ("object" === typeof input["location"] && null !== input["location"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
140
|
+
method: "typia.assert",
|
|
141
|
+
path: _path + ".location",
|
|
142
|
+
expected: "IEvidenceSourceLocation",
|
|
143
|
+
value: input["location"]
|
|
144
|
+
}, _errorFactory)) && _ao3(input["location"], _path + ".location", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
145
|
+
method: "typia.assert",
|
|
146
|
+
path: _path + ".location",
|
|
147
|
+
expected: "IEvidenceSourceLocation",
|
|
148
|
+
value: input["location"]
|
|
149
|
+
}, _errorFactory);
|
|
150
|
+
const _ap4 = (input, _path, _exceptionable = true) => "string" === typeof input["hostId"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
151
|
+
method: "typia.assert",
|
|
152
|
+
path: _path + ".hostId",
|
|
153
|
+
expected: "string",
|
|
154
|
+
value: input["hostId"]
|
|
155
|
+
}, _errorFactory);
|
|
156
|
+
const _ap5 = (input, _path, _exceptionable = true) => "string" === typeof input["target"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
157
|
+
method: "typia.assert",
|
|
158
|
+
path: _path + ".target",
|
|
159
|
+
expected: "string",
|
|
160
|
+
value: input["target"]
|
|
161
|
+
}, _errorFactory);
|
|
162
|
+
const _ao0 = (input, _path, _exceptionable = true) => (1 === input.schemaVersion || _assertGuard_1._assertGuard(_exceptionable, {
|
|
163
|
+
method: "typia.assert",
|
|
164
|
+
path: _path + ".schemaVersion",
|
|
165
|
+
expected: "1",
|
|
166
|
+
value: input.schemaVersion
|
|
167
|
+
}, _errorFactory)) && ((Array.isArray(input.sources) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
168
|
+
method: "typia.assert",
|
|
169
|
+
path: _path + ".sources",
|
|
170
|
+
expected: "Array<IEvidenceSourceFile>",
|
|
171
|
+
value: input.sources
|
|
172
|
+
}, _errorFactory)) && input.sources.every((elem, _index20) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
173
|
+
method: "typia.assert",
|
|
174
|
+
path: _path + ".sources[" + _index20 + "]",
|
|
175
|
+
expected: "IEvidenceSourceFile",
|
|
176
|
+
value: elem
|
|
177
|
+
}, _errorFactory)) && _ao1(elem, _path + ".sources[" + _index20 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
178
|
+
method: "typia.assert",
|
|
179
|
+
path: _path + ".sources[" + _index20 + "]",
|
|
180
|
+
expected: "IEvidenceSourceFile",
|
|
181
|
+
value: elem
|
|
182
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
183
|
+
method: "typia.assert",
|
|
184
|
+
path: _path + ".sources",
|
|
185
|
+
expected: "Array<IEvidenceSourceFile>",
|
|
186
|
+
value: input.sources
|
|
187
|
+
}, _errorFactory)) && ((Array.isArray(input.annotationRanges) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
188
|
+
method: "typia.assert",
|
|
189
|
+
path: _path + ".annotationRanges",
|
|
190
|
+
expected: "Array<IEvidenceSourceLocation>",
|
|
191
|
+
value: input.annotationRanges
|
|
192
|
+
}, _errorFactory)) && input.annotationRanges.every((elem, _index21) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
193
|
+
method: "typia.assert",
|
|
194
|
+
path: _path + ".annotationRanges[" + _index21 + "]",
|
|
195
|
+
expected: "IEvidenceSourceLocation",
|
|
196
|
+
value: elem
|
|
197
|
+
}, _errorFactory)) && _ao3(elem, _path + ".annotationRanges[" + _index21 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
198
|
+
method: "typia.assert",
|
|
199
|
+
path: _path + ".annotationRanges[" + _index21 + "]",
|
|
200
|
+
expected: "IEvidenceSourceLocation",
|
|
201
|
+
value: elem
|
|
202
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
203
|
+
method: "typia.assert",
|
|
204
|
+
path: _path + ".annotationRanges",
|
|
205
|
+
expected: "Array<IEvidenceSourceLocation>",
|
|
206
|
+
value: input.annotationRanges
|
|
207
|
+
}, _errorFactory)) && ((Array.isArray(input.units) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
208
|
+
method: "typia.assert",
|
|
209
|
+
path: _path + ".units",
|
|
210
|
+
expected: "Array<IEvidenceUnit>",
|
|
211
|
+
value: input.units
|
|
212
|
+
}, _errorFactory)) && input.units.every((elem, _index22) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
213
|
+
method: "typia.assert",
|
|
214
|
+
path: _path + ".units[" + _index22 + "]",
|
|
215
|
+
expected: "IEvidenceUnit",
|
|
216
|
+
value: elem
|
|
217
|
+
}, _errorFactory)) && _ao6(elem, _path + ".units[" + _index22 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
218
|
+
method: "typia.assert",
|
|
219
|
+
path: _path + ".units[" + _index22 + "]",
|
|
220
|
+
expected: "IEvidenceUnit",
|
|
221
|
+
value: elem
|
|
222
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
223
|
+
method: "typia.assert",
|
|
224
|
+
path: _path + ".units",
|
|
225
|
+
expected: "Array<IEvidenceUnit>",
|
|
226
|
+
value: input.units
|
|
227
|
+
}, _errorFactory)) && ((Array.isArray(input.addresses) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
228
|
+
method: "typia.assert",
|
|
229
|
+
path: _path + ".addresses",
|
|
230
|
+
expected: "Array<IEvidencePublicAddress>",
|
|
231
|
+
value: input.addresses
|
|
232
|
+
}, _errorFactory)) && input.addresses.every((elem, _index23) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
233
|
+
method: "typia.assert",
|
|
234
|
+
path: _path + ".addresses[" + _index23 + "]",
|
|
235
|
+
expected: "IEvidencePublicAddress",
|
|
236
|
+
value: elem
|
|
237
|
+
}, _errorFactory)) && _ao9(elem, _path + ".addresses[" + _index23 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
238
|
+
method: "typia.assert",
|
|
239
|
+
path: _path + ".addresses[" + _index23 + "]",
|
|
240
|
+
expected: "IEvidencePublicAddress",
|
|
241
|
+
value: elem
|
|
242
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
243
|
+
method: "typia.assert",
|
|
244
|
+
path: _path + ".addresses",
|
|
245
|
+
expected: "Array<IEvidencePublicAddress>",
|
|
246
|
+
value: input.addresses
|
|
247
|
+
}, _errorFactory)) && ((Array.isArray(input.hosts) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
248
|
+
method: "typia.assert",
|
|
249
|
+
path: _path + ".hosts",
|
|
250
|
+
expected: "Array<IEvidenceHost>",
|
|
251
|
+
value: input.hosts
|
|
252
|
+
}, _errorFactory)) && input.hosts.every((elem, _index24) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
253
|
+
method: "typia.assert",
|
|
254
|
+
path: _path + ".hosts[" + _index24 + "]",
|
|
255
|
+
expected: "IEvidenceHost",
|
|
256
|
+
value: elem
|
|
257
|
+
}, _errorFactory)) && _ao10(elem, _path + ".hosts[" + _index24 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
258
|
+
method: "typia.assert",
|
|
259
|
+
path: _path + ".hosts[" + _index24 + "]",
|
|
260
|
+
expected: "IEvidenceHost",
|
|
261
|
+
value: elem
|
|
262
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
263
|
+
method: "typia.assert",
|
|
264
|
+
path: _path + ".hosts",
|
|
265
|
+
expected: "Array<IEvidenceHost>",
|
|
266
|
+
value: input.hosts
|
|
267
|
+
}, _errorFactory)) && ((Array.isArray(input.declarations) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
268
|
+
method: "typia.assert",
|
|
269
|
+
path: _path + ".declarations",
|
|
270
|
+
expected: "Array<IEvidenceDeclaration>",
|
|
271
|
+
value: input.declarations
|
|
272
|
+
}, _errorFactory)) && input.declarations.every((elem, _index25) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
273
|
+
method: "typia.assert",
|
|
274
|
+
path: _path + ".declarations[" + _index25 + "]",
|
|
275
|
+
expected: "IEvidenceDeclaration",
|
|
276
|
+
value: elem
|
|
277
|
+
}, _errorFactory)) && _ao11(elem, _path + ".declarations[" + _index25 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
278
|
+
method: "typia.assert",
|
|
279
|
+
path: _path + ".declarations[" + _index25 + "]",
|
|
280
|
+
expected: "IEvidenceDeclaration",
|
|
281
|
+
value: elem
|
|
282
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
283
|
+
method: "typia.assert",
|
|
284
|
+
path: _path + ".declarations",
|
|
285
|
+
expected: "Array<IEvidenceDeclaration>",
|
|
286
|
+
value: input.declarations
|
|
287
|
+
}, _errorFactory)) && ((Array.isArray(input.reviews) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
288
|
+
method: "typia.assert",
|
|
289
|
+
path: _path + ".reviews",
|
|
290
|
+
expected: "Array<IEvidenceReview>",
|
|
291
|
+
value: input.reviews
|
|
292
|
+
}, _errorFactory)) && input.reviews.every((elem, _index26) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
293
|
+
method: "typia.assert",
|
|
294
|
+
path: _path + ".reviews[" + _index26 + "]",
|
|
295
|
+
expected: "IEvidenceReview",
|
|
296
|
+
value: elem
|
|
297
|
+
}, _errorFactory)) && _ao12(elem, _path + ".reviews[" + _index26 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
298
|
+
method: "typia.assert",
|
|
299
|
+
path: _path + ".reviews[" + _index26 + "]",
|
|
300
|
+
expected: "IEvidenceReview",
|
|
301
|
+
value: elem
|
|
302
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
303
|
+
method: "typia.assert",
|
|
304
|
+
path: _path + ".reviews",
|
|
305
|
+
expected: "Array<IEvidenceReview>",
|
|
306
|
+
value: input.reviews
|
|
307
|
+
}, _errorFactory)) && ((Array.isArray(input.diagnostics) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
308
|
+
method: "typia.assert",
|
|
309
|
+
path: _path + ".diagnostics",
|
|
310
|
+
expected: "Array<IEvidenceDiagnostic>",
|
|
311
|
+
value: input.diagnostics
|
|
312
|
+
}, _errorFactory)) && input.diagnostics.every((elem, _index27) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
313
|
+
method: "typia.assert",
|
|
314
|
+
path: _path + ".diagnostics[" + _index27 + "]",
|
|
315
|
+
expected: "IEvidenceDiagnostic",
|
|
316
|
+
value: elem
|
|
317
|
+
}, _errorFactory)) && _ao13(elem, _path + ".diagnostics[" + _index27 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
318
|
+
method: "typia.assert",
|
|
319
|
+
path: _path + ".diagnostics[" + _index27 + "]",
|
|
320
|
+
expected: "IEvidenceDiagnostic",
|
|
321
|
+
value: elem
|
|
322
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
323
|
+
method: "typia.assert",
|
|
324
|
+
path: _path + ".diagnostics",
|
|
325
|
+
expected: "Array<IEvidenceDiagnostic>",
|
|
326
|
+
value: input.diagnostics
|
|
327
|
+
}, _errorFactory)) && ((Array.isArray(input.dependencies) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
328
|
+
method: "typia.assert",
|
|
329
|
+
path: _path + ".dependencies",
|
|
330
|
+
expected: "Array<IEvidenceSourceDependency>",
|
|
331
|
+
value: input.dependencies
|
|
332
|
+
}, _errorFactory)) && input.dependencies.every((elem, _index28) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
333
|
+
method: "typia.assert",
|
|
334
|
+
path: _path + ".dependencies[" + _index28 + "]",
|
|
335
|
+
expected: "IEvidenceSourceDependency",
|
|
336
|
+
value: elem
|
|
337
|
+
}, _errorFactory)) && _ao14(elem, _path + ".dependencies[" + _index28 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
338
|
+
method: "typia.assert",
|
|
339
|
+
path: _path + ".dependencies[" + _index28 + "]",
|
|
340
|
+
expected: "IEvidenceSourceDependency",
|
|
341
|
+
value: elem
|
|
342
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
343
|
+
method: "typia.assert",
|
|
344
|
+
path: _path + ".dependencies",
|
|
345
|
+
expected: "Array<IEvidenceSourceDependency>",
|
|
346
|
+
value: input.dependencies
|
|
347
|
+
}, _errorFactory)) && ("boolean" === typeof input.complete || _assertGuard_1._assertGuard(_exceptionable, {
|
|
348
|
+
method: "typia.assert",
|
|
349
|
+
path: _path + ".complete",
|
|
350
|
+
expected: "boolean",
|
|
351
|
+
value: input.complete
|
|
352
|
+
}, _errorFactory));
|
|
353
|
+
const _ao1 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("string" === typeof input.physicalPath || _assertGuard_1._assertGuard(_exceptionable, {
|
|
354
|
+
method: "typia.assert",
|
|
355
|
+
path: _path + ".physicalPath",
|
|
356
|
+
expected: "string",
|
|
357
|
+
value: input.physicalPath
|
|
358
|
+
}, _errorFactory)) && ("string" === typeof input.content || _assertGuard_1._assertGuard(_exceptionable, {
|
|
359
|
+
method: "typia.assert",
|
|
360
|
+
path: _path + ".content",
|
|
361
|
+
expected: "string",
|
|
362
|
+
value: input.content
|
|
363
|
+
}, _errorFactory)) && ("string" === typeof input.digest || _assertGuard_1._assertGuard(_exceptionable, {
|
|
364
|
+
method: "typia.assert",
|
|
365
|
+
path: _path + ".digest",
|
|
366
|
+
expected: "string",
|
|
367
|
+
value: input.digest
|
|
368
|
+
}, _errorFactory)) && ((Array.isArray(input.addresses) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
369
|
+
method: "typia.assert",
|
|
370
|
+
path: _path + ".addresses",
|
|
371
|
+
expected: "Array<IEvidenceSourceAddress>",
|
|
372
|
+
value: input.addresses
|
|
373
|
+
}, _errorFactory)) && input.addresses.every((elem, _index29) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
374
|
+
method: "typia.assert",
|
|
375
|
+
path: _path + ".addresses[" + _index29 + "]",
|
|
376
|
+
expected: "IEvidenceSourceAddress",
|
|
377
|
+
value: elem
|
|
378
|
+
}, _errorFactory)) && _ao2(elem, _path + ".addresses[" + _index29 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
379
|
+
method: "typia.assert",
|
|
380
|
+
path: _path + ".addresses[" + _index29 + "]",
|
|
381
|
+
expected: "IEvidenceSourceAddress",
|
|
382
|
+
value: elem
|
|
383
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
384
|
+
method: "typia.assert",
|
|
385
|
+
path: _path + ".addresses",
|
|
386
|
+
expected: "Array<IEvidenceSourceAddress>",
|
|
387
|
+
value: input.addresses
|
|
388
|
+
}, _errorFactory));
|
|
389
|
+
const _ao10 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && _ap1(input, _path, true && _exceptionable) && _ap2(input, _path, true && _exceptionable) && (undefined === input.origins || (Array.isArray(input.origins) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
390
|
+
method: "typia.assert",
|
|
391
|
+
path: _path + ".origins",
|
|
392
|
+
expected: "(Array<string> | undefined)",
|
|
393
|
+
value: input.origins
|
|
394
|
+
}, _errorFactory)) && input.origins.every((elem, _index35) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
395
|
+
method: "typia.assert",
|
|
396
|
+
path: _path + ".origins[" + _index35 + "]",
|
|
397
|
+
expected: "string",
|
|
398
|
+
value: elem
|
|
399
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
400
|
+
method: "typia.assert",
|
|
401
|
+
path: _path + ".origins",
|
|
402
|
+
expected: "(Array<string> | undefined)",
|
|
403
|
+
value: input.origins
|
|
404
|
+
}, _errorFactory)) && (undefined === input.siteId || "string" === typeof input.siteId || _assertGuard_1._assertGuard(_exceptionable, {
|
|
405
|
+
method: "typia.assert",
|
|
406
|
+
path: _path + ".siteId",
|
|
407
|
+
expected: "(string | undefined)",
|
|
408
|
+
value: input.siteId
|
|
409
|
+
}, _errorFactory)) && ((Array.isArray(input.unitIds) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
410
|
+
method: "typia.assert",
|
|
411
|
+
path: _path + ".unitIds",
|
|
412
|
+
expected: "Array<string>",
|
|
413
|
+
value: input.unitIds
|
|
414
|
+
}, _errorFactory)) && input.unitIds.every((elem, _index36) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
415
|
+
method: "typia.assert",
|
|
416
|
+
path: _path + ".unitIds[" + _index36 + "]",
|
|
417
|
+
expected: "string",
|
|
418
|
+
value: elem
|
|
419
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
420
|
+
method: "typia.assert",
|
|
421
|
+
path: _path + ".unitIds",
|
|
422
|
+
expected: "Array<string>",
|
|
423
|
+
value: input.unitIds
|
|
424
|
+
}, _errorFactory)) && ("attached" === input.attachment || "unattached" === input.attachment || "unsupported" === input.attachment || _assertGuard_1._assertGuard(_exceptionable, {
|
|
425
|
+
method: "typia.assert",
|
|
426
|
+
path: _path + ".attachment",
|
|
427
|
+
expected: "(\"attached\" | \"unattached\" | \"unsupported\")",
|
|
428
|
+
value: input.attachment
|
|
429
|
+
}, _errorFactory)) && (undefined === input.problem || "string" === typeof input.problem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
430
|
+
method: "typia.assert",
|
|
431
|
+
path: _path + ".problem",
|
|
432
|
+
expected: "(string | undefined)",
|
|
433
|
+
value: input.problem
|
|
434
|
+
}, _errorFactory));
|
|
435
|
+
const _ao11 = (input, _path, _exceptionable = true) => _ap4(input, _path, true && _exceptionable) && _ap5(input, _path, true && _exceptionable) && _ap3(input, _path, true && _exceptionable) && _ap0(input, _path, true && _exceptionable) && ("evidence" === input.kind || "evidenceExclude" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
436
|
+
method: "typia.assert",
|
|
437
|
+
path: _path + ".kind",
|
|
438
|
+
expected: "(\"evidence\" | \"evidenceExclude\")",
|
|
439
|
+
value: input.kind
|
|
440
|
+
}, _errorFactory)) && ("string" === typeof input.reason || _assertGuard_1._assertGuard(_exceptionable, {
|
|
441
|
+
method: "typia.assert",
|
|
442
|
+
path: _path + ".reason",
|
|
443
|
+
expected: "string",
|
|
444
|
+
value: input.reason
|
|
445
|
+
}, _errorFactory));
|
|
446
|
+
const _ao12 = (input, _path, _exceptionable = true) => _ap4(input, _path, true && _exceptionable) && _ap5(input, _path, true && _exceptionable) && _ap3(input, _path, true && _exceptionable) && _ap0(input, _path, true && _exceptionable) && ("evidence" === input.reviews || "evidenceExclude" === input.reviews || _assertGuard_1._assertGuard(_exceptionable, {
|
|
447
|
+
method: "typia.assert",
|
|
448
|
+
path: _path + ".reviews",
|
|
449
|
+
expected: "(\"evidence\" | \"evidenceExclude\")",
|
|
450
|
+
value: input.reviews
|
|
451
|
+
}, _errorFactory)) && (undefined === input.fingerprint || "string" === typeof input.fingerprint || _assertGuard_1._assertGuard(_exceptionable, {
|
|
452
|
+
method: "typia.assert",
|
|
453
|
+
path: _path + ".fingerprint",
|
|
454
|
+
expected: "(string | undefined)",
|
|
455
|
+
value: input.fingerprint
|
|
456
|
+
}, _errorFactory)) && ("string" === typeof input.description || _assertGuard_1._assertGuard(_exceptionable, {
|
|
457
|
+
method: "typia.assert",
|
|
458
|
+
path: _path + ".description",
|
|
459
|
+
expected: "string",
|
|
460
|
+
value: input.description
|
|
461
|
+
}, _errorFactory));
|
|
462
|
+
const _ao13 = (input, _path, _exceptionable = true) => ("string" === typeof input.code || _assertGuard_1._assertGuard(_exceptionable, {
|
|
463
|
+
method: "typia.assert",
|
|
464
|
+
path: _path + ".code",
|
|
465
|
+
expected: "string",
|
|
466
|
+
value: input.code
|
|
467
|
+
}, _errorFactory)) && ("error" === input.severity || "warning" === input.severity || _assertGuard_1._assertGuard(_exceptionable, {
|
|
468
|
+
method: "typia.assert",
|
|
469
|
+
path: _path + ".severity",
|
|
470
|
+
expected: "(\"error\" | \"warning\")",
|
|
471
|
+
value: input.severity
|
|
472
|
+
}, _errorFactory)) && ("string" === typeof input.message || _assertGuard_1._assertGuard(_exceptionable, {
|
|
473
|
+
method: "typia.assert",
|
|
474
|
+
path: _path + ".message",
|
|
475
|
+
expected: "string",
|
|
476
|
+
value: input.message
|
|
477
|
+
}, _errorFactory)) && ("string" === typeof input.repair || _assertGuard_1._assertGuard(_exceptionable, {
|
|
478
|
+
method: "typia.assert",
|
|
479
|
+
path: _path + ".repair",
|
|
480
|
+
expected: "string",
|
|
481
|
+
value: input.repair
|
|
482
|
+
}, _errorFactory)) && (undefined === input.location || ("object" === typeof input.location && null !== input.location || _assertGuard_1._assertGuard(_exceptionable, {
|
|
483
|
+
method: "typia.assert",
|
|
484
|
+
path: _path + ".location",
|
|
485
|
+
expected: "(IEvidenceSourceLocation | undefined)",
|
|
486
|
+
value: input.location
|
|
487
|
+
}, _errorFactory)) && _ao3(input.location, _path + ".location", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
488
|
+
method: "typia.assert",
|
|
489
|
+
path: _path + ".location",
|
|
490
|
+
expected: "(IEvidenceSourceLocation | undefined)",
|
|
491
|
+
value: input.location
|
|
492
|
+
}, _errorFactory)) && (undefined === input.claim || "number" === typeof input.claim || _assertGuard_1._assertGuard(_exceptionable, {
|
|
493
|
+
method: "typia.assert",
|
|
494
|
+
path: _path + ".claim",
|
|
495
|
+
expected: "(number | undefined)",
|
|
496
|
+
value: input.claim
|
|
497
|
+
}, _errorFactory)) && (undefined === input.reference || "number" === typeof input.reference || _assertGuard_1._assertGuard(_exceptionable, {
|
|
498
|
+
method: "typia.assert",
|
|
499
|
+
path: _path + ".reference",
|
|
500
|
+
expected: "(number | undefined)",
|
|
501
|
+
value: input.reference
|
|
502
|
+
}, _errorFactory)) && (undefined === input.hostId || "string" === typeof input.hostId || _assertGuard_1._assertGuard(_exceptionable, {
|
|
503
|
+
method: "typia.assert",
|
|
504
|
+
path: _path + ".hostId",
|
|
505
|
+
expected: "(string | undefined)",
|
|
506
|
+
value: input.hostId
|
|
507
|
+
}, _errorFactory)) && (undefined === input.target || "string" === typeof input.target || _assertGuard_1._assertGuard(_exceptionable, {
|
|
508
|
+
method: "typia.assert",
|
|
509
|
+
path: _path + ".target",
|
|
510
|
+
expected: "(string | undefined)",
|
|
511
|
+
value: input.target
|
|
512
|
+
}, _errorFactory));
|
|
513
|
+
const _ao14 = (input, _path, _exceptionable = true) => ("string" === typeof input.path || _assertGuard_1._assertGuard(_exceptionable, {
|
|
514
|
+
method: "typia.assert",
|
|
515
|
+
path: _path + ".path",
|
|
516
|
+
expected: "string",
|
|
517
|
+
value: input.path
|
|
518
|
+
}, _errorFactory)) && ("boolean" === typeof input.recursive || _assertGuard_1._assertGuard(_exceptionable, {
|
|
519
|
+
method: "typia.assert",
|
|
520
|
+
path: _path + ".recursive",
|
|
521
|
+
expected: "boolean",
|
|
522
|
+
value: input.recursive
|
|
523
|
+
}, _errorFactory));
|
|
524
|
+
const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.absolute || _assertGuard_1._assertGuard(_exceptionable, {
|
|
525
|
+
method: "typia.assert",
|
|
526
|
+
path: _path + ".absolute",
|
|
527
|
+
expected: "string",
|
|
528
|
+
value: input.absolute
|
|
529
|
+
}, _errorFactory)) && ("string" === typeof input.relative || _assertGuard_1._assertGuard(_exceptionable, {
|
|
530
|
+
method: "typia.assert",
|
|
531
|
+
path: _path + ".relative",
|
|
532
|
+
expected: "string",
|
|
533
|
+
value: input.relative
|
|
534
|
+
}, _errorFactory)) && ("string" === typeof input.display || _assertGuard_1._assertGuard(_exceptionable, {
|
|
535
|
+
method: "typia.assert",
|
|
536
|
+
path: _path + ".display",
|
|
537
|
+
expected: "string",
|
|
538
|
+
value: input.display
|
|
539
|
+
}, _errorFactory)) && (undefined === input.selected || "boolean" === typeof input.selected || _assertGuard_1._assertGuard(_exceptionable, {
|
|
540
|
+
method: "typia.assert",
|
|
541
|
+
path: _path + ".selected",
|
|
542
|
+
expected: "(boolean | undefined)",
|
|
543
|
+
value: input.selected
|
|
544
|
+
}, _errorFactory));
|
|
545
|
+
const _ao3 = (input, _path, _exceptionable = true) => _ap1(input, _path, true && _exceptionable) && (undefined === input.range || ("object" === typeof input.range && null !== input.range || _assertGuard_1._assertGuard(_exceptionable, {
|
|
546
|
+
method: "typia.assert",
|
|
547
|
+
path: _path + ".range",
|
|
548
|
+
expected: "(IEvidenceSourceRange | undefined)",
|
|
549
|
+
value: input.range
|
|
550
|
+
}, _errorFactory)) && _ao4(input.range, _path + ".range", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
551
|
+
method: "typia.assert",
|
|
552
|
+
path: _path + ".range",
|
|
553
|
+
expected: "(IEvidenceSourceRange | undefined)",
|
|
554
|
+
value: input.range
|
|
555
|
+
}, _errorFactory));
|
|
556
|
+
const _ao4 = (input, _path, _exceptionable = true) => (("object" === typeof input.start && null !== input.start || _assertGuard_1._assertGuard(_exceptionable, {
|
|
557
|
+
method: "typia.assert",
|
|
558
|
+
path: _path + ".start",
|
|
559
|
+
expected: "IEvidenceSourcePosition",
|
|
560
|
+
value: input.start
|
|
561
|
+
}, _errorFactory)) && _ao5(input.start, _path + ".start", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
562
|
+
method: "typia.assert",
|
|
563
|
+
path: _path + ".start",
|
|
564
|
+
expected: "IEvidenceSourcePosition",
|
|
565
|
+
value: input.start
|
|
566
|
+
}, _errorFactory)) && (("object" === typeof input.end && null !== input.end || _assertGuard_1._assertGuard(_exceptionable, {
|
|
567
|
+
method: "typia.assert",
|
|
568
|
+
path: _path + ".end",
|
|
569
|
+
expected: "IEvidenceSourcePosition",
|
|
570
|
+
value: input.end
|
|
571
|
+
}, _errorFactory)) && _ao5(input.end, _path + ".end", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
572
|
+
method: "typia.assert",
|
|
573
|
+
path: _path + ".end",
|
|
574
|
+
expected: "IEvidenceSourcePosition",
|
|
575
|
+
value: input.end
|
|
576
|
+
}, _errorFactory));
|
|
577
|
+
const _ao5 = (input, _path, _exceptionable = true) => ("number" === typeof input.offset || _assertGuard_1._assertGuard(_exceptionable, {
|
|
578
|
+
method: "typia.assert",
|
|
579
|
+
path: _path + ".offset",
|
|
580
|
+
expected: "number",
|
|
581
|
+
value: input.offset
|
|
582
|
+
}, _errorFactory)) && ("number" === typeof input.line || _assertGuard_1._assertGuard(_exceptionable, {
|
|
583
|
+
method: "typia.assert",
|
|
584
|
+
path: _path + ".line",
|
|
585
|
+
expected: "number",
|
|
586
|
+
value: input.line
|
|
587
|
+
}, _errorFactory)) && ("number" === typeof input.column || _assertGuard_1._assertGuard(_exceptionable, {
|
|
588
|
+
method: "typia.assert",
|
|
589
|
+
path: _path + ".column",
|
|
590
|
+
expected: "number",
|
|
591
|
+
value: input.column
|
|
592
|
+
}, _errorFactory));
|
|
593
|
+
const _ao6 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && (undefined === input.parentId || "string" === typeof input.parentId || _assertGuard_1._assertGuard(_exceptionable, {
|
|
594
|
+
method: "typia.assert",
|
|
595
|
+
path: _path + ".parentId",
|
|
596
|
+
expected: "(string | undefined)",
|
|
597
|
+
value: input.parentId
|
|
598
|
+
}, _errorFactory)) && (true === _av0.has(input.type) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
599
|
+
method: "typia.assert",
|
|
600
|
+
path: _path + ".type",
|
|
601
|
+
expected: _ae0,
|
|
602
|
+
value: input.type
|
|
603
|
+
}, _errorFactory)) && (true === _av1.has(input.symbol) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
604
|
+
method: "typia.assert",
|
|
605
|
+
path: _path + ".symbol",
|
|
606
|
+
expected: "(\"column\" | \"file\" | \"function\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"model\" | \"operation\" | \"property\" | \"relation\" | \"type\")",
|
|
607
|
+
value: input.symbol
|
|
608
|
+
}, _errorFactory)) && ((Array.isArray(input.identity) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
609
|
+
method: "typia.assert",
|
|
610
|
+
path: _path + ".identity",
|
|
611
|
+
expected: "Array<string>",
|
|
612
|
+
value: input.identity
|
|
613
|
+
}, _errorFactory)) && input.identity.every((elem, _index30) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
614
|
+
method: "typia.assert",
|
|
615
|
+
path: _path + ".identity[" + _index30 + "]",
|
|
616
|
+
expected: "string",
|
|
617
|
+
value: elem
|
|
618
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
619
|
+
method: "typia.assert",
|
|
620
|
+
path: _path + ".identity",
|
|
621
|
+
expected: "Array<string>",
|
|
622
|
+
value: input.identity
|
|
623
|
+
}, _errorFactory)) && ("string" === typeof input.name || _assertGuard_1._assertGuard(_exceptionable, {
|
|
624
|
+
method: "typia.assert",
|
|
625
|
+
path: _path + ".name",
|
|
626
|
+
expected: "string",
|
|
627
|
+
value: input.name
|
|
628
|
+
}, _errorFactory)) && (undefined === input.contentDigest || "string" === typeof input.contentDigest || _assertGuard_1._assertGuard(_exceptionable, {
|
|
629
|
+
method: "typia.assert",
|
|
630
|
+
path: _path + ".contentDigest",
|
|
631
|
+
expected: "(string | undefined)",
|
|
632
|
+
value: input.contentDigest
|
|
633
|
+
}, _errorFactory)) && ((Array.isArray(input.sites) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
634
|
+
method: "typia.assert",
|
|
635
|
+
path: _path + ".sites",
|
|
636
|
+
expected: "Array<IEvidenceUnitSite>",
|
|
637
|
+
value: input.sites
|
|
638
|
+
}, _errorFactory)) && input.sites.every((elem, _index31) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
639
|
+
method: "typia.assert",
|
|
640
|
+
path: _path + ".sites[" + _index31 + "]",
|
|
641
|
+
expected: "IEvidenceUnitSite",
|
|
642
|
+
value: elem
|
|
643
|
+
}, _errorFactory)) && _ao7(elem, _path + ".sites[" + _index31 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
644
|
+
method: "typia.assert",
|
|
645
|
+
path: _path + ".sites[" + _index31 + "]",
|
|
646
|
+
expected: "IEvidenceUnitSite",
|
|
647
|
+
value: elem
|
|
648
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
649
|
+
method: "typia.assert",
|
|
650
|
+
path: _path + ".sites",
|
|
651
|
+
expected: "Array<IEvidenceUnitSite>",
|
|
652
|
+
value: input.sites
|
|
653
|
+
}, _errorFactory)) && ((Array.isArray(input.withdrawals) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
654
|
+
method: "typia.assert",
|
|
655
|
+
path: _path + ".withdrawals",
|
|
656
|
+
expected: "Array<IEvidenceWithdrawal>",
|
|
657
|
+
value: input.withdrawals
|
|
658
|
+
}, _errorFactory)) && input.withdrawals.every((elem, _index32) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
659
|
+
method: "typia.assert",
|
|
660
|
+
path: _path + ".withdrawals[" + _index32 + "]",
|
|
661
|
+
expected: "IEvidenceWithdrawal",
|
|
662
|
+
value: elem
|
|
663
|
+
}, _errorFactory)) && _ao8(elem, _path + ".withdrawals[" + _index32 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
664
|
+
method: "typia.assert",
|
|
665
|
+
path: _path + ".withdrawals[" + _index32 + "]",
|
|
666
|
+
expected: "IEvidenceWithdrawal",
|
|
667
|
+
value: elem
|
|
668
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
669
|
+
method: "typia.assert",
|
|
670
|
+
path: _path + ".withdrawals",
|
|
671
|
+
expected: "Array<IEvidenceWithdrawal>",
|
|
672
|
+
value: input.withdrawals
|
|
673
|
+
}, _errorFactory));
|
|
674
|
+
const _ao7 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && _ap1(input, _path, true && _exceptionable) && _ap2(input, _path, true && _exceptionable) && ((Array.isArray(input.content) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
675
|
+
method: "typia.assert",
|
|
676
|
+
path: _path + ".content",
|
|
677
|
+
expected: "Array<IEvidenceSourceRange>",
|
|
678
|
+
value: input.content
|
|
679
|
+
}, _errorFactory)) && input.content.every((elem, _index33) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
680
|
+
method: "typia.assert",
|
|
681
|
+
path: _path + ".content[" + _index33 + "]",
|
|
682
|
+
expected: "IEvidenceSourceRange",
|
|
683
|
+
value: elem
|
|
684
|
+
}, _errorFactory)) && _ao4(elem, _path + ".content[" + _index33 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
685
|
+
method: "typia.assert",
|
|
686
|
+
path: _path + ".content[" + _index33 + "]",
|
|
687
|
+
expected: "IEvidenceSourceRange",
|
|
688
|
+
value: elem
|
|
689
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
690
|
+
method: "typia.assert",
|
|
691
|
+
path: _path + ".content",
|
|
692
|
+
expected: "Array<IEvidenceSourceRange>",
|
|
693
|
+
value: input.content
|
|
694
|
+
}, _errorFactory));
|
|
695
|
+
const _ao8 = (input, _path, _exceptionable = true) => ("hidden" === input.tag || "ignore" === input.tag || "internal" === input.tag || _assertGuard_1._assertGuard(_exceptionable, {
|
|
696
|
+
method: "typia.assert",
|
|
697
|
+
path: _path + ".tag",
|
|
698
|
+
expected: "(\"hidden\" | \"ignore\" | \"internal\")",
|
|
699
|
+
value: input.tag
|
|
700
|
+
}, _errorFactory)) && _ap3(input, _path, true && _exceptionable);
|
|
701
|
+
const _ao9 = (input, _path, _exceptionable = true) => _ap1(input, _path, true && _exceptionable) && ((Array.isArray(input.segments) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
702
|
+
method: "typia.assert",
|
|
703
|
+
path: _path + ".segments",
|
|
704
|
+
expected: "Array<string>",
|
|
705
|
+
value: input.segments
|
|
706
|
+
}, _errorFactory)) && input.segments.every((elem, _index34) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
707
|
+
method: "typia.assert",
|
|
708
|
+
path: _path + ".segments[" + _index34 + "]",
|
|
709
|
+
expected: "string",
|
|
710
|
+
value: elem
|
|
711
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
712
|
+
method: "typia.assert",
|
|
713
|
+
path: _path + ".segments",
|
|
714
|
+
expected: "Array<string>",
|
|
715
|
+
value: input.segments
|
|
716
|
+
}, _errorFactory)) && ("string" === typeof input.unitId || _assertGuard_1._assertGuard(_exceptionable, {
|
|
717
|
+
method: "typia.assert",
|
|
718
|
+
path: _path + ".unitId",
|
|
719
|
+
expected: "string",
|
|
720
|
+
value: input.unitId
|
|
721
|
+
}, _errorFactory));
|
|
722
|
+
const _io0 = input => 1 === input.schemaVersion && (Array.isArray(input.sources) && input.sources.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (Array.isArray(input.annotationRanges) && input.annotationRanges.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (Array.isArray(input.units) && input.units.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && _io9(elem))) && (Array.isArray(input.hosts) && input.hosts.every(elem => "object" === typeof elem && null !== elem && _io10(elem))) && (Array.isArray(input.declarations) && input.declarations.every(elem => "object" === typeof elem && null !== elem && _io11(elem))) && (Array.isArray(input.reviews) && input.reviews.every(elem => "object" === typeof elem && null !== elem && _io12(elem))) && (Array.isArray(input.diagnostics) && input.diagnostics.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (Array.isArray(input.dependencies) && input.dependencies.every(elem => "object" === typeof elem && null !== elem && _io14(elem))) && "boolean" === typeof input.complete;
|
|
723
|
+
const _io1 = input => _ip0(input) && "string" === typeof input.physicalPath && "string" === typeof input.content && "string" === typeof input.digest && (Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && _io2(elem)));
|
|
724
|
+
const _io10 = input => _ip0(input) && _ip1(input) && _ip2(input) && (undefined === input.origins || Array.isArray(input.origins) && input.origins.every(elem => "string" === typeof elem)) && (undefined === input.siteId || "string" === typeof input.siteId) && (Array.isArray(input.unitIds) && input.unitIds.every(elem => "string" === typeof elem)) && ("attached" === input.attachment || "unattached" === input.attachment || "unsupported" === input.attachment) && (undefined === input.problem || "string" === typeof input.problem);
|
|
725
|
+
const _io11 = input => _ip4(input) && _ip5(input) && _ip3(input) && _ip0(input) && ("evidence" === input.kind || "evidenceExclude" === input.kind) && "string" === typeof input.reason;
|
|
726
|
+
const _io12 = input => _ip4(input) && _ip5(input) && _ip3(input) && _ip0(input) && ("evidence" === input.reviews || "evidenceExclude" === input.reviews) && (undefined === input.fingerprint || "string" === typeof input.fingerprint) && "string" === typeof input.description;
|
|
727
|
+
const _io13 = input => "string" === typeof input.code && ("error" === input.severity || "warning" === input.severity) && "string" === typeof input.message && "string" === typeof input.repair && (undefined === input.location || "object" === typeof input.location && null !== input.location && _io3(input.location)) && (undefined === input.claim || "number" === typeof input.claim) && (undefined === input.reference || "number" === typeof input.reference) && (undefined === input.hostId || "string" === typeof input.hostId) && (undefined === input.target || "string" === typeof input.target);
|
|
728
|
+
const _io14 = input => "string" === typeof input.path && "boolean" === typeof input.recursive;
|
|
729
|
+
const _io2 = input => "string" === typeof input.absolute && "string" === typeof input.relative && "string" === typeof input.display && (undefined === input.selected || "boolean" === typeof input.selected);
|
|
730
|
+
const _io3 = input => _ip1(input) && (undefined === input.range || "object" === typeof input.range && null !== input.range && _io4(input.range));
|
|
731
|
+
const _io4 = input => "object" === typeof input.start && null !== input.start && _io5(input.start) && ("object" === typeof input.end && null !== input.end && _io5(input.end));
|
|
732
|
+
const _io5 = input => "number" === typeof input.offset && "number" === typeof input.line && "number" === typeof input.column;
|
|
733
|
+
const _io6 = input => _ip0(input) && (undefined === input.parentId || "string" === typeof input.parentId) && true === _iv0.has(input.type) && true === _iv1.has(input.symbol) && (Array.isArray(input.identity) && input.identity.every(elem => "string" === typeof elem)) && "string" === typeof input.name && (undefined === input.contentDigest || "string" === typeof input.contentDigest) && (Array.isArray(input.sites) && input.sites.every(elem => "object" === typeof elem && null !== elem && _io7(elem))) && (Array.isArray(input.withdrawals) && input.withdrawals.every(elem => "object" === typeof elem && null !== elem && _io8(elem)));
|
|
734
|
+
const _io7 = input => _ip0(input) && _ip1(input) && _ip2(input) && (Array.isArray(input.content) && input.content.every(elem => "object" === typeof elem && null !== elem && _io4(elem)));
|
|
735
|
+
const _io8 = input => ("hidden" === input.tag || "ignore" === input.tag || "internal" === input.tag) && _ip3(input);
|
|
736
|
+
const _io9 = input => _ip1(input) && (Array.isArray(input.segments) && input.segments.every(elem => "string" === typeof elem)) && "string" === typeof input.unitId;
|
|
737
|
+
const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && _io0(elem));
|
|
738
|
+
let _errorFactory;
|
|
739
|
+
return (input, errorFactory) => {
|
|
740
|
+
if (false === __is(input)) {
|
|
741
|
+
_errorFactory = errorFactory;
|
|
742
|
+
((input, _path, _exceptionable = true) => (Array.isArray(input) || _assertGuard_1._assertGuard(true, {
|
|
743
|
+
method: "typia.assert",
|
|
744
|
+
path: _path + "",
|
|
745
|
+
expected: "Array<IEvidenceInventory>",
|
|
746
|
+
value: input
|
|
747
|
+
}, _errorFactory)) && input.every((elem, _index19) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(true, {
|
|
748
|
+
method: "typia.assert",
|
|
749
|
+
path: _path + "[" + _index19 + "]",
|
|
750
|
+
expected: "IEvidenceInventory",
|
|
751
|
+
value: elem
|
|
752
|
+
}, _errorFactory)) && _ao0(elem, _path + "[" + _index19 + "]", true) || _assertGuard_1._assertGuard(true, {
|
|
753
|
+
method: "typia.assert",
|
|
754
|
+
path: _path + "[" + _index19 + "]",
|
|
755
|
+
expected: "IEvidenceInventory",
|
|
756
|
+
value: elem
|
|
757
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(true, {
|
|
758
|
+
method: "typia.assert",
|
|
759
|
+
path: _path + "",
|
|
760
|
+
expected: "Array<IEvidenceInventory>",
|
|
761
|
+
value: input
|
|
762
|
+
}, _errorFactory))(input, "$input", true);
|
|
763
|
+
}
|
|
764
|
+
return input;
|
|
765
|
+
};
|
|
766
|
+
})()(inventories)));
|
|
767
|
+
for (const unit of this.data.units)
|
|
768
|
+
this.units.set(unit.id, unit);
|
|
769
|
+
this.validate();
|
|
770
|
+
this.normalize();
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* Returns a serializable copy of the reconciled inventory.
|
|
774
|
+
*
|
|
775
|
+
* The copy includes diagnostics and incomplete records. Callers may inspect or
|
|
776
|
+
* mutate it without changing future selections or resolutions on this index.
|
|
777
|
+
*/
|
|
778
|
+
snapshot() {
|
|
779
|
+
return structuredClone(this.data);
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Serializes the normalized inventory in stable schema order.
|
|
783
|
+
*
|
|
784
|
+
* Construction has already reconciled and sorted the collections. Serializing
|
|
785
|
+
* therefore preserves deterministic output without changing selection state or
|
|
786
|
+
* requiring callers to normalize a snapshot themselves.
|
|
787
|
+
*/
|
|
788
|
+
serialize() {
|
|
789
|
+
return (() => {
|
|
790
|
+
const _ip0 = input => "string" === typeof input["id"];
|
|
791
|
+
const _ip1 = input => "string" === typeof input["file"];
|
|
792
|
+
const _iv0 = new Set(["bigquery", "c", "cpp", "csharp", "dart", "dbml", "go", "java", "javascript", "kotlin", "lua", "markdown", "matlab", "mysql", "objc", "php", "postgresql", "prisma", "python", "ruby", "rust", "scala", "sql", "sqlite", "swagger", "swift", "typescript", "zig"]);
|
|
793
|
+
const _iv1 = new Set(["column", "file", "function", "h1", "h2", "h3", "h4", "model", "operation", "property", "relation", "type"]);
|
|
794
|
+
const _ip2 = input => "object" === typeof input["range"] && null !== input["range"] && _io4(input["range"]);
|
|
795
|
+
const _ip3 = input => "object" === typeof input["location"] && null !== input["location"] && _io3(input["location"]);
|
|
796
|
+
const _ip4 = input => "string" === typeof input["hostId"];
|
|
797
|
+
const _ip5 = input => "string" === typeof input["target"];
|
|
798
|
+
const _so0 = input => `{"schemaVersion":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.schemaVersion))},"sources":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.sources, elem => _so1(elem))}]`},"annotationRanges":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.annotationRanges, elem => _so3(elem))}]`},"units":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.units, elem => _so6(elem))}]`},"addresses":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.addresses, elem => _so9(elem))}]`},"hosts":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.hosts, elem => _so10(elem))}]`},"declarations":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.declarations, elem => _so11(elem))}]`},"reviews":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.reviews, elem => _so12(elem))}]`},"diagnostics":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.diagnostics, elem => _so13(elem))}]`},"dependencies":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.dependencies, elem => _so14(elem))}]`},"complete":${String(input.complete)}}`;
|
|
799
|
+
const _so1 = input => `{"id":${_jsonStringifyString_1._jsonStringifyString(input.id)},"physicalPath":${_jsonStringifyString_1._jsonStringifyString(input.physicalPath)},"content":${_jsonStringifyString_1._jsonStringifyString(input.content)},"digest":${_jsonStringifyString_1._jsonStringifyString(input.digest)},"addresses":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.addresses, elem => _so2(elem))}]`}}`;
|
|
800
|
+
const _so10 = input => `{${_jsonStringifyTail_1._jsonStringifyTail(`"id":${_jsonStringifyString_1._jsonStringifyString(input.id)},"file":${_jsonStringifyString_1._jsonStringifyString(input.file)},"range":${_so4(input.range)},${undefined === input.origins ? "" : `"origins":${undefined !== input.origins ? `[${_jsonStringifyArray_1._jsonStringifyArray(input.origins, elem => _jsonStringifyString_1._jsonStringifyString(elem))}]` : undefined},`}${undefined === input.siteId ? "" : `"siteId":${undefined !== input.siteId ? _jsonStringifyString_1._jsonStringifyString(input.siteId) : undefined},`}"unitIds":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.unitIds, elem => _jsonStringifyString_1._jsonStringifyString(elem))}]`},"attachment":${"\"" + input.attachment + "\""},${undefined === input.problem ? "" : `"problem":${undefined !== input.problem ? _jsonStringifyString_1._jsonStringifyString(input.problem) : undefined}`}`)}}`;
|
|
801
|
+
const _so11 = input => `{"hostId":${_jsonStringifyString_1._jsonStringifyString(input.hostId)},"target":${_jsonStringifyString_1._jsonStringifyString(input.target)},"location":${_so3(input.location)},"id":${_jsonStringifyString_1._jsonStringifyString(input.id)},"kind":${"\"" + input.kind + "\""},"reason":${_jsonStringifyString_1._jsonStringifyString(input.reason)}}`;
|
|
802
|
+
const _so12 = input => `{"hostId":${_jsonStringifyString_1._jsonStringifyString(input.hostId)},"target":${_jsonStringifyString_1._jsonStringifyString(input.target)},"location":${_so3(input.location)},"id":${_jsonStringifyString_1._jsonStringifyString(input.id)},"reviews":${"\"" + input.reviews + "\""},${undefined === input.fingerprint ? "" : `"fingerprint":${undefined !== input.fingerprint ? _jsonStringifyString_1._jsonStringifyString(input.fingerprint) : undefined},`}"description":${_jsonStringifyString_1._jsonStringifyString(input.description)}}`;
|
|
803
|
+
const _so13 = input => `{${_jsonStringifyTail_1._jsonStringifyTail(`"code":${_jsonStringifyString_1._jsonStringifyString(input.code)},"severity":${"\"" + input.severity + "\""},"message":${_jsonStringifyString_1._jsonStringifyString(input.message)},"repair":${_jsonStringifyString_1._jsonStringifyString(input.repair)},${undefined === input.location ? "" : `"location":${undefined !== input.location ? _so3(input.location) : undefined},`}${undefined === input.claim ? "" : `"claim":${undefined !== input.claim ? String(_jsonStringifyNumber_1._jsonStringifyNumber(input.claim)) : undefined},`}${undefined === input.reference ? "" : `"reference":${undefined !== input.reference ? String(_jsonStringifyNumber_1._jsonStringifyNumber(input.reference)) : undefined},`}${undefined === input.hostId ? "" : `"hostId":${undefined !== input.hostId ? _jsonStringifyString_1._jsonStringifyString(input.hostId) : undefined},`}${undefined === input.target ? "" : `"target":${undefined !== input.target ? _jsonStringifyString_1._jsonStringifyString(input.target) : undefined}`}`)}}`;
|
|
804
|
+
const _so14 = input => `{"path":${_jsonStringifyString_1._jsonStringifyString(input.path)},"recursive":${String(input.recursive)}}`;
|
|
805
|
+
const _so2 = input => `{${_jsonStringifyTail_1._jsonStringifyTail(`"absolute":${_jsonStringifyString_1._jsonStringifyString(input.absolute)},"relative":${_jsonStringifyString_1._jsonStringifyString(input.relative)},"display":${_jsonStringifyString_1._jsonStringifyString(input.display)},${undefined === input.selected ? "" : `"selected":${undefined !== input.selected ? String(input.selected) : undefined}`}`)}}`;
|
|
806
|
+
const _so3 = input => `{${_jsonStringifyTail_1._jsonStringifyTail(`"file":${_jsonStringifyString_1._jsonStringifyString(input.file)},${undefined === input.range ? "" : `"range":${undefined !== input.range ? _so4(input.range) : undefined}`}`)}}`;
|
|
807
|
+
const _so4 = input => `{"start":${_so5(input.start)},"end":${_so5(input.end)}}`;
|
|
808
|
+
const _so5 = input => `{"offset":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.offset))},"line":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.line))},"column":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.column))}}`;
|
|
809
|
+
const _so6 = input => `{"id":${_jsonStringifyString_1._jsonStringifyString(input.id)},${undefined === input.parentId ? "" : `"parentId":${undefined !== input.parentId ? _jsonStringifyString_1._jsonStringifyString(input.parentId) : undefined},`}"type":${"\"" + input.type + "\""},"symbol":${"\"" + input.symbol + "\""},"identity":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.identity, elem => _jsonStringifyString_1._jsonStringifyString(elem))}]`},"name":${_jsonStringifyString_1._jsonStringifyString(input.name)},${undefined === input.contentDigest ? "" : `"contentDigest":${undefined !== input.contentDigest ? _jsonStringifyString_1._jsonStringifyString(input.contentDigest) : undefined},`}"sites":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.sites, elem => _so7(elem))}]`},"withdrawals":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.withdrawals, elem => _so8(elem))}]`}}`;
|
|
810
|
+
const _so7 = input => `{"id":${_jsonStringifyString_1._jsonStringifyString(input.id)},"file":${_jsonStringifyString_1._jsonStringifyString(input.file)},"range":${_so4(input.range)},"content":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.content, elem => _so4(elem))}]`}}`;
|
|
811
|
+
const _so8 = input => `{"tag":${"\"" + input.tag + "\""},"location":${_so3(input.location)}}`;
|
|
812
|
+
const _so9 = input => `{"file":${_jsonStringifyString_1._jsonStringifyString(input.file)},"segments":${`[${_jsonStringifyArray_1._jsonStringifyArray(input.segments, elem => _jsonStringifyString_1._jsonStringifyString(elem))}]`},"unitId":${_jsonStringifyString_1._jsonStringifyString(input.unitId)}}`;
|
|
813
|
+
const _io1 = input => _ip0(input) && "string" === typeof input.physicalPath && "string" === typeof input.content && "string" === typeof input.digest && (Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && _io2(elem)));
|
|
814
|
+
const _io2 = input => "string" === typeof input.absolute && "string" === typeof input.relative && "string" === typeof input.display && (undefined === input.selected || "boolean" === typeof input.selected);
|
|
815
|
+
const _io3 = input => _ip1(input) && (undefined === input.range || "object" === typeof input.range && null !== input.range && _io4(input.range));
|
|
816
|
+
const _io4 = input => "object" === typeof input.start && null !== input.start && _io5(input.start) && ("object" === typeof input.end && null !== input.end && _io5(input.end));
|
|
817
|
+
const _io5 = input => "number" === typeof input.offset && "number" === typeof input.line && "number" === typeof input.column;
|
|
818
|
+
const _io6 = input => _ip0(input) && (undefined === input.parentId || "string" === typeof input.parentId) && true === _iv0.has(input.type) && true === _iv1.has(input.symbol) && (Array.isArray(input.identity) && input.identity.every(elem => "string" === typeof elem)) && "string" === typeof input.name && (undefined === input.contentDigest || "string" === typeof input.contentDigest) && (Array.isArray(input.sites) && input.sites.every(elem => "object" === typeof elem && null !== elem && _io7(elem))) && (Array.isArray(input.withdrawals) && input.withdrawals.every(elem => "object" === typeof elem && null !== elem && _io8(elem)));
|
|
819
|
+
const _io7 = input => _ip0(input) && _ip1(input) && _ip2(input) && (Array.isArray(input.content) && input.content.every(elem => "object" === typeof elem && null !== elem && _io4(elem)));
|
|
820
|
+
const _io8 = input => ("hidden" === input.tag || "ignore" === input.tag || "internal" === input.tag) && _ip3(input);
|
|
821
|
+
const _io9 = input => _ip1(input) && (Array.isArray(input.segments) && input.segments.every(elem => "string" === typeof elem)) && "string" === typeof input.unitId;
|
|
822
|
+
const _io10 = input => _ip0(input) && _ip1(input) && _ip2(input) && (undefined === input.origins || Array.isArray(input.origins) && input.origins.every(elem => "string" === typeof elem)) && (undefined === input.siteId || "string" === typeof input.siteId) && (Array.isArray(input.unitIds) && input.unitIds.every(elem => "string" === typeof elem)) && ("attached" === input.attachment || "unattached" === input.attachment || "unsupported" === input.attachment) && (undefined === input.problem || "string" === typeof input.problem);
|
|
823
|
+
const _io11 = input => _ip4(input) && _ip5(input) && _ip3(input) && _ip0(input) && ("evidence" === input.kind || "evidenceExclude" === input.kind) && "string" === typeof input.reason;
|
|
824
|
+
const _io12 = input => _ip4(input) && _ip5(input) && _ip3(input) && _ip0(input) && ("evidence" === input.reviews || "evidenceExclude" === input.reviews) && (undefined === input.fingerprint || "string" === typeof input.fingerprint) && "string" === typeof input.description;
|
|
825
|
+
const _io13 = input => "string" === typeof input.code && ("error" === input.severity || "warning" === input.severity) && "string" === typeof input.message && "string" === typeof input.repair && (undefined === input.location || "object" === typeof input.location && null !== input.location && _io3(input.location)) && (undefined === input.claim || "number" === typeof input.claim) && (undefined === input.reference || "number" === typeof input.reference) && (undefined === input.hostId || "string" === typeof input.hostId) && (undefined === input.target || "string" === typeof input.target);
|
|
826
|
+
const _io14 = input => "string" === typeof input.path && "boolean" === typeof input.recursive;
|
|
827
|
+
return input => _so0(input);
|
|
828
|
+
})()(this.data);
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* Projects selected identities and the structural context needed to resolve them.
|
|
832
|
+
*
|
|
833
|
+
* Required units exclude effective withdrawals, while scopes include their real
|
|
834
|
+
* ancestors. Hosts are narrowed to selected semantic owners, including hosts
|
|
835
|
+
* without tags. Unknown requested IDs throw because they indicate an invalid
|
|
836
|
+
* selection, rather than an empty configured population.
|
|
837
|
+
*
|
|
838
|
+
* @example
|
|
839
|
+
* // Selecting a method retains its class as a resolvable aggregate scope.
|
|
840
|
+
* // The class does not become an extra required unit unless its ID is selected.
|
|
841
|
+
*/
|
|
842
|
+
select(ids) {
|
|
843
|
+
const requested = new Set(ids);
|
|
844
|
+
const scopes = new Set();
|
|
845
|
+
// Keep the original closure for hidden-target explanations, even when a
|
|
846
|
+
// requested unit is later removed by an inherited withdrawal.
|
|
847
|
+
for (const id of requested) {
|
|
848
|
+
if (!this.units.has(id))
|
|
849
|
+
throw new Error(`Unknown selected semantic identity: ${id}`);
|
|
850
|
+
for (const ancestor of this.ancestors(id))
|
|
851
|
+
scopes.add(ancestor.id);
|
|
852
|
+
}
|
|
853
|
+
const visible = this.data.units.filter((unit) => requested.has(unit.id) && !this.hidden(unit.id));
|
|
854
|
+
const selected = new Set(visible.map((unit) => unit.id));
|
|
855
|
+
// Only ancestors of surviving requirements remain visible scopes. An owner
|
|
856
|
+
// of exclusively withdrawn units must not re-enter through aggregate lookup.
|
|
857
|
+
const visibleScopes = new Set(visible.flatMap((unit) => this.ancestors(unit.id).map((ancestor) => ancestor.id)));
|
|
858
|
+
return structuredClone({
|
|
859
|
+
units: visible,
|
|
860
|
+
scopes: this.data.units.filter((unit) => visibleScopes.has(unit.id)),
|
|
861
|
+
hidden: this.data.units.filter((unit) => scopes.has(unit.id) && this.hidden(unit.id)),
|
|
862
|
+
hosts: this.data.hosts
|
|
863
|
+
.filter((host) => host.attachment === "attached" &&
|
|
864
|
+
host.unitIds.some((id) => selected.has(id)))
|
|
865
|
+
.map((host) => ({
|
|
866
|
+
...host,
|
|
867
|
+
unitIds: host.unitIds.filter((id) => selected.has(id)),
|
|
868
|
+
})),
|
|
869
|
+
complete: this.data.complete,
|
|
870
|
+
diagnostics: this.data.diagnostics,
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Resolves an exact public address inside a selected population's structural scope.
|
|
875
|
+
*
|
|
876
|
+
* Aliases resolving to one unit are deduplicated by identity; distinct matching
|
|
877
|
+
* units remain ambiguous. A withdrawn match carries its withdrawal locations.
|
|
878
|
+
* Incomplete inventory takes precedence over all apparent matches because
|
|
879
|
+
* missing extraction may hide another candidate or invalidate the population.
|
|
880
|
+
*/
|
|
881
|
+
resolve(address, ids) {
|
|
882
|
+
const population = this.select(ids);
|
|
883
|
+
const visible = new Set(population.scopes.map((unit) => unit.id));
|
|
884
|
+
const hidden = new Set(population.hidden.map((unit) => unit.id));
|
|
885
|
+
const matching = new Set(this.data.addresses
|
|
886
|
+
.filter((candidate) => candidate.file === address.file &&
|
|
887
|
+
JSON.stringify(candidate.segments) ===
|
|
888
|
+
JSON.stringify(address.segments))
|
|
889
|
+
.map((candidate) => candidate.unitId));
|
|
890
|
+
const found = this.data.units.filter((unit) => matching.has(unit.id) && visible.has(unit.id));
|
|
891
|
+
const withdrawn = this.data.units.filter((unit) => matching.has(unit.id) && hidden.has(unit.id));
|
|
892
|
+
// A partial inventory cannot prove uniqueness or absence. Preserve that
|
|
893
|
+
// uncertainty before choosing resolved, ambiguous, hidden, or missing.
|
|
894
|
+
return structuredClone({
|
|
895
|
+
status: !this.data.complete
|
|
896
|
+
? "incomplete"
|
|
897
|
+
: found.length > 1
|
|
898
|
+
? "ambiguous"
|
|
899
|
+
: found.length === 1
|
|
900
|
+
? "resolved"
|
|
901
|
+
: withdrawn.length > 0
|
|
902
|
+
? "hidden"
|
|
903
|
+
: "missing",
|
|
904
|
+
units: found.length === 0 ? withdrawn : found,
|
|
905
|
+
withdrawals: InventoryMerge_1.InventoryMerge.unique(withdrawn.flatMap((unit) => this.withdrawals.get(unit.id) ?? []), (value) => (() => {
|
|
906
|
+
const _so0 = input => `{"tag":${"\"" + input.tag + "\""},"location":${_so1(input.location)}}`;
|
|
907
|
+
const _so1 = input => `{${_jsonStringifyTail_1._jsonStringifyTail(`"file":${_jsonStringifyString_1._jsonStringifyString(input.file)},${undefined === input.range ? "" : `"range":${undefined !== input.range ? _so2(input.range) : undefined}`}`)}}`;
|
|
908
|
+
const _so2 = input => `{"start":${_so3(input.start)},"end":${_so3(input.end)}}`;
|
|
909
|
+
const _so3 = input => `{"offset":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.offset))},"line":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.line))},"column":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.column))}}`;
|
|
910
|
+
const _io1 = input => "string" === typeof input.file && (undefined === input.range || "object" === typeof input.range && null !== input.range && _io2(input.range));
|
|
911
|
+
const _io2 = input => "object" === typeof input.start && null !== input.start && _io3(input.start) && ("object" === typeof input.end && null !== input.end && _io3(input.end));
|
|
912
|
+
const _io3 = input => "number" === typeof input.offset && "number" === typeof input.line && "number" === typeof input.column;
|
|
913
|
+
return input => _so0(input);
|
|
914
|
+
})()(value)),
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Tests whether a semantic identity is removed by its own or an inherited withdrawal.
|
|
919
|
+
*
|
|
920
|
+
* The map is populated during validation from the explicit parent chain. Consumers
|
|
921
|
+
* use this predicate after retaining structural closure, so a hidden ancestor can
|
|
922
|
+
* still be named in a diagnostic without returning it as a visible requirement.
|
|
923
|
+
*/
|
|
924
|
+
hidden(id) {
|
|
925
|
+
return (this.withdrawals.get(id)?.length ?? 0) !== 0;
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* Returns an identity and its reachable structural ancestors in child-to-root order.
|
|
929
|
+
*
|
|
930
|
+
* Selection uses this closure for aggregate addresses and inherited withdrawals.
|
|
931
|
+
* The visited set bounds malformed parent cycles; validation reports the cycle
|
|
932
|
+
* separately rather than letting a lookup or diagnostic construction loop forever.
|
|
933
|
+
*/
|
|
934
|
+
ancestors(id) {
|
|
935
|
+
const output = [];
|
|
936
|
+
const seen = new Set();
|
|
937
|
+
let current = this.units.get(id);
|
|
938
|
+
while (current !== undefined && !seen.has(current.id)) {
|
|
939
|
+
output.push(current);
|
|
940
|
+
seen.add(current.id);
|
|
941
|
+
current =
|
|
942
|
+
current.parentId === undefined
|
|
943
|
+
? undefined
|
|
944
|
+
: this.units.get(current.parentId);
|
|
945
|
+
}
|
|
946
|
+
return output;
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Checks that merged records still describe a coherent source and ownership graph.
|
|
950
|
+
*
|
|
951
|
+
* Validation is deliberately non-throwing for semantic contradictions. Each
|
|
952
|
+
* finding marks the inventory incomplete and remains available to graph reporting,
|
|
953
|
+
* while malformed runtime input has already failed shape validation at construction.
|
|
954
|
+
*/
|
|
955
|
+
validate() {
|
|
956
|
+
const sources = new Map();
|
|
957
|
+
for (const source of this.data.sources) {
|
|
958
|
+
const text = new SourceText_1.SourceText(source.content);
|
|
959
|
+
for (const file of [
|
|
960
|
+
source.physicalPath,
|
|
961
|
+
...source.addresses.map((address) => address.absolute),
|
|
962
|
+
]) {
|
|
963
|
+
const previous = sources.get(file);
|
|
964
|
+
if (previous !== undefined && previous.content !== source.content)
|
|
965
|
+
this.problem("inventory-source", "One source path names different source contents.", { file });
|
|
966
|
+
sources.set(file, text);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
// Source-coordinate checks run before cross-record ownership checks so every
|
|
970
|
+
// later site, host, declaration, and review can use the same original text map.
|
|
971
|
+
const sites = new Map();
|
|
972
|
+
for (const annotation of this.data.annotationRanges)
|
|
973
|
+
this.checkLocation(annotation, sources);
|
|
974
|
+
for (const unit of this.data.units) {
|
|
975
|
+
if (unit.sites.length === 0)
|
|
976
|
+
this.problem("inventory-site", `Identity ${unit.id} has no declaration site.`);
|
|
977
|
+
const ownSites = new Map();
|
|
978
|
+
for (const site of unit.sites) {
|
|
979
|
+
const ownPrevious = ownSites.get(site.id);
|
|
980
|
+
if (ownPrevious !== undefined &&
|
|
981
|
+
(InventoryMerge_1.InventoryMerge.siteKey(ownPrevious) !==
|
|
982
|
+
InventoryMerge_1.InventoryMerge.siteKey(site) ||
|
|
983
|
+
InventoryMerge_1.InventoryMerge.contentKey(ownPrevious) !==
|
|
984
|
+
InventoryMerge_1.InventoryMerge.contentKey(site)))
|
|
985
|
+
this.problem("inventory-content", `Identity ${unit.id} assigns conflicting content to site ${site.id}.`, site);
|
|
986
|
+
ownSites.set(site.id, site);
|
|
987
|
+
const previous = sites.get(site.id);
|
|
988
|
+
if (previous !== undefined &&
|
|
989
|
+
InventoryMerge_1.InventoryMerge.siteKey(previous) !== InventoryMerge_1.InventoryMerge.siteKey(site))
|
|
990
|
+
this.problem("inventory-site", `Declaration site ${site.id} has conflicting locations.`, site);
|
|
991
|
+
sites.set(site.id, site);
|
|
992
|
+
this.checkLocation(site, sources);
|
|
993
|
+
for (const range of site.content) {
|
|
994
|
+
this.checkLocation({ file: site.file, range }, sources);
|
|
995
|
+
if (range.start.offset < site.range.start.offset ||
|
|
996
|
+
range.end.offset > site.range.end.offset)
|
|
997
|
+
this.problem("inventory-content", `Content of ${unit.id} lies outside its declaration site.`, site);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
if (unit.parentId !== undefined && !this.units.has(unit.parentId))
|
|
1001
|
+
this.problem("inventory-parent", `Identity ${unit.id} names missing parent ${unit.parentId}.`);
|
|
1002
|
+
const ancestors = this.ancestors(unit.id);
|
|
1003
|
+
const last = ancestors.at(-1);
|
|
1004
|
+
if (last !== undefined &&
|
|
1005
|
+
last.parentId !== undefined &&
|
|
1006
|
+
this.units.has(last.parentId))
|
|
1007
|
+
this.problem("inventory-cycle", `The parent chain of ${unit.id} contains a cycle.`);
|
|
1008
|
+
// Cache inherited directives per identity. Applying only local withdrawals
|
|
1009
|
+
// would expose a child that an enclosing symbol explicitly withdrew.
|
|
1010
|
+
this.withdrawals.set(unit.id, ancestors.flatMap((ancestor) => ancestor.withdrawals));
|
|
1011
|
+
for (const withdrawal of unit.withdrawals)
|
|
1012
|
+
this.checkLocation(withdrawal.location, sources);
|
|
1013
|
+
}
|
|
1014
|
+
for (const address of this.data.addresses)
|
|
1015
|
+
if (!this.units.has(address.unitId))
|
|
1016
|
+
this.problem("inventory-address", `Public address names missing identity ${address.unitId}.`, { file: address.file });
|
|
1017
|
+
// Annotation attachment is valid only when a host belongs to a declaration
|
|
1018
|
+
// site. A matching file name alone is insufficient for generated or repeated text.
|
|
1019
|
+
const hosts = new Map(this.data.hosts.map((host) => [host.id, host]));
|
|
1020
|
+
for (const host of this.data.hosts) {
|
|
1021
|
+
this.checkLocation(host, sources);
|
|
1022
|
+
if (host.attachment === "attached") {
|
|
1023
|
+
if (host.unitIds.length === 0 && host.siteId !== undefined)
|
|
1024
|
+
this.problem("inventory-host", `Attached semantic host ${host.id} has no semantic owner.`, host);
|
|
1025
|
+
if (host.unitIds.length !== 0 && host.siteId === undefined)
|
|
1026
|
+
this.problem("inventory-host", `Attached semantic host ${host.id} has no declaration site.`, host);
|
|
1027
|
+
for (const id of host.unitIds) {
|
|
1028
|
+
const unit = this.units.get(id);
|
|
1029
|
+
if (unit === undefined ||
|
|
1030
|
+
!unit.sites.some((site) => site.id === host.siteId && site.file === host.file))
|
|
1031
|
+
this.problem("inventory-host", `Host ${host.id} is not attached to a declaration owned by ${id}.`, host);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
else if (host.unitIds.length !== 0 || host.siteId !== undefined)
|
|
1035
|
+
this.problem("inventory-host", `Unattached or unsupported host ${host.id} claims a semantic owner.`, host);
|
|
1036
|
+
}
|
|
1037
|
+
for (const entry of this.data.declarations) {
|
|
1038
|
+
this.checkLocation(entry.location, sources);
|
|
1039
|
+
const host = hosts.get(entry.hostId);
|
|
1040
|
+
const range = entry.location.range;
|
|
1041
|
+
if (host === undefined ||
|
|
1042
|
+
host.attachment !== "attached" ||
|
|
1043
|
+
range === undefined ||
|
|
1044
|
+
host.file !== entry.location.file ||
|
|
1045
|
+
range.start.offset < host.range.start.offset ||
|
|
1046
|
+
range.end.offset > host.range.end.offset)
|
|
1047
|
+
this.problem("inventory-host", `Annotation ${entry.id} does not belong to an eligible documentation host.`, entry.location);
|
|
1048
|
+
}
|
|
1049
|
+
for (const entry of this.data.reviews) {
|
|
1050
|
+
this.checkLocation(entry.location, sources);
|
|
1051
|
+
const host = hosts.get(entry.hostId);
|
|
1052
|
+
const range = entry.location.range;
|
|
1053
|
+
if (host === undefined ||
|
|
1054
|
+
host.attachment !== "attached" ||
|
|
1055
|
+
range === undefined ||
|
|
1056
|
+
host.file !== entry.location.file ||
|
|
1057
|
+
range.start.offset < host.range.start.offset ||
|
|
1058
|
+
range.end.offset > host.range.end.offset)
|
|
1059
|
+
this.problem("inventory-host", `Review ${entry.id} does not belong to an eligible documentation host.`, entry.location);
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* Verifies that an optional source range belongs to the recorded source snapshot.
|
|
1064
|
+
*
|
|
1065
|
+
* Adapter records must point into the exact original content, not merely to a
|
|
1066
|
+
* path that happens to exist. Missing source text, absent ranges, and out-of-bounds
|
|
1067
|
+
* coordinates all make later diagnostics and fingerprints unreliable.
|
|
1068
|
+
*/
|
|
1069
|
+
checkLocation(location, sources) {
|
|
1070
|
+
const text = sources.get(location.file);
|
|
1071
|
+
if (text === undefined ||
|
|
1072
|
+
location.range === undefined ||
|
|
1073
|
+
!text.contains(location.range))
|
|
1074
|
+
this.problem("inventory-location", "A declaration location does not match its original source snapshot.", location);
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Appends one inventory diagnostic and permanently marks this snapshot incomplete.
|
|
1078
|
+
*
|
|
1079
|
+
* This central path keeps all validation failures visible to the graph evaluator.
|
|
1080
|
+
* An optional location is reduced to the portable file/range form accepted by the
|
|
1081
|
+
* report schema, preserving a specific repair site when the source record supplied one.
|
|
1082
|
+
*/
|
|
1083
|
+
problem(code, message, location) {
|
|
1084
|
+
this.data.complete = false;
|
|
1085
|
+
this.data.diagnostics.push({
|
|
1086
|
+
code,
|
|
1087
|
+
severity: "error",
|
|
1088
|
+
message,
|
|
1089
|
+
repair: "Correct the adapter's source, identity, or ownership records before evaluating coverage.",
|
|
1090
|
+
...(location === undefined
|
|
1091
|
+
? {}
|
|
1092
|
+
: {
|
|
1093
|
+
location: {
|
|
1094
|
+
file: location.file,
|
|
1095
|
+
...(location.range === undefined
|
|
1096
|
+
? {}
|
|
1097
|
+
: { range: location.range }),
|
|
1098
|
+
},
|
|
1099
|
+
}),
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Deduplicates and canonically orders merged records after validation.
|
|
1104
|
+
*
|
|
1105
|
+
* Normalization does not repair contradictions already reported. It only gives
|
|
1106
|
+
* snapshots, serialized output, and diagnostic ordering a stable representation
|
|
1107
|
+
* when equivalent adapter records arrived from independent scan inputs.
|
|
1108
|
+
*/
|
|
1109
|
+
normalize() {
|
|
1110
|
+
this.data.sources = InventoryMerge_1.InventoryMerge.unique(this.data.sources, (source) => source.id);
|
|
1111
|
+
for (const source of this.data.sources)
|
|
1112
|
+
source.addresses = InventoryMerge_1.InventoryMerge.sourceAddresses(source.addresses);
|
|
1113
|
+
this.data.annotationRanges = InventoryMerge_1.InventoryMerge.unique(this.data.annotationRanges, (location) => (() => {
|
|
1114
|
+
const _so0 = input => `{${_jsonStringifyTail_1._jsonStringifyTail(`"file":${_jsonStringifyString_1._jsonStringifyString(input.file)},${undefined === input.range ? "" : `"range":${undefined !== input.range ? _so1(input.range) : undefined}`}`)}}`;
|
|
1115
|
+
const _so1 = input => `{"start":${_so2(input.start)},"end":${_so2(input.end)}}`;
|
|
1116
|
+
const _so2 = input => `{"offset":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.offset))},"line":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.line))},"column":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.column))}}`;
|
|
1117
|
+
const _io1 = input => "object" === typeof input.start && null !== input.start && _io2(input.start) && ("object" === typeof input.end && null !== input.end && _io2(input.end));
|
|
1118
|
+
const _io2 = input => "number" === typeof input.offset && "number" === typeof input.line && "number" === typeof input.column;
|
|
1119
|
+
return input => _so0(input);
|
|
1120
|
+
})()(location));
|
|
1121
|
+
this.data.units = InventoryMerge_1.InventoryMerge.unique(this.data.units, (unit) => unit.id);
|
|
1122
|
+
for (const unit of this.data.units) {
|
|
1123
|
+
unit.sites = InventoryMerge_1.InventoryMerge.unique(unit.sites, (site) => site.id);
|
|
1124
|
+
for (const site of unit.sites)
|
|
1125
|
+
site.content = InventoryMerge_1.InventoryMerge.unique(site.content, (range) => JSON.stringify([range.start.offset, range.end.offset])).sort((x, y) => {
|
|
1126
|
+
const start = x.start.offset - y.start.offset;
|
|
1127
|
+
return start !== 0 ? start : x.end.offset - y.end.offset;
|
|
1128
|
+
});
|
|
1129
|
+
unit.withdrawals = InventoryMerge_1.InventoryMerge.unique(unit.withdrawals, (withdrawal) => (() => {
|
|
1130
|
+
const _so0 = input => `{"tag":${"\"" + input.tag + "\""},"location":${_so1(input.location)}}`;
|
|
1131
|
+
const _so1 = input => `{${_jsonStringifyTail_1._jsonStringifyTail(`"file":${_jsonStringifyString_1._jsonStringifyString(input.file)},${undefined === input.range ? "" : `"range":${undefined !== input.range ? _so2(input.range) : undefined}`}`)}}`;
|
|
1132
|
+
const _so2 = input => `{"start":${_so3(input.start)},"end":${_so3(input.end)}}`;
|
|
1133
|
+
const _so3 = input => `{"offset":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.offset))},"line":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.line))},"column":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.column))}}`;
|
|
1134
|
+
const _io1 = input => "string" === typeof input.file && (undefined === input.range || "object" === typeof input.range && null !== input.range && _io2(input.range));
|
|
1135
|
+
const _io2 = input => "object" === typeof input.start && null !== input.start && _io3(input.start) && ("object" === typeof input.end && null !== input.end && _io3(input.end));
|
|
1136
|
+
const _io3 = input => "number" === typeof input.offset && "number" === typeof input.line && "number" === typeof input.column;
|
|
1137
|
+
return input => _so0(input);
|
|
1138
|
+
})()(withdrawal));
|
|
1139
|
+
}
|
|
1140
|
+
this.data.addresses = InventoryMerge_1.InventoryMerge.unique(this.data.addresses, (address) => JSON.stringify([address.file, address.segments, address.unitId]));
|
|
1141
|
+
this.data.hosts = InventoryMerge_1.InventoryMerge.unique(this.data.hosts, (host) => host.id);
|
|
1142
|
+
for (const host of this.data.hosts) {
|
|
1143
|
+
host.unitIds = InventoryMerge_1.InventoryMerge.unique(host.unitIds, (id) => id);
|
|
1144
|
+
host.origins = InventoryMerge_1.InventoryMerge.unique(host.origins ?? [host.file], (file) => file);
|
|
1145
|
+
// Citation origin is required to explain generated or shared hosts. Keep the
|
|
1146
|
+
// host record for diagnostics instead of silently deleting an invalid entry.
|
|
1147
|
+
if (host.origins.length === 0)
|
|
1148
|
+
this.problem("inventory-host", `Host ${host.id} has no citation origin.`, host);
|
|
1149
|
+
}
|
|
1150
|
+
this.data.declarations = InventoryMerge_1.InventoryMerge.unique(this.data.declarations, (entry) => entry.id);
|
|
1151
|
+
this.data.reviews = InventoryMerge_1.InventoryMerge.unique(this.data.reviews, (entry) => entry.id);
|
|
1152
|
+
this.data.dependencies = InventoryMerge_1.InventoryMerge.unique(this.data.dependencies, (dependency) => JSON.stringify([dependency.path, dependency.recursive]));
|
|
1153
|
+
this.data.diagnostics = InventoryMerge_1.InventoryMerge.unique(this.data.diagnostics, (diagnostic) => (() => {
|
|
1154
|
+
const _so0 = input => `{${_jsonStringifyTail_1._jsonStringifyTail(`"code":${_jsonStringifyString_1._jsonStringifyString(input.code)},"severity":${"\"" + input.severity + "\""},"message":${_jsonStringifyString_1._jsonStringifyString(input.message)},"repair":${_jsonStringifyString_1._jsonStringifyString(input.repair)},${undefined === input.location ? "" : `"location":${undefined !== input.location ? _so1(input.location) : undefined},`}${undefined === input.claim ? "" : `"claim":${undefined !== input.claim ? String(_jsonStringifyNumber_1._jsonStringifyNumber(input.claim)) : undefined},`}${undefined === input.reference ? "" : `"reference":${undefined !== input.reference ? String(_jsonStringifyNumber_1._jsonStringifyNumber(input.reference)) : undefined},`}${undefined === input.hostId ? "" : `"hostId":${undefined !== input.hostId ? _jsonStringifyString_1._jsonStringifyString(input.hostId) : undefined},`}${undefined === input.target ? "" : `"target":${undefined !== input.target ? _jsonStringifyString_1._jsonStringifyString(input.target) : undefined}`}`)}}`;
|
|
1155
|
+
const _so1 = input => `{${_jsonStringifyTail_1._jsonStringifyTail(`"file":${_jsonStringifyString_1._jsonStringifyString(input.file)},${undefined === input.range ? "" : `"range":${undefined !== input.range ? _so2(input.range) : undefined}`}`)}}`;
|
|
1156
|
+
const _so2 = input => `{"start":${_so3(input.start)},"end":${_so3(input.end)}}`;
|
|
1157
|
+
const _so3 = input => `{"offset":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.offset))},"line":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.line))},"column":${String(_jsonStringifyNumber_1._jsonStringifyNumber(input.column))}}`;
|
|
1158
|
+
const _io1 = input => "string" === typeof input.file && (undefined === input.range || "object" === typeof input.range && null !== input.range && _io2(input.range));
|
|
1159
|
+
const _io2 = input => "object" === typeof input.start && null !== input.start && _io3(input.start) && ("object" === typeof input.end && null !== input.end && _io3(input.end));
|
|
1160
|
+
const _io3 = input => "number" === typeof input.offset && "number" === typeof input.line && "number" === typeof input.column;
|
|
1161
|
+
return input => _so0(input);
|
|
1162
|
+
})()(diagnostic));
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
exports.EvidenceInventory = EvidenceInventory;
|