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