14 references to CompilationUnit
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
CSharpCodeGenerationHelpers.cs (1)
230
SyntaxKind.CompilationUnit => CodeGenerationDestination.
CompilationUnit
,
EventGenerator.cs (1)
67
var declaration = GenerateEventDeclaration(@event, CodeGenerationDestination.
CompilationUnit
, info, cancellationToken);
MethodGenerator.cs (3)
48
method, CodeGenerationDestination.
CompilationUnit
, info,
280
else if (destination is not CodeGenerationDestination.
CompilationUnit
and
308
else if (destination is CodeGenerationDestination.
CompilationUnit
)
NamedTypeGenerator.cs (2)
59
var declaration = GenerateNamedTypeDeclaration(service, namedType, CodeGenerationDestination.
CompilationUnit
, info, cancellationToken);
272
var defaultAccessibility = destination is CodeGenerationDestination.
CompilationUnit
or CodeGenerationDestination.Namespace
NamespaceGenerator.cs (2)
54
CodeGenerationDestination.
CompilationUnit
,
107
if (destination == CodeGenerationDestination.
CompilationUnit
&&
PropertyGenerator.cs (2)
42
property, CodeGenerationDestination.
CompilationUnit
, info,
365
else if (destination is not CodeGenerationDestination.
CompilationUnit
)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
CodeGeneration\FieldGenerator.vb (1)
48
Dim fieldDeclaration = GenerateFieldDeclaration(field, CodeGenerationDestination.
CompilationUnit
, options)
CodeGeneration\PropertyGenerator.vb (1)
24
Dim propertyDeclaration = GeneratePropertyDeclaration([property], CodeGenerationDestination.
CompilationUnit
, options)
CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
157
Return CodeGenerationDestination.
CompilationUnit