AnalyzeCSharp.

WithWritePath(Func<IMetadata, FilePath>) Method

Summary

This changes the default behavior for the generated WritePath metadata value, which is to place files in a path with the same name as their containing namespace. Namespace documents will be named "index.html" while other type documents will get a name equal to their SymbolId. Member documents will get the same name as their containing type plus an anchor to their SymbolId. Note that the default scheme makes the assumption that members will not have their own files, if that's not the case a new WritePath function will have to be supplied using this method.
Assembly
Wyam.CodeAnalysis.dll
Namespace
Wyam.CodeAnalysis
Containing Type
AnalyzeCSharp

Syntax

public AnalyzeCSharp WithWritePath(Func<IMetadata, FilePath> writePath)

Parameters

Name Type Description
writePath Func<IMetadata, FilePath> A function that takes the metadata for a given symbol and returns a FilePath to use for the WritePath metadata value.

Return Value

Type Description
AnalyzeCSharp The current module instance.
GitHub