27 references to new
Microsoft.CodeAnalysis.CodeStyle (18)
CodeStyleHelpers.cs (1)
164
=>
new
(parseValue: str => ParseUnusedExpressionAssignmentPreference(str, defaultValue),
CodeStyleOptions2.cs (5)
102
serializer:
new
(
172
defaultValue =>
new
(
201
defaultValue =>
new
(
247
defaultValue =>
new
(
296
defaultValue =>
new
(
EditorConfigValueSerializer.cs (9)
20
private static readonly EditorConfigValueSerializer<bool> s_bool =
new
(
24
private static readonly EditorConfigValueSerializer<int> s_int32 =
new
(
28
private static readonly EditorConfigValueSerializer<string> s_string =
new
(
32
private 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
(
103
return new
EditorConfigValueSerializer
<T?>(
EditorConfigValueSerializer`1.cs (1)
17
public static readonly EditorConfigValueSerializer<T> Unsupported =
new
(
FormattingOptions2.cs (2)
29
serializer: new
EditorConfigValueSerializer
<bool>(str => str == "tab", value => value ? "tab" : "space"))
42
serializer: new
EditorConfigValueSerializer
<string>(
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
CSharpCodeStyleOptions.cs (4)
108
new
(parseValue: str => ParseExpressionBodyPreference(str, defaultValue),
139
defaultValue =>
new
(
186
defaultValue =>
new
(
241
defaultValue =>
new
(
CSharpFormattingOptions2.cs (5)
116
new
EditorConfigValueSerializer
<SpacePlacementWithinParentheses>(
128
new
EditorConfigValueSerializer
<bool>(
191
new
EditorConfigValueSerializer
<BinaryOperatorSpacingOptions>(
224
new
EditorConfigValueSerializer
<LabelPositionOptions>(
243
new
EditorConfigValueSerializer
<NewLineBeforeOpenBracePlacement>(