1 write to TreeOptions
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfigOptionsResult.cs (1)
40TreeOptions = treeOptions;
37 references to TreeOptions
Microsoft.CodeAnalysis (3)
Compilation\SyntaxTreeOptionsProvider.cs (3)
40DiagnosticOptions = r.TreeOptions; 89if (_globalOptions.TreeOptions is object) 91return _globalOptions.TreeOptions.TryGetValue(diagnosticId, out severity);
Microsoft.CodeAnalysis.UnitTests (33)
Analyzers\AnalyzerConfigTests.cs (33)
967}, options.Select(o => o.TreeOptions).ToArray()); 1017}, options.Select(o => o.TreeOptions).ToArray()); 1044}, options.Select(o => o.TreeOptions).ToArray()); 1066}, options.Select(o => o.TreeOptions).ToArray()); 1088}, options.Select(o => o.TreeOptions).ToArray()); 1112}, options.Select(o => o.TreeOptions).ToArray()); 1145}, options.Select(o => o.TreeOptions).ToArray()); 1167}, options.Select(o => o.TreeOptions).ToArray()); 1198}, options.Select(o => o.TreeOptions).ToArray()); 1218}, options.Select(o => o.TreeOptions).ToArray()); 1266var treeOptions = options[i].TreeOptions; 1511}, options.Select(o => o.TreeOptions).ToArray()); 1541}, options.Select(o => o.TreeOptions).ToArray()); 1575}, options.Select(o => o.TreeOptions).ToArray()); 1591Assert.Equal("cs000", options[0].TreeOptions.Keys.Single()); 1593Assert.Same(options[0].TreeOptions.Keys.First(), options[1].TreeOptions.Keys.First()); 1594Assert.Same(options[1].TreeOptions.Keys.First(), options[2].TreeOptions.Keys.First()); 1609Assert.Equal(KeyValuePair.Create("cs000", ReportDiagnostic.Warn), options[0].TreeOptions.Single()); 1611Assert.Same(options[0].TreeOptions, options[1].TreeOptions); 1613Assert.Same(options[1].TreeOptions, options[2].TreeOptions); 2035set.GlobalConfigOptions.TreeOptions); 2057}, options.Select(o => o.TreeOptions).ToArray()); 2104options[0].TreeOptions); 2134}, options.Select(o => o.TreeOptions).ToArray()); 2236Assert.NotNull(globalOptions.TreeOptions); 2240Assert.Empty(globalOptions.TreeOptions); 2376Assert.Empty(globalOptions.TreeOptions); 2391Assert.Empty(globalOptions.TreeOptions); 2398Assert.Empty(sectionOptions.TreeOptions);
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\AnalyzerConfigData.cs (1)
31TreeOptions = result.TreeOptions;