3 instantiations of Result
Microsoft.CodeAnalysis.Features (3)
EmbeddedLanguages\StackFrame\Result.cs (3)
12
public static readonly Result<T> Abort =
new
(false, default);
13
public static readonly Result<T> Empty =
new
(true, default);
31
public static implicit operator Result<T>(T value) =>
new
(value);
47 references to Result
Microsoft.CodeAnalysis.Features (47)
EmbeddedLanguages\StackFrame\Result.cs (3)
12
public static readonly
Result
<T> Abort = new(false, default);
13
public static readonly
Result
<T> Empty = new(true, default);
31
public static implicit operator
Result
<T>(T value) => new(value);
EmbeddedLanguages\StackFrame\StackFrameLexer.cs (10)
236
public
Result
<StackFrameToken> TryScanPath()
241
return
Result
<StackFrameToken>.Empty;
279
return
Result
<StackFrameToken>.Abort;
331
public
Result
<StackFrameToken> TryScanRequiredGeneratedNameSeparator()
340
return
Result
<StackFrameToken>.Abort;
349
return
Result
<StackFrameToken>.Abort;
358
public
Result
<StackFrameToken> TryScanRequiredGeneratedNameSuffix()
365
return
Result
<StackFrameToken>.Abort;
374
return
Result
<StackFrameToken>.Abort;
380
return
Result
<StackFrameToken>.Abort;
EmbeddedLanguages\StackFrame\StackFrameParser.cs (34)
79
var
fileInformationResult = TryParseFileInformation();
186
private
Result
<StackFrameQualifiedNameNode> TryParseQualifiedName(StackFrameNameNode lhs)
190
return
Result
<StackFrameQualifiedNameNode>.Empty;
197
return
Result
<StackFrameQualifiedNameNode>.Abort;
204
return
Result
<StackFrameQualifiedNameNode>.Abort;
216
return
Result
<StackFrameQualifiedNameNode>.Abort;
223
return
Result
<StackFrameQualifiedNameNode>.Abort;
253
private
Result
<StackFrameGeneratedNameNode> TryScanGeneratedName()
257
return
Result
<StackFrameGeneratedNameNode>.Empty;
264
return
Result
<StackFrameGeneratedNameNode>.Abort;
270
return
Result
<StackFrameGeneratedNameNode>.Abort;
275
return
Result
<StackFrameGeneratedNameNode>.Abort;
294
return
Result
<StackFrameGeneratedNameNode>.Abort;
300
return
Result
<StackFrameGeneratedNameNode>.Abort;
305
return
Result
<StackFrameGeneratedNameNode>.Abort;
311
return
Result
<StackFrameGeneratedNameNode>.Abort;
318
return
Result
<StackFrameGeneratedNameNode>.Abort;
332
private
Result
<StackFrameSimpleNameNode> TryScanGenericTypeIdentifier(StackFrameToken identifierToken)
347
return
Result
<StackFrameSimpleNameNode>.Abort;
362
private
Result
<StackFrameTypeArgumentList> TryParseTypeArguments()
368
return
Result
<StackFrameTypeArgumentList>.Empty;
390
return
Result
<StackFrameTypeArgumentList>.Abort;
399
return
Result
<StackFrameTypeArgumentList>.Abort;
404
return
Result
<StackFrameTypeArgumentList>.Abort;
467
private
Result
<StackFrameParameterDeclarationNode> ParseParameterNode()
472
return
Result
<StackFrameParameterDeclarationNode>.Abort;
481
return
Result
<StackFrameParameterDeclarationNode>.Abort;
490
return
Result
<StackFrameParameterDeclarationNode>.Abort;
503
private
Result
<ImmutableArray<StackFrameArrayRankSpecifier>> ParseArrayRankSpecifiers()
522
return
Result
<ImmutableArray<StackFrameArrayRankSpecifier>>.Abort;
536
private
Result
<StackFrameFileInformationNode> TryParseFileInformation()
541
return
Result
<StackFrameFileInformationNode>.Abort;
546
return
Result
<StackFrameFileInformationNode>.Empty;
557
return
Result
<StackFrameFileInformationNode>.Abort;