CompilationUnitManager.Compilation Class

Definition

Class used to accumulate all information about the state of a compilation unit in immutable form.

public class CompilationUnitManager.Compilation
type CompilationUnitManager.Compilation = class
Public Class CompilationUnitManager.Compilation
Inheritance
CompilationUnitManager.Compilation

Properties

BuiltCompilation

Contains the built Q# compilation.

Callables

Contains a dictionary that given the fully qualified name of a compiled callable returns its syntax tree.

ContextDiagnostics

Contains a dictionary that maps the ID of a file included in the compilation to all context-related diagnostics generated during compilation.

FileContent

Contains a dictionary that maps the ID of a file included in the compilation to the text representation of its content.

HeaderDiagnostics

Contains a dictionary that maps the ID of a file included in the compilation to all diagnostics generated during compilation related to header information for declarations.

References

Contains the IDs assigned by the Q# compiler for all assemblies referenced in the compilation.

ScopeDiagnostics

Contains a dictionary that maps the ID of a file included in the compilation to all scope-related diagnostics generated during compilation.

SemanticDiagnostics

Contains a dictionary that maps the ID of a file included in the compilation to all semantic diagnostics generated during compilation for the specified implementations.

SourceFiles

Contains the file IDs assigned by the Q# compiler for all source files included in the compilation.

SyntaxDiagnostics

Contains a dictionary that maps the ID of a file included in the compilation to all syntax-related diagnostics generated during compilation.

SyntaxTree

Contains a dictionary that maps the name of a namespace to the compiled Q# namespace.

Tokenization

Contains a dictionary that maps the ID of a file included in the compilation to the tokenization built based on its content.

Types

Contains a dictionary that given the fully qualified name of a compiled type returns its syntax tree.

Methods

Diagnostics()

Returns all diagnostics generated during compilation.

Diagnostics(String)

Maps a file ID assigned by the Q# compiler to all diagnostics generated during compilation.

NamespaceComments(String, String)

Gets non-documentation comments for a namespace.

OpenDirectives(String, String)

Given ID sourceFile and namespace nsName, returns the names and corresponding short form (if any) of all opened namespaces for the (part of the) namespace in that file.

SymbolsDefinedInNamespace(String)

Returns all the names of all callable and types defined in namespace nsName.

Applies to