29 references to new
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CSharpCodeStyleOptions.cs (4)
108new(parseValue: str => ParseExpressionBodyPreference(str, defaultValue), 139defaultValue => new( 186defaultValue => new( 241defaultValue => new(
CSharpFormattingOptions2.cs (5)
116new EditorConfigValueSerializer<SpacePlacementWithinParentheses>( 128new EditorConfigValueSerializer<bool>( 191new EditorConfigValueSerializer<BinaryOperatorSpacingOptions>( 224new EditorConfigValueSerializer<LabelPositionOptions>( 243new EditorConfigValueSerializer<NewLineBeforeOpenBracePlacement>(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
EditorConfigSettings\Data\CodeStyleSettingsTest.cs (2)
86serializer: new EditorConfigValueSerializer<CodeStyleOption2<bool>>(_ => defaultCodeStyle, _ => "default"), 97serializer: new EditorConfigValueSerializer<CodeStyleOption2<T>>(_ => defaultCodeStyle, _ => "default"),
Microsoft.CodeAnalysis.Workspaces (18)
CodeStyleHelpers.cs (1)
164=> new(parseValue: str => ParseUnusedExpressionAssignmentPreference(str, defaultValue),
CodeStyleOptions2.cs (5)
102serializer: new( 172defaultValue => new( 201defaultValue => new( 247defaultValue => new( 296defaultValue => new(
EditorConfigValueSerializer.cs (9)
20private static readonly EditorConfigValueSerializer<bool> s_bool = new( 24private static readonly EditorConfigValueSerializer<int> s_int32 = new( 28private static readonly EditorConfigValueSerializer<string> s_string = new( 32private static readonly EditorConfigValueSerializer<bool?> s_nullableBoolean = new( 74=> new(parseValue: str => str.Equals(emptyStringRepresentation, StringComparison.Ordinal) ? default(Optional<string>) : EscapeLineBreaks(str), 89=> new(parseValue: str => CodeStyleHelpers.TryParseBoolEditorConfigCodeStyleOption(str, defaultValue, out var result) ? result : new Optional<CodeStyleOption2<bool>>(), 93=> new(parseValue: str => CodeStyleHelpers.TryParseStringEditorConfigCodeStyleOption(str, defaultValue, out var result) ? result : new Optional<CodeStyleOption2<string>>(), 97=> new( 103return new EditorConfigValueSerializer<T?>(
EditorConfigValueSerializer`1.cs (1)
17public static readonly EditorConfigValueSerializer<T> Unsupported = new(
FormattingOptions2.cs (2)
29serializer: new EditorConfigValueSerializer<bool>(str => str == "tab", value => value ? "tab" : "space")) 42serializer: new EditorConfigValueSerializer<string>(