1 write to ParseOptions
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentState.cs (1)
50ParseOptions = options;
24 references to ParseOptions
Microsoft.CodeAnalysis.CSharp.Features (1)
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (1)
84var parseOptions = document.DocumentState.ParseOptions!;
Microsoft.CodeAnalysis.Features (1)
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
91Contract.ThrowIfNull(document.DocumentState.ParseOptions);
Microsoft.CodeAnalysis.Workspaces (18)
Workspace\Solution\DocumentState.cs (15)
47Contract.ThrowIfFalse(ParseOptions is null == TreeSource is null); 92[MemberNotNullWhen(true, nameof(ParseOptions))] 97=> ParseOptions?.Kind ?? Attributes.SourceCodeKind; 324ParseOptions, 333ParseOptions, 391if (ParseOptions != null) 393return UpdateParseOptionsAndSourceCodeKind(ParseOptions.WithKind(kind), onlyPreprocessorDirectiveChange: false); 413ParseOptions, 427ParseOptions, 438ParseOptions, 471ParseOptions, 482ParseOptions, 515Contract.ThrowIfNull(ParseOptions); 516var (text, treeAndVersion) = CreateTreeWithLazyText(newRoot, newTextVersion, newTreeVersion, encoding, LoadTextOptions.ChecksumAlgorithm, Attributes, ParseOptions, syntaxTreeFactory); 524ParseOptions,
Workspace\Solution\DocumentState_LinkedFileReuse.cs (2)
74ParseOptions, 96this.Attributes, this.LanguageServices, this.DocumentServiceProvider, this.LoadTextOptions, this.ParseOptions,
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
157public new ParseOptions ParseOptions => base.ParseOptions!;
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
SolutionTests\SolutionTests.cs (4)
276Assert.Equal(SourceCodeKind.Script, document1.DocumentState.ParseOptions?.Kind); 280Assert.Equal(SourceCodeKind.Regular, document2.DocumentState.ParseOptions?.Kind); 4935Assert.Null(document1.DocumentState.ParseOptions); 4939Assert.Null(document2.DocumentState.ParseOptions);