Main program: CSharp_Program
CSharp syntax:
Count | Terminals: | |
88 | CSharp_Character_Literal: quotes:' escape:\ doubled:no multiline:no | |
562 | CSharp_Class_Definition: An identifier | |
2,097 | CSharp_Comment: #region or /* comment */ or // comment to end of line | |
CSharp_CommentToEndOfLine: comment to end of line | ||
411 | CSharp_Current_Class_Reference: An identifier | |
CSharp_HexNumber: A hex number | ||
5,034 | CSharp_Identifier: An identifier | |
57,425 | CSharp_Identifier_Reference: An identifier | |
CSharp_Label_Reference: An identifier | ||
6,195 | CSharp_Literal: C# literals may have @ or $ | |
3,594 | CSharp_Method_Definition: An identifier | |
1,837 | CSharp_Number: exponent_chars:Ee suffix_chars:LlFfDdUuMm trailing_period:yes ignore_char:none | |
CSharp_Type_Definition: An identifier | ||
8,806 | CSharp_Variable_Definition: An identifier | |
Count | Statistics(*) | Tokens: |
213 | all all none all | CSharp_Annotation: '[' CSharp_AnnotationItem [CSharp_MoreAnnotations]* ']' |
213 | 6% 39% all all 1.28 99% | | CSharp_AnnotationItem: [CSharp_AnnotionGlobal] [CSharp_AnnotionAssembly] ["global"] ["::"] CSharp_Identifier* [CSharp_AnnotationParams] |
210 | all all all | | CSharp_AnnotationParams: '(' [CSharp_ArgumentList] ')' |
84 | all all | | CSharp_AnnotionAssembly: ("assembly"|"return") ':' |
12 | all all | | CSharp_AnnotionGlobal: "global" "::" |
| CSharp_MoreAnnotations: ',' CSharp_AnnotationItem | ||
14,661 | (97% | none | 3%) | CSharp_Argument: (CSharp_ArgumentOut | CSharp_ArgumentOutType | CSharp_ArgumentRef) |
14,292 | all all | | CSharp_ArgumentOut: ["out"] CSharp_Expression |
| CSharp_ArgumentOutType: "out" CSharp_Type CSharp_Expression | ||
369 | all all | | CSharp_ArgumentRef: "ref" CSharp_Expression |
11,051 | 78% 1.65(33%) none | CSharp_ArgumentList: [CSharp_Argument] [CSharp_MoreArguments]* [','] |
6,074 | all all 1.00(0%) | | CSharp_MoreArguments: ',' [CSharp_Argument] [CSharp_Comment]* |
562 | 1.42(6%) 1.21(all) all all 0% 67% none all 9.67(all) all none | CSharp_Class: [CSharp_AnnotationOrComment]* [CSharp_ClassModifier]* ("class"|"interface"|"struct") CSharp_Class_Definition [CSharp_GenericType] [CSharp_ExtendsOrImplements] [CSharp_Comment]* '{' [CSharp_ClassElement]* '}' [';'] |
47 | (all | none) | | CSharp_AnnotationOrComment: (CSharp_Annotation | CSharp_Comment) |
5,436 | (66% | 3% | 8% | none | none | none | none | none | 24%) | | CSharp_ClassElement: (CSharp_Method | CSharp_Comment | CSharp_Constructor | CSharp_Operator | CSharp_PragmaDirective | CSharp_Property | CSharp_RegionDirective | CSharp_SubscriptOperator | CSharp_Statement) |
682 | all | | CSharp_ClassModifier: ("abstract"|"async"|"const"|"delegate"|"event"|"extern"|"final"|"internal"|"lock"|"override"|"partial"|"private"|"protected"|"public"|"readonly"|"ref"|"sealed"|"static"|"unsafe"|"virtual") |
377 | all none 1.97 2% none 1.24(13%) | | CSharp_ExtendsOrImplements: ':' [CSharp_NamespaceQualifer] CSharp_Identifier_Reference* [CSharp_GenericType] [CSharp_GenericWhere] [CSharp_MoreImplements]* |
| | CSharp_GenericWhere: "where" CSharp_Identifier_Reference ':' CSharp_Type | ||
62 | all 2.29 none none | | | CSharp_MoreImplements: ',' CSharp_Identifier_Reference* [CSharp_GenericType] [CSharp_GenericWhere] |
| | CSharp_NamespaceQualifer: CSharp_Identifier_Reference "::" | ||
411 | none 1.00(0%) 1.00(all) all all all 3.57(87%) all 68% all | CSharp_Constructor: [CSharp_Comment]* [CSharp_Annotation]* [CSharp_MethodModifier]* ['~'] CSharp_Current_Class_Reference '(' [CSharp_MethodParameter]* ')' [CSharp_ExtendsBase] CSharp_MethodBody |
281 | all all all all all | | CSharp_ExtendsBase: ':' ("base"|"this") '(' [CSharp_ArgumentList] ')' |
4,373 | all all 1.38(3%) | CSharp_Data: CSharp_DataBeforeSemicolon ';' [CSharp_Comment]* |
4,420 | none 1.38(24%) none all all none none 95% 1.59(1%) | | CSharp_DataBeforeSemicolon: [CSharp_Annotation]* [CSharp_DataModifier]* [CSharp_Annotation]* CSharp_Type CSharp_Variable_Definition ['['] [']'] [CSharp_DataInitialValue] [CSharp_MoreIdentifiers]* |
4,189 | all all | | CSharp_DataInitialValue: '=' CSharp_Expression |
1,474 | all | | CSharp_DataModifier: ("abstract"|"async"|"const"|"delegate"|"event"|"extern"|"final"|"internal"|"lock"|"override"|"partial"|"private"|"protected"|"public"|"readonly"|"ref"|"sealed"|"static"|"unsafe"|"virtual") |
89 | all all none none 10% | | CSharp_MoreIdentifiers: ',' CSharp_Variable_Definition ['['] [']'] [CSharp_DataInitialValue] |
17 | none 1.00(all) all all none all 1.00(6%) all 6% 6.47(all) none all 88% | CSharp_Enum: [CSharp_Annotation]* [CSharp_DataModifier]* "enum" CSharp_Variable_Definition [CSharp_Enum_Basetype] '{' [CSharp_Comment]* CSharp_Variable_Definition [CSharp_EnumInitializer] [CSharp_MoreEnums]* [','] '}' [';'] |
3 | all all | | CSharp_EnumInitializer: '=' CSharp_Expression |
| CSharp_Enum_Basetype: ':' CSharp_Type | ||
110 | all all 2% | | CSharp_MoreEnums: ',' CSharp_Variable_Definition [CSharp_EnumInitializer] |
56,939 | (none | 3% | 11% | 0% | 0% | none | none | 1% | 0% | none | 4% | 0% | 0% | 14% | 0% | 1% | 0% | none | 1% | none | 4% | 0% | none | 41% | 0% | 1% | none | 0% | none | none | none | none | 0% | 0% | 0% | 0% | 0% | 0% | 0% | 0% | 1% | 0% | 4% | none | 3% | 0% | 0% | none | none | 0% | 0% | 0% | 0% | 8% | none | none) | CSharp_Expression: (CSharp_HexNumber | CSharp_Number | CSharp_Literal | CSharp_Character_Literal | CSharp_MathFunction | CSharp_StringFunction | CSharp_DotClass | CSharp_CastExpression | CSharp_ExpressionList | CSharp_InterfaceCreationWithMethod | CSharp_ClassCreationExpression | CSharp_ClassCreationWithInitializers | CSharp_ClassCreationWithSubscript | CSharp_MethodInvocation | CSharp_PreIncrementExpression | CSharp_PostIncrementExpression | CSharp_NegativeExpression | CSharp_BitwiseNotExpression | CSharp_LogicalNotExpression | CSharp_DefaultGeneric | CSharp_BuiltIn | CSharp_ConsoleOut | CSharp_ConsoleRead | CSharp_VariableExpression | CSharp_TypeExpression | CSharp_ParenthesizedExpression | CSharp_CommentExpression | CSharp_SizeOfFunction | CSharp_Delegation | CSharp_LambdaBlock | CSharp_LambdaParameters | CSharp_IndexOfMethod | CSharp_SubscriptExpression | CSharp_NamespaceExpression | CSharp_ToUpperMethod | CSharp_TrimMethod | CSharp_ToStringMethod | CSharp_SubstringMethod | CSharp_StartsWithMethod | CSharp_LengthMethod | CSharp_SubfieldExpression | CSharp_MultiplicativeExpression | CSharp_AdditiveExpression | CSharp_ShiftExpression | CSharp_RelationalExpression | CSharp_InstanceOfExpression | CSharp_CastAsExpression | CSharp_EqualityExpression | CSharp_BitwiseAndExpression | CSharp_BitwiseOrExpression | CSharp_LogicalAndExpression | CSharp_LogicalOrExpression | CSharp_TrueFalseExpression | CSharp_AssignmentExpression | CSharp_LambdaFunction | CSharp_LambdaExpression) |
3,594 | 1.00(1%) 3.08(1%) 1.34(98%) none all all all all none 58% none all none | CSharp_Method: [CSharp_Comment]* [CSharp_Annotation]* [CSharp_MethodModifier]* [CSharp_Comment]* CSharp_Type ["global"] ["::"] CSharp_Method_Definition [CSharp_GenericType] [CSharp_MethodParameters] [CSharp_MethodWhere]* CSharp_MethodBody [';'] |
4,005 | (none | 30% | 70%) | | CSharp_MethodBody: (CSharp_MethodLambda | ';' | CSharp_MethodImplementation) |
| | CSharp_MethodLambda: "=>" ["ref"] CSharp_Expression | ||
5,109 | all | | CSharp_MethodModifier: ("abstract"|"async"|"const"|"delegate"|"event"|"extern"|"final"|"internal"|"lock"|"override"|"partial"|"private"|"protected"|"public"|"readonly"|"ref"|"sealed"|"static"|"unsafe"|"virtual") |
3,966 | none all all all all none | | CSharp_MethodParameter: [CSharp_Annotation] [("ref"|"out"|"this"|"params")] CSharp_Type CSharp_Variable_Definition ["[]"] [CSharp_MethodParamDefault] |
| | CSharp_MethodParamDefault: '=' CSharp_Expression | ||
2,091 | all 2.71(81%) all 0% | | CSharp_MethodParameters: '(' [CSharp_MethodParameter]* ')' [CSharp_Comment] |
| CSharp_MethodWhere: "where" CSharp_Type_Definition ':' CSharp_Type | ||
2,818 | none all 2.24(7%) none | CSharp_MethodImplementation: [CSharp_Comment]* CSharp_StatementBlock [CSharp_Comment]* [';'] |
288 | all all 1.06(43%) all 1.71(all) all | CSharp_Namespace: "namespace" CSharp_Identifier [CSharp_MoreNamespaceId]* '{' [CSharp_ProgramElems]* '}' |
130 | all all | | CSharp_MoreNamespaceId: '.' CSharp_Identifier |
492 | (3% | 0% | 32% | 59% | 1% | 5% | none) | | CSharp_ProgramElems: (CSharp_Namespace | CSharp_Using | CSharp_Comment | CSharp_Class | CSharp_Enum | CSharp_Method | CSharp_Directive) |
CSharp_Operator: [CSharp_Comment]* [CSharp_Annotation]* [CSharp_MethodModifier]* [CSharp_Comment]* CSharp_Type "operator" ("+"|"-"|"<"|">"|"<="|">="|"=="|"!=") [CSharp_MethodParameters] CSharp_MethodBody | ||
320 | 2.10(57%) 7.82(all) | CSharp_Program: [CSharp_Comment]* [CSharp_NamespaceOrClassEntry]* |
2,503 | (78% | 6% | 11% | 2% | 3% | none) | | CSharp_NamespaceOrClassEntry: (CSharp_Using | CSharp_Comment | CSharp_Namespace | CSharp_Class | CSharp_Annotation | CSharp_Directive) |
CSharp_Property: [CSharp_Annotation]* [CSharp_PropertyModifier]* CSharp_Type CSharp_Variable_Definition [CSharp_PropertySubscript] '{' [CSharp_GetterSetter]* '}' | ||
| CSharp_GetterSetter: (CSharp_GetterBody | CSharp_GetterNoBody | CSharp_SetterBody | CSharp_SetterNoBody) | ||
| | CSharp_GetterBody: "get" CSharp_Statement | ||
| | CSharp_GetterNoBody: "get" ';' | ||
| | CSharp_SetterBody: "set" CSharp_Statement | ||
| | CSharp_SetterNoBody: ["private"] "set" ';' | ||
| CSharp_PropertyModifier: ("abstract"|"async"|"const"|"delegate"|"event"|"extern"|"final"|"internal"|"lock"|"override"|"partial"|"private"|"protected"|"public"|"readonly"|"ref"|"sealed"|"static"|"unsafe"|"virtual") | ||
| CSharp_PropertySubscript: '[' [CSharp_MethodParameter]* ']' | ||
22,678 | (0% | 19% | 1% | 0% | none | 12% | 1% | 0% | 0% | 0% | 0% | 1% | 1% | 2% | none | 9% | 0% | 1% | 7% | 2% | none | 0% | none | 1% | 1% | 0% | 1% | 41%) | CSharp_Statement: (';' | CSharp_Data | CSharp_Class | CSharp_Enum | CSharp_PragmaDirective | CSharp_StatementBlock | CSharp_BreakStatement | CSharp_ContinueStatement | CSharp_CheckedStatement | CSharp_DoWhileStatement | CSharp_ExitStatement | CSharp_ForStatement | CSharp_ForEachStatement | CSharp_GetProperty | CSharp_GotoStatement | CSharp_IfStatement | CSharp_LockStatement | CSharp_PrintStatement | CSharp_ReturnStatement | CSharp_SetProperty | CSharp_SuperStatement | CSharp_SwitchStatement | CSharp_SynchronizedStatement | CSharp_ThrowStatement | CSharp_TryStatement | CSharp_UsingStatement | CSharp_WhileStatement | CSharp_ExpressionStatement) |
18,261 | (99% | 1%) | CSharp_StatementOrComment: (CSharp_Statement | CSharp_Comment) |
1,481 | all all 1.00(0%) all | CSharp_Subscript: '[' [CSharp_Expression] [CSharp_MoreSubscripts]* ']' |
2 | all all | | CSharp_MoreSubscripts: ',' CSharp_Expression |
CSharp_SubscriptOperator: [CSharp_Comment]* [CSharp_Annotation]* [CSharp_MethodModifier]* CSharp_Type "this" '[' CSharp_MethodParameter ']' CSharp_MethodImplementation | ||
CSharp_SuperStatement: "super" '(' [CSharp_ArgumentList] ')' ';' | ||
16,531 | all 2% 1.00(2%) all | CSharp_Type: CSharp_TypeName [CSharp_GenericType] [CSharp_ArrayType]* ['?'] |
272 | all none all | | CSharp_ArrayType: '[' [','] ']' |
| CSharp_ExtendsType: "extends" CSharp_Identifier_Reference | ||
276 | all 1.13(all) all | | CSharp_GenericType: '<' [CSharp_Type]* '>' |
9,269 | 0% all none 1.00(3%) | | CSharp_IdList: [CSharp_NamespaceId] CSharp_Identifier_Reference [CSharp_ExtendsType] [CSharp_MoreIds]* |
306 | all all | | CSharp_MoreIds: '.' CSharp_TypeName |
12 | all all | | CSharp_NamespaceId: CSharp_Identifier_Reference "::" |
16,837 | (none | 45% | 55%) | | CSharp_TypeName: (CSharp_GenericTypeQuestion | ("auto"|"bool"|"boolean"|"byte"|"char"|"class"|"decimal"|"double"|"float"|"int"|"long"|"object"|"sbyte"|"short"|"string"|"String"|"ulong"|"ushort"|"void") | CSharp_IdList) |
| | CSharp_GenericTypeQuestion: '?' [CSharp_ExtendsType] | ||
1,965 | all all all 1.56(71%) 1% all | CSharp_Using: "using" ["static"] CSharp_Identifier [CSharp_MoreUsing]* [CSharp_UsingEquals] ';' |
2,159 | all all | | CSharp_MoreUsing: '.' CSharp_Identifier |
29 | all none 8.66 | | CSharp_UsingEquals: '=' [CSharp_UsingGlobal] CSharp_Identifier* |
| | CSharp_UsingGlobal: "global" "::" | ||
32,053 | all 1.21(40%) 1.02(4%) | CSharp_Variable: CSharp_VariableIdentifier [CSharp_MoreVariableIdentifiers]* [CSharp_Subscript]* |
15,520 | all all | | CSharp_MoreVariableIdentifiers: '.' CSharp_VariableIdentifier |
47,573 | (0% | 0% | 100%) | | CSharp_VariableIdentifier: (CSharp_CastedVariable | ("this"|"base"|"class") | CSharp_Identifier_Reference) |
129 | all all all all all all | | | CSharp_CastedVariable: '(' '(' CSharp_Type ')' CSharp_Identifier_Reference ')' |
CSharp_Directive: (CSharp_PragmaDirective | CSharp_RegionDirective) | ||
CSharp_PragmaDirective: '#' "pragma" "warning" ("disable"|"restore") CSharp_Expression* | ||
CSharp_RegionDirective: '#' "region" CSharp_CommentToEndOfLine CSharp_ClassElement* '#' "endregion" | ||
2,178 | all all all | CSharp_AdditiveExpression: CSharp_Expression ("+"|"-") CSharp_Expression |
4,732 | all all all | CSharp_AssignmentExpression: CSharp_Expression ("="|"*="|"/="|"%="|"+="|"-="|"<<="|">>="|">>>="|"&="|"^="|"|=") CSharp_Expression |
CSharp_BitwiseAndExpression: CSharp_Expression '&' CSharp_Expression | ||
CSharp_BitwiseNotExpression: '~' CSharp_Expression | ||
7 | all all all | CSharp_BitwiseOrExpression: CSharp_Expression '|' CSharp_Expression |
2,184 | all | CSharp_BuiltIn: ("default"|"false"|"true"|"null"|"this"|"super") |
3 | all all all | CSharp_CastAsExpression: CSharp_Expression "as" CSharp_Type |
655 | all all all all | CSharp_CastExpression: '(' CSharp_Type ')' CSharp_Expression |
2,425 | all all all none all all | CSharp_ClassCreationExpression: "new" CSharp_Type '(' [CSharp_Comment]* [CSharp_ArgumentList] ')' |
22 | all all all all all | CSharp_ClassCreationWithInitializers: "new" CSharp_Type '{' [CSharp_ArgumentList] '}' |
134 | all all 1.00 none | CSharp_ClassCreationWithSubscript: "new" [CSharp_Type] CSharp_Subscript* [CSharp_ExpressionList] |
CSharp_CommentExpression: CSharp_Comment CSharp_Expression | ||
17 | all none all all all | CSharp_ConsoleOut: ["System"] ['.'] "Console" '.' ("Error"|"In"|"Out") |
CSharp_ConsoleRead: ["System"] ['.'] "Console" '.' ("OpenStandardInput"|"OpenStandardOutput"|"ReadKey"|"ReadLine") '(' [CSharp_Expression]* ')' | ||
CSharp_DefaultGeneric: ("default"|"Default") '(' CSharp_Type ')' | ||
CSharp_Delegation: "delegate" CSharp_MethodParameters CSharp_MethodBody | ||
CSharp_DotClass: CSharp_Type '.' "class" | ||
CSharp_EqualityExpression: CSharp_Expression ("as"|"is") CSharp_Expression | ||
11 | all none all all | CSharp_ExpressionList: '{' [CSharp_Comment]* CSharp_ArgumentList '}' |
161 | all all all | CSharp_InstanceOfExpression: CSharp_Expression "is" CSharp_Type |
CSharp_InterfaceCreationWithMethod: "new" ("Runnable"|"ActionListener"|"WindowAdapter") '(' ')' '{' CSharp_Method '}' | ||
CSharp_LambdaBlock: '(' [CSharp_Variable]* ')' "=>" CSharp_StatementBlock | ||
CSharp_LambdaExpression: CSharp_Expression "=>" CSharp_Expression | ||
CSharp_LambdaFunction: CSharp_Expression "=>" CSharp_StatementBlock | ||
CSharp_LambdaParameters: '(' [CSharp_Variable]* ')' "=>" CSharp_Expression | ||
279 | all all all | CSharp_LogicalAndExpression: CSharp_Expression "&&" CSharp_Expression |
287 | all all | CSharp_LogicalNotExpression: '!' CSharp_Expression |
101 | all all all | CSharp_LogicalOrExpression: CSharp_Expression ("||"|"^") CSharp_Expression |
8,102 | all none all all all | CSharp_MethodInvocation: CSharp_Variable [CSharp_GenericType] '(' [CSharp_ArgumentList] ')' |
104 | all all all | CSharp_MultiplicativeExpression: CSharp_Expression ("*"|"/"|"%") CSharp_Expression |
4 | all all all | CSharp_NamespaceExpression: CSharp_Expression "::" CSharp_Expression |
32 | all all | CSharp_NegativeExpression: ("-"|"+") CSharp_Expression |
348 | all all all | CSharp_ParenthesizedExpression: '(' CSharp_Expression ')' |
351 | all all | CSharp_PostIncrementExpression: CSharp_Variable ("++"|"--") |
4 | all all | CSharp_PreIncrementExpression: ("++"|"--") CSharp_Variable |
1,744 | all all all | CSharp_RelationalExpression: CSharp_Expression ("=="|"!="|"<"|">"|"<="|">=") CSharp_Expression |
CSharp_ShiftExpression: CSharp_Expression ("<<"|">>"|">>>") CSharp_Expression | ||
618 | all all all all | CSharp_SubfieldExpression: CSharp_Expression ['?'] '.' CSharp_Expression |
5 | all all all all | CSharp_SubscriptExpression: CSharp_Expression '[' CSharp_Expression ']' |
112 | all all all all all | CSharp_TrueFalseExpression: CSharp_Expression '?' CSharp_Expression ':' CSharp_Expression |
76 | all | CSharp_TypeExpression: CSharp_Type |
23,381 | all | CSharp_VariableExpression: CSharp_Variable |
CSharp_IndexOfMethod: CSharp_Variable '.' "IndexOf" '(' CSharp_Expression [CSharp_Index_SC] ')' | ||
| CSharp_Index_SC: ',' CSharp_Expression | ||
266 | all all all | CSharp_LengthMethod: CSharp_Expression '.' "Length" |
3 | all none all all all | CSharp_MathFunction: ["System"] ['.'] "Math" '.' CSharp_MathChoice |
3 | (all | none) | | CSharp_MathChoice: (CSharp_MathPowFunc | CSharp_MathMinMaxFunc) |
CSharp_MathMinMaxFunc: ("Min"|"Max") '(' CSharp_Expression* ')' | ||
3 | all all all all all all | CSharp_MathPowFunc: "Pow" '(' CSharp_Expression ',' CSharp_Expression ')' |
136 | all all all all | CSharp_SizeOfFunction: ("sizeof"|"typeof") '(' CSharp_Type ')' |
3 | all all all all all none none all | CSharp_StartsWithMethod: CSharp_Expression '.' "StartsWith" '(' CSharp_Expression [','] [CSharp_Expression] ')' |
CSharp_StringFormatFunc: "Format" '(' CSharp_Expression ',' CSharp_Expression ')' | ||
CSharp_StringFunction: "string" '.' CSharp_StringChoice | ||
| CSharp_StringChoice: (CSharp_StringFormatFunc) | ||
57 | all all all all all 61% 61% all | CSharp_SubstringMethod: CSharp_Expression '.' "Substring" '(' CSharp_Expression [','] [CSharp_Expression] ')' |
149 | all all all all all | CSharp_ToStringMethod: CSharp_Expression '.' "ToString" '(' ')' |
105 | all all all all 1% all | CSharp_ToUpperMethod: CSharp_Expression '.' ("ToLower"|"ToUpper") '(' [CSharp_Expression] ')' |
23 | all all all all all | CSharp_TrimMethod: CSharp_Expression '.' "Trim" '(' ')' |
214 | all all all | CSharp_BreakStatement: ["yield"] "break" ';' |
8 | all all | CSharp_CheckedStatement: "checked" CSharp_Statement |
18 | all all | CSharp_ContinueStatement: "continue" ';' |
1 | all all all all all all all | CSharp_DoWhileStatement: "do" CSharp_Statement "while" '(' CSharp_Expression ')' ';' |
3 | all all all all all all all all all | CSharp_ExitStatement: "System" '.' "Environment" '.' "Exit" '(' [CSharp_Expression] ')' ';' |
9,404 | all all 4% | CSharp_ExpressionStatement: CSharp_Expression ';' [CSharp_Comment] |
215 | all all all all all all all 0% all | CSharp_ForEachStatement: "foreach" '(' CSharp_Type CSharp_Variable "in" CSharp_Expression ')' [CSharp_Comment] CSharp_Statement |
187 | all all 1.00(all) all all all 1.00 all all | CSharp_ForStatement: "for" '(' [CSharp_ForWhat]* ';' CSharp_Expression ';' CSharp_Expression* ')' CSharp_Statement |
187 | all all | | CSharp_ForTypeInit: '=' CSharp_Expression |
187 | (70% | 30% | none) | | CSharp_ForWhat: (CSharp_ForWithType | CSharp_ForWithoutType | CSharp_Expression) |
130 | all all all | | CSharp_ForWithType: CSharp_Type CSharp_Variable_Definition [CSharp_ForTypeInit] |
57 | all all | | CSharp_ForWithoutType: CSharp_Variable_Definition CSharp_ForTypeInit |
442 | all all all | CSharp_GetProperty: ["private"] "get" [CSharp_StatementBlock] |
CSharp_GotoStatement: "goto" CSharp_GoWhere | ||
| CSharp_GoWhere: ("default" | CSharp_Label_Reference) | ||
1,951 | all all all all 1.00(1%) all 26% | CSharp_IfStatement: "if" '(' CSharp_Expression ')' [CSharp_Comment]* CSharp_Statement [CSharp_IfElseClause] |
507 | 1.00(2%) all 1.00(1%) all | | CSharp_IfElseClause: [CSharp_Comment]* "else" [CSharp_Comment]* CSharp_Statement |
4 | all all all all all | CSharp_LockStatement: "lock" '(' CSharp_Expression ')' CSharp_Statement |
195 | all none all all all 97% all all 1.33(90%) all all | CSharp_PrintStatement: ["System"] ['.'] "Console" '.' [("Error"|"Out")] ['.'] ("Flush"|"ReadLine"|"SetOut"|"Write"|"WriteLine") '(' [CSharp_Expression]* ')' ';' |
1,588 | all all 97% all | CSharp_ReturnStatement: ["yield"] "return" [CSharp_Expression] ';' |
440 | all all all | CSharp_SetProperty: ["private"] "set" [CSharp_StatementBlock] |
6,432 | all 2.69(97%) all | CSharp_StatementBlock: '{' [CSharp_StatementOrComment]* '}' |
38 | all all all all all 6.50 all | CSharp_SwitchStatement: "switch" '(' CSharp_Expression ')' '{' CSharp_SwitchCase* '}' |
247 | (95% | 5%) | | CSharp_CaseType: (CSharp_CaseClause | "default") |
235 | all all | | | CSharp_CaseClause: "case" CSharp_Expression |
247 | all all 1.98(89%) | | CSharp_SwitchCase: CSharp_CaseType ':' [CSharp_StatementOrComment]* |
CSharp_SynchronizedStatement: "synchronized" '(' CSharp_Expression ')' CSharp_Statement | ||
260 | all 98% all | CSharp_ThrowStatement: "throw" [CSharp_Expression] ';' |
182 | all all 6.24 all 1.00(1%) 1.00(97%) 20% | CSharp_TryStatement: "try" '{' CSharp_StatementOrComment* '}' [CSharp_Comment]* [CSharp_CatchBlock]* [CSharp_FinallyBlock] |
177 | all 97% all | | CSharp_CatchBlock: "catch" [CSharp_CatchWhat] CSharp_Statement |
171 | all all 64% all | | | CSharp_CatchWhat: '(' CSharp_Type [CSharp_Identifier] ')' |
37 | all all | | CSharp_FinallyBlock: "finally" CSharp_Statement |
47 | all all all all all all | CSharp_UsingStatement: "using" ["static"] '(' CSharp_DataBeforeSemicolon ')' CSharp_Statement |
127 | all all all all 9% all | CSharp_WhileStatement: "while" '(' CSharp_Expression ')' [CSharp_Comment] CSharp_Statement |
Terminals = 14 (instances=86,049)
Tokens = 173 (instances=410,083)
(*) Statistics are shown in the same order as the Tokens.
Percentages are rounded; 'all' and 'none' mean 100% and 0% before rounding.
For lists, it shows the average number of occurrences, excluding empty lists.