TypeMap

io.joern.csharpsrc2cpg.TypeMap
class TypeMap(astGenResult: AstGenRunnerResult, initialMappings: List[NamespaceToTypeMap])

A mapping of type stubs of known types within the scope of the analysis.

Value parameters

astGenResult

the parsed application code.

initialMappings

any additional mappings to add to the scope.

Attributes

See also

io.joern.csharpsrc2cpg.TypeMap.jsonToInitialMapping for generating initial mappings.

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def classesIn(namespace: String): Set[CSharpType]

For the given namespace, returns the declared classes.

For the given namespace, returns the declared classes.

Attributes

def jsonToInitialMapping(jsonInputStream: InputStream): Try[NamespaceToTypeMap]

Converts a JSON type mapping to a NamespaceToTypeMap entry.

Converts a JSON type mapping to a NamespaceToTypeMap entry.

Value parameters

jsonInputStream

a JSON file as an input stream.

Attributes

Returns

the resulting type map in a Try