Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prophetlamb/sourcesymbolmapper
https://github.com/prophetlamb/sourcesymbolmapper
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/prophetlamb/sourcesymbolmapper
- Owner: ProphetLamb
- License: mit
- Created: 2022-09-23T13:15:38.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-23T16:51:55.000Z (about 2 years ago)
- Last Synced: 2024-09-29T15:34:33.618Z (3 months ago)
- Language: C#
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SourceSymbolMapper
[NuGet here](https://www.nuget.org/packages/SourceSymbolMapper)
A tool to relate metadata extracted by [SourceLinkExtract](https://github.com/ProphetLamb/SourceLinkExtract) to assembly typedefinitions
```bash
mapper "../meta/metadata.json", "../meta", "../meta/symbols.json"
```## Argument 1
Filepath of the metadata dump from the portable PDB or assembly. Generated by [SourceLinkExtract](https://github.com/ProphetLamb/SourceLinkExtract).```json
{
"link": {
"documents": {
"/_/*": "https://raw.githubusercontent.com/ProphetLamb/Surreal.Net/9050c906117c795ca385fd52b75062771a2a8816/*"
}
},
"docs": [
{
"name": "src/Abstractions/Database.cs",
"lang": "3f5162f8-07c6-11d3-9053-00c04fa302a1",
"algo": "8829d00f-11b8-4213-878b-770e8597ac16",
"hash": "sksvYzgtjDMO34efmUFUzcmtYiT/TuXUrURrbf9dNwk="
},
[...]
]
}```
## Argument 2
Directorypath of the extracted/downloaded sources. Generated by [SourceLinkExtract](https://github.com/ProphetLamb/SourceLinkExtract).
Alternatively the path of the source repository.```
src/Abstractions/Database.cs
src/Abstractions/obj/Release/net60/Abstractions.AssemblyInfo.g.cs
[...]
```## Argument 3
The output filepath fo the tool, where the symbol mapping will be written to.
Typenames may appear more then once, if the type is `partial`.```json
[
{
"type": "SurrealDB.Abstractions.IDatabase\u00601",
"link": "https://raw.githubusercontent.com/ProphetLamb/Surreal.Net/9050c906117c795ca385fd52b75062771a2a8816/src/Abstractions/Database.cs",
"path": "src/Abstractions/Database.cs",
"start": 6,
"end": 141
},
{
"type": "SurrealDB.Abstractions.IDatabase",
"link": "https://raw.githubusercontent.com/ProphetLamb/Surreal.Net/9050c906117c795ca385fd52b75062771a2a8816/src/Abstractions/Database.cs",
"path": "src/Abstractions/Database.cs",
"start": 141,
"end": 295
}
]```