3 writes to ScriptClassName
Microsoft.CodeAnalysis (1)
Compilation\CompilationOptions.cs (1)
300this.ScriptClassName = scriptClassName ?? WellKnownMemberNames.DefaultScriptClassName;
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
305return new CSharpCompilationOptions(this) { ScriptClassName = name };
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicCompilationOptions.vb (1)
510Return New VisualBasicCompilationOptions(Me) With {.ScriptClassName = name}
34 references to ScriptClassName
Microsoft.CodeAnalysis (7)
Compilation\Compilation.cs (2)
1022/// full name of the container class stored in <see cref="CompilationOptions.ScriptClassName"/> to find the symbol. 1027string scriptClassName = this.Options.ScriptClassName ?? "";
Compilation\CompilationOptions.cs (4)
641string.Equals(this.ScriptClassName, other.ScriptClassName, StringComparison.Ordinal) && 688Hash.Combine(this.ScriptClassName != null ? StringComparer.Ordinal.GetHashCode(this.ScriptClassName) : 0,
Compilation\DeterministicKeyBuilder.cs (1)
444writer.Write("scriptClassName", options.ScriptClassName);
Microsoft.CodeAnalysis.CSharp (11)
Compilation\CSharpCompilation.cs (5)
437options.ScriptClassName, 661bool reuseSyntaxAndDeclarationManager = oldOptions.ScriptClassName == options.ScriptClassName && 678options.ScriptClassName, 1551/// full name of the container class stored in <see cref="CompilationOptions.ScriptClassName"/> to find the symbol.
CSharpCompilationOptions.cs (6)
235scriptClassName: other.ScriptClassName, 300if (name == this.ScriptClassName) 700if (ScriptClassName == null || !ScriptClassName.IsValidClrTypeName()) 702builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadCompilationOptionValue, nameof(ScriptClassName), ScriptClassName ?? "null"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\CSharpCompilationOptionsTests.cs (3)
76TestHiddenProperty((old, value) => old.WithScriptClassName(value), opt => opt.ScriptClassName, "<Script>"); 112TestProperty((old, value) => old.WithScriptClassName(value), opt => opt.ScriptClassName, "<Script>"); 299Assert.Equal("Script", new CSharpCompilationOptions(OutputKind.ConsoleApplication, scriptClassName: null).ScriptClassName);
DeclarationTests.cs (4)
61var decl1 = DeclarationTreeBuilder.ForTree(tree1, TestOptions.DebugExe.ScriptClassName, isSubmission: false); 62var decl2 = DeclarationTreeBuilder.ForTree(tree2, TestOptions.DebugExe.ScriptClassName, isSubmission: false); 230var decl1 = Lazy(DeclarationTreeBuilder.ForTree(tree1, TestOptions.DebugExe.ScriptClassName, isSubmission: false)); 231var decl2 = Lazy(DeclarationTreeBuilder.ForTree(tree2, TestOptions.DebugExe.ScriptClassName, isSubmission: false));
Microsoft.CodeAnalysis.VisualBasic (7)
Compilation\VisualBasicCompilation.vb (2)
992Return DeclarationTreeBuilder.ForTree(tree, options.GetRootNamespaceParts(), If(options.ScriptClassName, ""), isSubmission) 1944''' Uses the full name of the container class stored in <see cref="CompilationOptions.ScriptClassName"/> to find the symbol.
VisualBasicCompilationOptions.vb (5)
302scriptClassName:=other.ScriptClassName, 506If String.Equals(name, Me.ScriptClassName, StringComparison.Ordinal) Then 1050If ScriptClassName Is Nothing OrElse Not ScriptClassName.IsValidClrTypeName() Then 1051builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(ScriptClassName), If(ScriptClassName, "Nothing")))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\VisualBasicCompilationOptionsTests.vb (1)
239Assert.Equal("Script", options.ScriptClassName)
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\AbstractOptionsSerializationService.cs (1)
32writer.WriteString(options.ScriptClassName);