Skip to content

ProphetLamb/SourceSymbolMapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SourceSymbolMapper

NuGet here

A tool to relate metadata extracted by SourceLinkExtract to assembly typedefinitions

mapper "../meta/metadata.json", "../meta", "../meta/symbols.json"

Argument 1

Filepath of the metadata dump from the portable PDB or assembly. Generated by SourceLinkExtract.

{
  "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. 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.

[
  {
    "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
  }
]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages