Created
February 28, 2023 11:32
-
-
Save FaustVX/15cd638004263aca6e0301826fafabe0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.reddit.com/r/csharp/comments/11dvyw6/comment/jabuqh5/ | |
using System; | |
using System.Text; | |
Console.WriteLine(ToRoman(3999)); | |
static string ToRoman(int i) | |
{ | |
return i >= 0 ? Impl(i, new()).ToString() : throw new ArgumentOutOfRangeException(nameof(i), i, "Should be greater than or equals to 0"); | |
static StringBuilder Impl(int i, StringBuilder sb) | |
=> i switch | |
{ | |
>= 1000 => Impl(i - 1000, sb.Append("M")), | |
>= 900 => Impl(i - 900, sb.Append("CM")), | |
>= 500 => Impl(i - 500, sb.Append("D")), | |
>= 400 => Impl(i - 400, sb.Append("CD")), | |
>= 100 => Impl(i - 100, sb.Append("C")), | |
>= 90 => Impl(i - 90, sb.Append("XC")), | |
>= 50 => Impl(i - 50, sb.Append("L")), | |
>= 40 => Impl(i - 40, sb.Append("XL")), | |
>= 10 => Impl(i - 10, sb.Append("X")), | |
>= 9 => Impl(i - 9, sb.Append("IX")), | |
>= 5 => Impl(i - 5, sb.Append("V")), | |
>= 4 => Impl(i - 4, sb.Append("IV")), | |
>= 1 => Impl(i - 1, sb.Append("I")), | |
_ => sb, | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"type": "node", | |
"kind": "CompilationUnit", | |
"range": "0-1137", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "MethodBodyOperation", | |
"properties": {} | |
}, | |
{ | |
"type": "node", | |
"kind": "UsingDirective", | |
"range": "0-87", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "UsingKeyword", | |
"property": "UsingKeyword", | |
"range": "0-78", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "SingleLineCommentTrivia", | |
"range": "0-68", | |
"value": "// https://www.reddit.com/r/csharp/comments/11dvyw6/comment/jabuqh5/" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "68-70", | |
"value": "\r\n" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "70-72", | |
"value": "\r\n" | |
}, | |
{ | |
"type": "value", | |
"value": "using", | |
"range": "72-77" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "77-78", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "78-84", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "78-84", | |
"value": "System" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "SemicolonToken", | |
"property": "SemicolonToken", | |
"range": "84-87", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ";", | |
"range": "84-85" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "85-87", | |
"value": "\r\n" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "UsingDirective", | |
"range": "87-107", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "UsingKeyword", | |
"property": "UsingKeyword", | |
"range": "87-93", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "using", | |
"range": "87-92" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "92-93", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "QualifiedName", | |
"property": "Name", | |
"range": "93-104", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "93-99", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "93-99", | |
"value": "System" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "DotToken", | |
"range": "99-100", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Right", | |
"range": "100-104", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "100-104", | |
"value": "Text" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "SemicolonToken", | |
"property": "SemicolonToken", | |
"range": "104-107", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ";", | |
"range": "104-105" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "105-107", | |
"value": "\r\n" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "GlobalStatement", | |
"range": "107-144", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "ExpressionStatement", | |
"property": "Statement", | |
"range": "107-144", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ExpressionStatement", | |
"properties": {} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "107-141", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Console.WriteLine(string?)", | |
"Type": "void" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "107-126", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "107-116", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "107-116", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "107-109", | |
"value": "\r\n" | |
}, | |
{ | |
"type": "value", | |
"value": "Console", | |
"range": "109-116" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "116-117", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "117-126", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "117-126", | |
"value": "WriteLine" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "126-141", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "126-127", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "127-140", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "127-140", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "ToRoman(int)", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "127-134", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "127-134", | |
"value": "ToRoman" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "134-140", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "134-135", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "135-139", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "135-139", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "3999", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "135-139", | |
"value": "3999" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "139-140", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "140-141", | |
"value": ")" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "SemicolonToken", | |
"property": "SemicolonToken", | |
"range": "141-144", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ";", | |
"range": "141-142" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "142-144", | |
"value": "\r\n" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "GlobalStatement", | |
"range": "144-1137", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "LocalFunctionStatement", | |
"property": "Statement", | |
"range": "144-1137", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "LocalFunction", | |
"properties": { | |
"Symbol": "ToRoman(int)" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StaticKeyword", | |
"range": "144-153", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "144-146", | |
"value": "\r\n" | |
}, | |
{ | |
"type": "value", | |
"value": "static", | |
"range": "146-152" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "152-153", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "PredefinedType", | |
"property": "ReturnType", | |
"range": "153-160", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "StringKeyword", | |
"property": "Keyword", | |
"range": "153-160", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "string", | |
"range": "153-159" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "159-160", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "160-167", | |
"value": "ToRoman" | |
}, | |
{ | |
"type": "node", | |
"kind": "ParameterList", | |
"property": "ParameterList", | |
"range": "167-176", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "167-168", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Parameter", | |
"range": "168-173", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "PredefinedType", | |
"property": "Type", | |
"range": "168-172", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IntKeyword", | |
"property": "Keyword", | |
"range": "168-172", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "int", | |
"range": "168-171" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "171-172", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "172-173", | |
"value": "i" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "173-176", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ")", | |
"range": "173-174" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "174-176", | |
"value": "\r\n" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Block", | |
"property": "Body", | |
"range": "176-1137", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Block", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "OpenBraceToken", | |
"property": "OpenBraceToken", | |
"range": "176-179", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "{", | |
"range": "176-177" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "177-179", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ReturnStatement", | |
"range": "179-322", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Return", | |
"properties": {} | |
}, | |
{ | |
"type": "token", | |
"kind": "ReturnKeyword", | |
"property": "ReturnKeyword", | |
"range": "179-190", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "179-183", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": "return", | |
"range": "183-189" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "189-190", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ConditionalExpression", | |
"property": "Expression", | |
"range": "190-319", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Conditional", | |
"properties": { | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "GreaterThanOrEqualExpression", | |
"property": "Condition", | |
"range": "190-197", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "GreaterThanOrEqual", | |
"Type": "bool" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "190-192", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "190-192", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "190-191" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "191-192", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "192-195", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "192-194" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "194-195", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "195-197", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "0", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "195-197", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "0", | |
"range": "195-196" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "196-197", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "QuestionToken", | |
"property": "QuestionToken", | |
"range": "197-199", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "?", | |
"range": "197-198" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "198-199", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "WhenTrue", | |
"range": "199-225", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"IsVirtual": true, | |
"TargetMethod": "System.Text.StringBuilder.ToString()", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "199-222", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "199-213", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "199-203", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "199-203", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "203-213", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "203-204", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "204-205", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "204-205", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "204-205", | |
"value": "i" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "205-207", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "205-206" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "206-207", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "207-212", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "ImplicitObjectCreationExpression", | |
"property": "Expression", | |
"range": "207-212", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ObjectCreation", | |
"properties": { | |
"Constructor": "System.Text.StringBuilder.StringBuilder()", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NewKeyword", | |
"property": "NewKeyword", | |
"range": "207-210", | |
"value": "new" | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "210-212", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "210-211", | |
"value": "(" | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "211-212", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "212-213", | |
"value": ")" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "213-214", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "214-222", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "214-222", | |
"value": "ToString" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "222-225", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "222-223", | |
"value": "(" | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "223-225", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ")", | |
"range": "223-224" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "224-225", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "ColonToken", | |
"property": "ColonToken", | |
"range": "225-227", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ":", | |
"range": "225-226" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "226-227", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ThrowExpression", | |
"property": "WhenFalse", | |
"range": "227-319", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Throw", | |
"properties": {} | |
}, | |
{ | |
"type": "token", | |
"kind": "ThrowKeyword", | |
"property": "ThrowKeyword", | |
"range": "227-233", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "throw", | |
"range": "227-232" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "232-233", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ObjectCreationExpression", | |
"property": "Expression", | |
"range": "233-319", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ObjectCreation", | |
"properties": { | |
"Constructor": "System.ArgumentOutOfRangeException.ArgumentOutOfRangeException(string?, object?, string?)", | |
"Type": "System.ArgumentOutOfRangeException" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NewKeyword", | |
"property": "NewKeyword", | |
"range": "233-237", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "new", | |
"range": "233-236" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "236-237", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Type", | |
"range": "237-264", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "237-264", | |
"value": "ArgumentOutOfRangeException" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "264-319", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "264-265", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "265-274", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? paramName" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "265-274", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "NameOf", | |
"properties": { | |
"ConstantValue": "i", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "265-271", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "265-271", | |
"value": "nameof" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "271-274", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "271-272", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "272-273", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "272-273", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "272-273", | |
"value": "i" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "273-274", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "274-276", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "274-275" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "275-276", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "276-277", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "object? actualValue" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "276-277", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "276-277", | |
"value": "i" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "277-279", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "277-278" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "278-279", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "279-318", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? message" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "279-318", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "Should be greater than or equals to 0", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "279-318", | |
"value": "\"Should be greater than or equals to 0\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "318-319", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "SemicolonToken", | |
"property": "SemicolonToken", | |
"range": "319-322", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ";", | |
"range": "319-320" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "320-322", | |
"value": "\r\n" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "LocalFunctionStatement", | |
"range": "322-1136", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "LocalFunction", | |
"properties": { | |
"Symbol": "Impl(int, System.Text.StringBuilder)" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StaticKeyword", | |
"range": "322-339", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "322-326", | |
"value": " " | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "326-328", | |
"value": "\r\n" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "328-332", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": "static", | |
"range": "332-338" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "338-339", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "ReturnType", | |
"range": "339-353", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "339-353", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "StringBuilder", | |
"range": "339-352" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "352-353", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "353-357", | |
"value": "Impl" | |
}, | |
{ | |
"type": "node", | |
"kind": "ParameterList", | |
"property": "ParameterList", | |
"range": "357-384", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "357-358", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Parameter", | |
"range": "358-363", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "PredefinedType", | |
"property": "Type", | |
"range": "358-362", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IntKeyword", | |
"property": "Keyword", | |
"range": "358-362", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "int", | |
"range": "358-361" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "361-362", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "362-363", | |
"value": "i" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "363-365", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "363-364" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "364-365", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Parameter", | |
"range": "365-381", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Type", | |
"range": "365-379", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "365-379", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "StringBuilder", | |
"range": "365-378" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "378-379", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "379-381", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "381-384", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ")", | |
"range": "381-382" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "382-384", | |
"value": "\r\n" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArrowExpressionClause", | |
"property": "ExpressionBody", | |
"range": "384-1133", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Block", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "ArrowToken", | |
"range": "384-395", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "384-392", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "392-394" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "394-395", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpression", | |
"property": "Expression", | |
"range": "395-1133", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpression", | |
"properties": { | |
"IsExhaustive": true, | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "GoverningExpression", | |
"range": "395-397", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "395-397", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "395-396" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "396-397", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "SwitchKeyword", | |
"property": "SwitchKeyword", | |
"range": "397-405", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "switch", | |
"range": "397-403" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "403-405", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "OpenBraceToken", | |
"property": "OpenBraceToken", | |
"range": "405-416", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "405-413", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": "{", | |
"range": "413-414" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "414-416", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "416-469", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "416-436", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "416-431", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "416-428", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "428-430" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "430-431", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "431-436", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "1000", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "431-436", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "1000", | |
"range": "431-435" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "435-436", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "436-439", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "436-438" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "438-439", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "439-469", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "439-443", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "439-443", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "443-469", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "443-444", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "444-452", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "444-452", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "444-446", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "444-446", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "444-445" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "445-446", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "446-448", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "446-447" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "447-448", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "448-452", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "1000", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "448-452", | |
"value": "1000" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "452-454", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "452-453" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "453-454", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "454-468", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "454-468", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "454-463", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "454-456", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "454-456", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "456-457", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "457-463", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "457-463", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "463-468", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "463-464", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "464-467", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "464-467", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "M", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "464-467", | |
"value": "\"M\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "467-468", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "468-469", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "469-472", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "469-470" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "470-472", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "472-524", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "472-491", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "472-487", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "472-484", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "484-486" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "486-487", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "487-491", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "900", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "487-491", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "900", | |
"range": "487-490" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "490-491", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "491-494", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "491-493" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "493-494", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "494-524", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "494-498", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "494-498", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "498-524", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "498-499", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "499-506", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "499-506", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "499-501", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "499-501", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "499-500" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "500-501", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "501-503", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "501-502" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "502-503", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "503-506", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "900", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "503-506", | |
"value": "900" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "506-508", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "506-507" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "507-508", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "508-523", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "508-523", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "508-517", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "508-510", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "508-510", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "510-511", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "511-517", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "511-517", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "517-523", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "517-518", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "518-522", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "518-522", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "CM", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "518-522", | |
"value": "\"CM\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "522-523", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "523-524", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "524-527", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "524-525" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "525-527", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "527-578", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "527-546", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "527-542", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "527-539", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "539-541" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "541-542", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "542-546", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "500", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "542-546", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "500", | |
"range": "542-545" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "545-546", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "546-549", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "546-548" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "548-549", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "549-578", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "549-553", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "549-553", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "553-578", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "553-554", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "554-561", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "554-561", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "554-556", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "554-556", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "554-555" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "555-556", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "556-558", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "556-557" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "557-558", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "558-561", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "500", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "558-561", | |
"value": "500" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "561-563", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "561-562" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "562-563", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "563-577", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "563-577", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "563-572", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "563-565", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "563-565", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "565-566", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "566-572", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "566-572", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "572-577", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "572-573", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "573-576", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "573-576", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "D", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "573-576", | |
"value": "\"D\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "576-577", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "577-578", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "578-581", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "578-579" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "579-581", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "581-633", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "581-600", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "581-596", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "581-593", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "593-595" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "595-596", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "596-600", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "400", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "596-600", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "400", | |
"range": "596-599" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "599-600", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "600-603", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "600-602" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "602-603", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "603-633", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "603-607", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "603-607", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "607-633", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "607-608", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "608-615", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "608-615", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "608-610", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "608-610", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "608-609" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "609-610", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "610-612", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "610-611" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "611-612", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "612-615", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "400", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "612-615", | |
"value": "400" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "615-617", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "615-616" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "616-617", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "617-632", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "617-632", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "617-626", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "617-619", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "617-619", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "619-620", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "620-626", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "620-626", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "626-632", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "626-627", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "627-631", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "627-631", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "CD", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "627-631", | |
"value": "\"CD\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "631-632", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "632-633", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "633-636", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "633-634" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "634-636", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "636-687", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "636-655", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "636-651", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "636-648", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "648-650" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "650-651", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "651-655", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "100", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "651-655", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "100", | |
"range": "651-654" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "654-655", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "655-658", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "655-657" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "657-658", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "658-687", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "658-662", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "658-662", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "662-687", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "662-663", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "663-670", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "663-670", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "663-665", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "663-665", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "663-664" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "664-665", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "665-667", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "665-666" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "666-667", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "667-670", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "100", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "667-670", | |
"value": "100" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "670-672", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "670-671" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "671-672", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "672-686", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "672-686", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "672-681", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "672-674", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "672-674", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "674-675", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "675-681", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "675-681", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "681-686", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "681-682", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "682-685", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "682-685", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "C", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "682-685", | |
"value": "\"C\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "685-686", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "686-687", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "687-690", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "687-688" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "688-690", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "690-740", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "690-708", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "690-705", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "690-702", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "702-704" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "704-705", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "705-708", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "90", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "705-708", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "90", | |
"range": "705-707" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "707-708", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "708-711", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "708-710" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "710-711", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "711-740", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "711-715", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "711-715", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "715-740", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "715-716", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "716-722", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "716-722", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "716-718", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "716-718", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "716-717" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "717-718", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "718-720", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "718-719" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "719-720", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "720-722", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "90", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "720-722", | |
"value": "90" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "722-724", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "722-723" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "723-724", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "724-739", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "724-739", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "724-733", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "724-726", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "724-726", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "726-727", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "727-733", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "727-733", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "733-739", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "733-734", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "734-738", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "734-738", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "XC", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "734-738", | |
"value": "\"XC\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "738-739", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "739-740", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "740-743", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "740-741" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "741-743", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "743-792", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "743-761", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "743-758", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "743-755", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "755-757" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "757-758", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "758-761", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "50", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "758-761", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "50", | |
"range": "758-760" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "760-761", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "761-764", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "761-763" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "763-764", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "764-792", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "764-768", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "764-768", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "768-792", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "768-769", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "769-775", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "769-775", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "769-771", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "769-771", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "769-770" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "770-771", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "771-773", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "771-772" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "772-773", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "773-775", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "50", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "773-775", | |
"value": "50" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "775-777", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "775-776" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "776-777", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "777-791", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "777-791", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "777-786", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "777-779", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "777-779", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "779-780", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "780-786", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "780-786", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "786-791", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "786-787", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "787-790", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "787-790", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "L", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "787-790", | |
"value": "\"L\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "790-791", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "791-792", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "792-795", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "792-793" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "793-795", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "795-845", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "795-813", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "795-810", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "795-807", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "807-809" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "809-810", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "810-813", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "40", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "810-813", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "40", | |
"range": "810-812" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "812-813", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "813-816", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "813-815" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "815-816", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "816-845", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "816-820", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "816-820", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "820-845", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "820-821", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "821-827", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "821-827", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "821-823", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "821-823", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "821-822" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "822-823", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "823-825", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "823-824" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "824-825", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "825-827", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "40", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "825-827", | |
"value": "40" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "827-829", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "827-828" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "828-829", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "829-844", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "829-844", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "829-838", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "829-831", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "829-831", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "831-832", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "832-838", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "832-838", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "838-844", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "838-839", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "839-843", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "839-843", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "XL", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "839-843", | |
"value": "\"XL\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "843-844", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "844-845", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "845-848", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "845-846" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "846-848", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "848-897", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "848-866", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "848-863", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "848-860", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "860-862" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "862-863", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "863-866", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "10", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "863-866", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "10", | |
"range": "863-865" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "865-866", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "866-869", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "866-868" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "868-869", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "869-897", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "869-873", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "869-873", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "873-897", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "873-874", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "874-880", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "874-880", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "874-876", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "874-876", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "874-875" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "875-876", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "876-878", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "876-877" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "877-878", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "878-880", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "10", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "878-880", | |
"value": "10" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "880-882", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "880-881" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "881-882", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "882-896", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "882-896", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "882-891", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "882-884", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "882-884", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "884-885", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "885-891", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "885-891", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "891-896", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "891-892", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "892-895", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "892-895", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "X", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "892-895", | |
"value": "\"X\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "895-896", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "896-897", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "897-900", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "897-898" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "898-900", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "900-948", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "900-917", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "900-915", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "900-912", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "912-914" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "914-915", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "915-917", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "9", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "915-917", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "9", | |
"range": "915-916" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "916-917", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "917-920", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "917-919" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "919-920", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "920-948", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "920-924", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "920-924", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "924-948", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "924-925", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "925-930", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "925-930", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "925-927", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "925-927", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "925-926" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "926-927", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "927-929", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "927-928" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "928-929", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "929-930", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "9", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "929-930", | |
"value": "9" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "930-932", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "930-931" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "931-932", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "932-947", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "932-947", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "932-941", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "932-934", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "932-934", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "934-935", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "935-941", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "935-941", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "941-947", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "941-942", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "942-946", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "942-946", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "IX", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "942-946", | |
"value": "\"IX\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "946-947", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "947-948", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "948-951", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "948-949" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "949-951", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "951-998", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "951-968", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "951-966", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "951-963", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "963-965" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "965-966", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "966-968", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "5", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "966-968", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "5", | |
"range": "966-967" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "967-968", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "968-971", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "968-970" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "970-971", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "971-998", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "971-975", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "971-975", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "975-998", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "975-976", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "976-981", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "976-981", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "976-978", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "976-978", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "976-977" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "977-978", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "978-980", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "978-979" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "979-980", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "980-981", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "5", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "980-981", | |
"value": "5" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "981-983", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "981-982" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "982-983", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "983-997", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "983-997", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "983-992", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "983-985", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "983-985", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "985-986", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "986-992", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "986-992", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "992-997", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "992-993", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "993-996", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "993-996", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "V", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "993-996", | |
"value": "\"V\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "996-997", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "997-998", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "998-1001", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "998-999" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "999-1001", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "1001-1049", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "1001-1018", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "1001-1016", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1001-1013", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "1013-1015" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1015-1016", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "1016-1018", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "4", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "1016-1018", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "4", | |
"range": "1016-1017" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1017-1018", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "1018-1021", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "1018-1020" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1020-1021", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "1021-1049", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "1021-1025", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "1021-1025", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "1025-1049", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "1025-1026", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "1026-1031", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "1026-1031", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "1026-1028", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "1026-1028", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "1026-1027" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1027-1028", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "1028-1030", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "1028-1029" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1029-1030", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "1030-1031", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "4", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "1030-1031", | |
"value": "4" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "1031-1033", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "1031-1032" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1032-1033", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "1033-1048", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "1033-1048", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "1033-1042", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "1033-1035", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "1033-1035", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "1035-1036", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "1036-1042", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "1036-1042", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "1042-1048", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "1042-1043", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "1043-1047", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "1043-1047", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "IV", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "1043-1047", | |
"value": "\"IV\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "1047-1048", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "1048-1049", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "1049-1052", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "1049-1050" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "1050-1052", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "1052-1099", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "RelationalPattern", | |
"property": "Pattern", | |
"range": "1052-1069", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "RelationalPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int", | |
"OperatorKind": "GreaterThanOrEqual" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "GreaterThanEqualsToken", | |
"property": "OperatorToken", | |
"range": "1052-1067", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1052-1064", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": ">=", | |
"range": "1064-1066" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1066-1067", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Expression", | |
"range": "1067-1069", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "1", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "1067-1069", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "1", | |
"range": "1067-1068" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1068-1069", | |
"value": " " | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "1069-1072", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "1069-1071" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1071-1072", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "1072-1099", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "Impl(int, System.Text.StringBuilder)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "1072-1076", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "1072-1076", | |
"value": "Impl" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "1076-1099", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "1076-1077", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "1077-1082", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "int i" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SubtractExpression", | |
"property": "Expression", | |
"range": "1077-1082", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "BinaryOperator", | |
"properties": { | |
"OperatorKind": "Subtract", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Left", | |
"range": "1077-1079", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "int i", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "1077-1079", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "i", | |
"range": "1077-1078" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1078-1079", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "MinusToken", | |
"property": "OperatorToken", | |
"range": "1079-1081", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "-", | |
"range": "1079-1080" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1080-1081", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "NumericLiteralExpression", | |
"property": "Right", | |
"range": "1081-1082", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "1", | |
"Type": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "NumericLiteralToken", | |
"property": "Token", | |
"range": "1081-1082", | |
"value": "1" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "1082-1084", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "1082-1083" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1083-1084", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "1084-1098", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "System.Text.StringBuilder sb" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "InvocationExpression", | |
"property": "Expression", | |
"range": "1084-1098", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Invocation", | |
"properties": { | |
"TargetMethod": "System.Text.StringBuilder.Append(string?)", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "SimpleMemberAccessExpression", | |
"property": "Expression", | |
"range": "1084-1093", | |
"children": [ | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "1084-1086", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "1084-1086", | |
"value": "sb" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "DotToken", | |
"property": "OperatorToken", | |
"range": "1086-1087", | |
"value": "." | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Name", | |
"range": "1087-1093", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "1087-1093", | |
"value": "Append" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "ArgumentList", | |
"property": "ArgumentList", | |
"range": "1093-1098", | |
"children": [ | |
{ | |
"type": "token", | |
"kind": "OpenParenToken", | |
"property": "OpenParenToken", | |
"range": "1093-1094", | |
"value": "(" | |
}, | |
{ | |
"type": "node", | |
"kind": "Argument", | |
"range": "1094-1097", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Argument", | |
"properties": { | |
"ArgumentKind": "Explicit", | |
"InConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"OutConversion": "Microsoft.CodeAnalysis.Operations.CommonConversion", | |
"Parameter": "string? value" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "StringLiteralExpression", | |
"property": "Expression", | |
"range": "1094-1097", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "Literal", | |
"properties": { | |
"ConstantValue": "I", | |
"Type": "string" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "StringLiteralToken", | |
"property": "Token", | |
"range": "1094-1097", | |
"value": "\"I\"" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "1097-1098", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseParenToken", | |
"property": "CloseParenToken", | |
"range": "1098-1099", | |
"value": ")" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "1099-1102", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "1099-1100" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "1100-1102", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "SwitchExpressionArm", | |
"range": "1102-1121", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "SwitchExpressionArm", | |
"properties": { | |
"Locals": "<skipped>" | |
} | |
}, | |
{ | |
"type": "node", | |
"kind": "DiscardPattern", | |
"property": "Pattern", | |
"range": "1102-1116", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "DiscardPattern", | |
"properties": { | |
"InputType": "int", | |
"NarrowedType": "int" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "UnderscoreToken", | |
"property": "UnderscoreToken", | |
"range": "1102-1116", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1102-1114", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": "_", | |
"range": "1114-1115" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1115-1116", | |
"value": " " | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EqualsGreaterThanToken", | |
"property": "EqualsGreaterThanToken", | |
"range": "1116-1119", | |
"children": [ | |
{ | |
"type": "value", | |
"value": "=>", | |
"range": "1116-1118" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1118-1119", | |
"value": " " | |
} | |
] | |
}, | |
{ | |
"type": "node", | |
"kind": "IdentifierName", | |
"property": "Expression", | |
"range": "1119-1121", | |
"children": [ | |
{ | |
"type": "operation", | |
"property": "Operation", | |
"kind": "ParameterReference", | |
"properties": { | |
"Parameter": "System.Text.StringBuilder sb", | |
"Type": "System.Text.StringBuilder" | |
} | |
}, | |
{ | |
"type": "token", | |
"kind": "IdentifierToken", | |
"property": "Identifier", | |
"range": "1119-1121", | |
"value": "sb" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CommaToken", | |
"range": "1121-1124", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ",", | |
"range": "1121-1122" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "1122-1124", | |
"value": "\r\n" | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseBraceToken", | |
"property": "CloseBraceToken", | |
"range": "1124-1133", | |
"children": [ | |
{ | |
"type": "trivia", | |
"kind": "WhitespaceTrivia", | |
"range": "1124-1132", | |
"value": " " | |
}, | |
{ | |
"type": "value", | |
"value": "}", | |
"range": "1132-1133" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "SemicolonToken", | |
"property": "SemicolonToken", | |
"range": "1133-1136", | |
"children": [ | |
{ | |
"type": "value", | |
"value": ";", | |
"range": "1133-1134" | |
}, | |
{ | |
"type": "trivia", | |
"kind": "EndOfLineTrivia", | |
"range": "1134-1136", | |
"value": "\r\n" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "CloseBraceToken", | |
"property": "CloseBraceToken", | |
"range": "1136-1137", | |
"value": "}" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "token", | |
"kind": "EndOfFileToken", | |
"property": "EndOfFileToken", | |
"range": "1137-1137", | |
"value": "" | |
} | |
] | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"target": "AST", | |
"mode": "Release", | |
"branch": "main" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment