c_sharp_wrapper

Types

C_sharpNodeKind = enum
  c_sharpDeclaration,       ## _declaration
  c_sharpExpression,        ## _expression
  c_sharpStatement,         ## _statement
  c_sharpType,              ## _type
  c_sharpAccessorDeclaration, ## accessor_declaration
  c_sharpAccessorList,      ## accessor_list
  c_sharpAliasQualifiedName, ## alias_qualified_name
  c_sharpAnonymousMethodExpression, ## anonymous_method_expression
  c_sharpAnonymousObjectCreationExpression, ## anonymous_object_creation_expression
  c_sharpArgument,          ## argument
  c_sharpArgumentList,      ## argument_list
  c_sharpArrayCreationExpression, ## array_creation_expression
  c_sharpArrayRankSpecifier, ## array_rank_specifier
  c_sharpArrayType,         ## array_type
  c_sharpArrowExpressionClause, ## arrow_expression_clause
  c_sharpAsExpression,      ## as_expression
  c_sharpAssignmentExpression, ## assignment_expression
  c_sharpAssignmentOperator, ## assignment_operator
  c_sharpAttribute,         ## attribute
  c_sharpAttributeArgument, ## attribute_argument
  c_sharpAttributeArgumentList, ## attribute_argument_list
  c_sharpAttributeList,     ## attribute_list
  c_sharpAttributeTargetSpecifier, ## attribute_target_specifier
  c_sharpAwaitExpression,   ## await_expression
  c_sharpBaseExpression,    ## base_expression
  c_sharpBaseList,          ## base_list
  c_sharpBinaryExpression,  ## binary_expression
  c_sharpBinaryPattern,     ## binary_pattern
  c_sharpBlock,             ## block
  c_sharpBooleanLiteral,    ## boolean_literal
  c_sharpBracketedArgumentList, ## bracketed_argument_list
  c_sharpBracketedParameterList, ## bracketed_parameter_list
  c_sharpBreakStatement,    ## break_statement
  c_sharpCasePatternSwitchLabel, ## case_pattern_switch_label
  c_sharpCaseSwitchLabel,   ## case_switch_label
  c_sharpCastExpression,    ## cast_expression
  c_sharpCatchClause,       ## catch_clause
  c_sharpCatchDeclaration,  ## catch_declaration
  c_sharpCatchFilterClause, ## catch_filter_clause
  c_sharpCharacterLiteral,  ## character_literal
  c_sharpCheckedExpression, ## checked_expression
  c_sharpCheckedStatement,  ## checked_statement
  c_sharpClassDeclaration,  ## class_declaration
  c_sharpCompilationUnit,   ## compilation_unit
  c_sharpConditionalAccessExpression, ## conditional_access_expression
  c_sharpConditionalExpression, ## conditional_expression
  c_sharpConstantPattern,   ## constant_pattern
  c_sharpConstructorConstraint, ## constructor_constraint
  c_sharpConstructorDeclaration, ## constructor_declaration
  c_sharpConstructorInitializer, ## constructor_initializer
  c_sharpContinueStatement, ## continue_statement
  c_sharpConversionOperatorDeclaration, ## conversion_operator_declaration
  c_sharpDeclarationExpression, ## declaration_expression
  c_sharpDeclarationList,   ## declaration_list
  c_sharpDeclarationPattern, ## declaration_pattern
  c_sharpDefaultExpression, ## default_expression
  c_sharpDefaultSwitchLabel, ## default_switch_label
  c_sharpDefineDirective,   ## define_directive
  c_sharpDelegateDeclaration, ## delegate_declaration
  c_sharpDestructorDeclaration, ## destructor_declaration
  c_sharpDoStatement,       ## do_statement
  c_sharpElementAccessExpression, ## element_access_expression
  c_sharpElementBindingExpression, ## element_binding_expression
  c_sharpElifDirective,     ## elif_directive
  c_sharpElseDirective,     ## else_directive
  c_sharpEmptyStatement,    ## empty_statement
  c_sharpEndregionDirective, ## endregion_directive
  c_sharpEnumDeclaration,   ## enum_declaration
  c_sharpEnumMemberDeclaration, ## enum_member_declaration
  c_sharpEnumMemberDeclarationList, ## enum_member_declaration_list
  c_sharpEqualsValueClause, ## equals_value_clause
  c_sharpErrorDirective,    ## error_directive
  c_sharpEventDeclaration,  ## event_declaration
  c_sharpEventFieldDeclaration, ## event_field_declaration
  c_sharpExplicitInterfaceSpecifier, ## explicit_interface_specifier
  c_sharpExpressionStatement, ## expression_statement
  c_sharpExternAliasDirective, ## extern_alias_directive
  c_sharpFieldDeclaration,  ## field_declaration
  c_sharpFinallyClause,     ## finally_clause
  c_sharpFixedStatement,    ## fixed_statement
  c_sharpForEachStatement,  ## for_each_statement
  c_sharpForStatement,      ## for_statement
  c_sharpFromClause,        ## from_clause
  c_sharpFunctionPointerCallingConvention, ## function_pointer_calling_convention
  c_sharpFunctionPointerParameter, ## function_pointer_parameter
  c_sharpFunctionPointerType, ## function_pointer_type
  c_sharpFunctionPointerUnmanagedCallingConvention, ## function_pointer_unmanaged_calling_convention
  c_sharpFunctionPointerUnmanagedCallingConventionList, ## function_pointer_unmanaged_calling_convention_list
  c_sharpGenericName,       ## generic_name
  c_sharpGlobal,            ## global
  c_sharpGlobalAttributeList, ## global_attribute_list
  c_sharpGlobalStatement,   ## global_statement
  c_sharpGotoStatement,     ## goto_statement
  c_sharpGroupClause,       ## group_clause
  c_sharpIdentifier,        ## identifier
  c_sharpIfDirective,       ## if_directive
  c_sharpIfStatement,       ## if_statement
  c_sharpImplicitArrayCreationExpression, ## implicit_array_creation_expression
  c_sharpImplicitObjectCreationExpression, ## implicit_object_creation_expression
  c_sharpImplicitStackAllocArrayCreationExpression, ## implicit_stack_alloc_array_creation_expression
  c_sharpImplicitType,      ## implicit_type
  c_sharpIndexerDeclaration, ## indexer_declaration
  c_sharpInitializerExpression, ## initializer_expression
  c_sharpInterfaceDeclaration, ## interface_declaration
  c_sharpInterpolatedStringExpression, ## interpolated_string_expression
  c_sharpInterpolatedStringText, ## interpolated_string_text
  c_sharpInterpolatedVerbatimStringText, ## interpolated_verbatim_string_text
  c_sharpInterpolation,     ## interpolation
  c_sharpInterpolationAlignmentClause, ## interpolation_alignment_clause
  c_sharpInterpolationFormatClause, ## interpolation_format_clause
  c_sharpInvocationExpression, ## invocation_expression
  c_sharpIsExpression,      ## is_expression
  c_sharpIsPatternExpression, ## is_pattern_expression
  c_sharpJoinClause,        ## join_clause
  c_sharpJoinIntoClause,    ## join_into_clause
  c_sharpLabelName,         ## label_name
  c_sharpLabeledStatement,  ## labeled_statement
  c_sharpLambdaExpression,  ## lambda_expression
  c_sharpLetClause,         ## let_clause
  c_sharpLineDirective,     ## line_directive
  c_sharpLocalDeclarationStatement, ## local_declaration_statement
  c_sharpLocalFunctionStatement, ## local_function_statement
  c_sharpLockStatement,     ## lock_statement
  c_sharpMakeRefExpression, ## make_ref_expression
  c_sharpMemberAccessExpression, ## member_access_expression
  c_sharpMemberBindingExpression, ## member_binding_expression
  c_sharpMethodDeclaration, ## method_declaration
  c_sharpModifier,          ## modifier
  c_sharpNameColon,         ## name_colon
  c_sharpNameEquals,        ## name_equals
  c_sharpNamespaceDeclaration, ## namespace_declaration
  c_sharpNegatedPattern,    ## negated_pattern
  c_sharpNullableDirective, ## nullable_directive
  c_sharpNullableType,      ## nullable_type
  c_sharpObjectCreationExpression, ## object_creation_expression
  c_sharpOperatorDeclaration, ## operator_declaration
  c_sharpOrderByClause,     ## order_by_clause
  c_sharpParameter,         ## parameter
  c_sharpParameterArray,    ## parameter_array
  c_sharpParameterList,     ## parameter_list
  c_sharpParameterModifier, ## parameter_modifier
  c_sharpParenthesizedExpression, ## parenthesized_expression
  c_sharpParenthesizedPattern, ## parenthesized_pattern
  c_sharpParenthesizedVariableDesignation, ## parenthesized_variable_designation
  c_sharpPointerType,       ## pointer_type
  c_sharpPositionalPatternClause, ## positional_pattern_clause
  c_sharpPostfixUnaryExpression, ## postfix_unary_expression
  c_sharpPragmaDirective,   ## pragma_directive
  c_sharpPrefixUnaryExpression, ## prefix_unary_expression
  c_sharpPrimaryConstructorBaseType, ## primary_constructor_base_type
  c_sharpPropertyDeclaration, ## property_declaration
  c_sharpPropertyPatternClause, ## property_pattern_clause
  c_sharpQualifiedName,     ## qualified_name
  c_sharpQueryContinuation, ## query_continuation
  c_sharpQueryExpression,   ## query_expression
  c_sharpRangeExpression,   ## range_expression
  c_sharpRecordDeclaration, ## record_declaration
  c_sharpRecursivePattern,  ## recursive_pattern
  c_sharpRefExpression,     ## ref_expression
  c_sharpRefTypeExpression, ## ref_type_expression
  c_sharpRefValueExpression, ## ref_value_expression
  c_sharpRegionDirective,   ## region_directive
  c_sharpRelationalPattern, ## relational_pattern
  c_sharpReturnStatement,   ## return_statement
  c_sharpSelectClause,      ## select_clause
  c_sharpSimpleAssignmentExpression, ## simple_assignment_expression
  c_sharpSizeOfExpression,  ## size_of_expression
  c_sharpStackAllocArrayCreationExpression, ## stack_alloc_array_creation_expression
  c_sharpStringLiteral,     ## string_literal
  c_sharpStructDeclaration, ## struct_declaration
  c_sharpSubpattern,        ## subpattern
  c_sharpSwitchBody,        ## switch_body
  c_sharpSwitchExpression,  ## switch_expression
  c_sharpSwitchExpressionArm, ## switch_expression_arm
  c_sharpSwitchSection,     ## switch_section
  c_sharpSwitchStatement,   ## switch_statement
  c_sharpThisExpression,    ## this_expression
  c_sharpThrowExpression,   ## throw_expression
  c_sharpThrowStatement,    ## throw_statement
  c_sharpTryStatement,      ## try_statement
  c_sharpTupleElement,      ## tuple_element
  c_sharpTupleExpression,   ## tuple_expression
  c_sharpTuplePattern,      ## tuple_pattern
  c_sharpTupleType,         ## tuple_type
  c_sharpTypeArgumentList,  ## type_argument_list
  c_sharpTypeConstraint,    ## type_constraint
  c_sharpTypeOfExpression,  ## type_of_expression
  c_sharpTypeParameter,     ## type_parameter
  c_sharpTypeParameterConstraint, ## type_parameter_constraint
  c_sharpTypeParameterConstraintsClause, ## type_parameter_constraints_clause
  c_sharpTypeParameterList, ## type_parameter_list
  c_sharpTypePattern,       ## type_pattern
  c_sharpUndefDirective,    ## undef_directive
  c_sharpUnsafeStatement,   ## unsafe_statement
  c_sharpUsingDirective,    ## using_directive
  c_sharpUsingStatement,    ## using_statement
  c_sharpVarPattern,        ## var_pattern
  c_sharpVariableDeclaration, ## variable_declaration
  c_sharpVariableDeclarator, ## variable_declarator
  c_sharpWarningDirective,  ## warning_directive
  c_sharpWhenClause,        ## when_clause
  c_sharpWhereClause,       ## where_clause
  c_sharpWhileStatement,    ## while_statement
  c_sharpWithExpression,    ## with_expression
  c_sharpWithInitializerExpression, ## with_initializer_expression
  c_sharpYieldStatement,    ## yield_statement
  c_sharpExclamationTok,    ## !
  c_sharpExclamationEqualTok, ## !=
  c_sharpQuoteTok,          ## "
  c_sharpDoubleQuoteTok,    ## ""
  c_sharpDollarQuoteTok,    ## $"
  c_sharpDollarAtQuoteTok,  ## $@"
  c_sharpPercentTok,        ## %
  c_sharpPercentEqualTok,   ## %=
  c_sharpAmpersandTok,      ## &
  c_sharpDoubleAmpersandTok, ## &&
  c_sharpAmpersandEqualTok, ## &=
  c_sharpApostropheTok,     ## '
  c_sharpLParTok,           ## (
  c_sharpRParTok,           ## )
  c_sharpAsteriskTok,       ## *
  c_sharpAsteriskEqualTok,  ## *=
  c_sharpPlusTok,           ## +
  c_sharpDoublePlusTok,     ## ++
  c_sharpPlusEqualTok,      ## +=
  c_sharpCommaTok,          ## ,
  c_sharpMinusTok,          ## -
  c_sharpDoubleMinusTok,    ## --
  c_sharpMinusEqualTok,     ## -=
  c_sharpMinusGreaterThanTok, ## ->
  c_sharpDotTok,            ## .
  c_sharpDoubleDotTok,      ## ..
  c_sharpSlashTok,          ## /
  c_sharpSlashEqualTok,     ## /=
  c_sharpColonTok,          ## :
  c_sharpDoubleColonTok,    ## ::
  c_sharpSemicolonTok,      ## ;
  c_sharpLessThanTok,       ## <
  c_sharpDoubleLessThanTok, ## <<
  c_sharpDoubleLessThanEqualTok, ## <<=
  c_sharpLessThanEqualTok,  ## <=
  c_sharpEqualTok,          ## =
  c_sharpDoubleEqualTok,    ## ==
  c_sharpEqualGreaterThanTok, ## =>
  c_sharpGreaterThanTok,    ## >
  c_sharpGreaterThanEqualTok, ## >=
  c_sharpDoubleGreaterThanTok, ## >>
  c_sharpDoubleGreaterThanEqualTok, ## >>=
  c_sharpQuestionTok,       ## ?
  c_sharpDoubleQuestionTok, ## ??
  c_sharpDoubleQuestionEqualTok, ## ??=
  c_sharpAtDollarQuoteTok,  ## @$"
  c_sharpCdeclTok,          ## Cdecl
  c_sharpFastcallTok,       ## Fastcall
  c_sharpStdcallTok,        ## Stdcall
  c_sharpThiscallTok,       ## Thiscall
  c_sharpLBrackTok,         ## [
  c_sharpRBrackTok,         ## ]
  c_sharpAccentTok,         ## ^
  c_sharpAccentEqualTok,    ## ^=
  c_sharpMakerefTok,        ## __makeref
  c_sharpReftypeTok,        ## __reftype
  c_sharpRefvalueTok,       ## __refvalue
  c_sharpAbstractTok,       ## abstract
  c_sharpAddTok,            ## add
  c_sharpAliasTok,          ## alias
  c_sharpAndTok,            ## and
  c_sharpAnnotationsTok,    ## annotations
  c_sharpAsTok,             ## as
  c_sharpAscendingTok,      ## ascending
  c_sharpAssemblyTok,       ## assembly
  c_sharpAsyncTok,          ## async
  c_sharpAwaitTok,          ## await
  c_sharpBaseTok,           ## base
  c_sharpBreakTok,          ## break
  c_sharpByTok,             ## by
  c_sharpCaseTok,           ## case
  c_sharpCatchTok,          ## catch
  c_sharpCheckedTok,        ## checked
  c_sharpChecksumTok,       ## checksum
  c_sharpClassTok,          ## class
  c_sharpComment,           ## comment
  c_sharpConstTok,          ## const
  c_sharpContinueTok,       ## continue
  c_sharpDefaultTok,        ## default
  c_sharpDefineTok,         ## define
  c_sharpDelegateTok,       ## delegate
  c_sharpDescendingTok,     ## descending
  c_sharpDisableTok,        ## disable
  c_sharpDiscard,           ## discard
  c_sharpDoTok,             ## do
  c_sharpDynamicTok,        ## dynamic
  c_sharpElifTok,           ## elif
  c_sharpElseTok,           ## else
  c_sharpEnableTok,         ## enable
  c_sharpEndifDirective,    ## endif_directive
  c_sharpEndregionTok,      ## endregion
  c_sharpEnumTok,           ## enum
  c_sharpEqualsTok,         ## equals
  c_sharpErrorTok,          ## error
  c_sharpEscapeSequence,    ## escape_sequence
  c_sharpEventTok,          ## event
  c_sharpExplicitTok,       ## explicit
  c_sharpExternTok,         ## extern
  c_sharpFalseTok,          ## false
  c_sharpFieldTok,          ## field
  c_sharpFinallyTok,        ## finally
  c_sharpFixedTok,          ## fixed
  c_sharpForTok,            ## for
  c_sharpForeachTok,        ## foreach
  c_sharpFromTok,           ## from
  c_sharpGetTok,            ## get
  c_sharpGlobalTok,         ## global
  c_sharpGotoTok,           ## goto
  c_sharpGroupTok,          ## group
  c_sharpHiddenTok,         ## hidden
  c_sharpIfTok,             ## if
  c_sharpImplicitTok,       ## implicit
  c_sharpInTok,             ## in
  c_sharpInitTok,           ## init
  c_sharpIntegerLiteral,    ## integer_literal
  c_sharpInterfaceTok,      ## interface
  c_sharpInternalTok,       ## internal
  c_sharpIntoTok,           ## into
  c_sharpIsTok,             ## is
  c_sharpJoinTok,           ## join
  c_sharpLetTok,            ## let
  c_sharpLineTok,           ## line
  c_sharpLockTok,           ## lock
  c_sharpManagedTok,        ## managed
  c_sharpMethodTok,         ## method
  c_sharpModuleTok,         ## module
  c_sharpNameofTok,         ## nameof
  c_sharpNamespaceTok,      ## namespace
  c_sharpNewTok,            ## new
  c_sharpNotTok,            ## not
  c_sharpNotnullTok,        ## notnull
  c_sharpNullLiteral,       ## null_literal
  c_sharpNullableTok,       ## nullable
  c_sharpOnTok,             ## on
  c_sharpOperatorTok,       ## operator
  c_sharpOrTok,             ## or
  c_sharpOrderbyTok,        ## orderby
  c_sharpOutTok,            ## out
  c_sharpOverrideTok,       ## override
  c_sharpParamTok,          ## param
  c_sharpParamsTok,         ## params
  c_sharpPartialTok,        ## partial
  c_sharpPragmaTok,         ## pragma
  c_sharpPredefinedType,    ## predefined_type
  c_sharpPreprocIntegerLiteral, ## preproc_integer_literal
  c_sharpPreprocMessage,    ## preproc_message
  c_sharpPreprocStringLiteral, ## preproc_string_literal
  c_sharpPrivateTok,        ## private
  c_sharpPropertyTok,       ## property
  c_sharpProtectedTok,      ## protected
  c_sharpPublicTok,         ## public
  c_sharpReadonlyTok,       ## readonly
  c_sharpRealLiteral,       ## real_literal
  c_sharpRecordTok,         ## record
  c_sharpRefTok,            ## ref
  c_sharpRegionTok,         ## region
  c_sharpRemoveTok,         ## remove
  c_sharpRestoreTok,        ## restore
  c_sharpReturnTok,         ## return
  c_sharpSealedTok,         ## sealed
  c_sharpSelectTok,         ## select
  c_sharpSetTok,            ## set
  c_sharpSizeofTok,         ## sizeof
  c_sharpStackallocTok,     ## stackalloc
  c_sharpStaticTok,         ## static
  c_sharpStructTok,         ## struct
  c_sharpSwitchTok,         ## switch
  c_sharpThisTok,           ## this
  c_sharpThrowTok,          ## throw
  c_sharpTrueTok,           ## true
  c_sharpTryTok,            ## try
  c_sharpTypeTok,           ## type
  c_sharpTypeofTok,         ## typeof
  c_sharpUncheckedTok,      ## unchecked
  c_sharpUndefTok,          ## undef
  c_sharpUnmanagedTok,      ## unmanaged
  c_sharpUnsafeTok,         ## unsafe
  c_sharpUsingTok,          ## using
  c_sharpVarTok,            ## var
  c_sharpVerbatimStringLiteral, ## verbatim_string_literal
  c_sharpVirtualTok,        ## virtual
  c_sharpVoidKeyword,       ## void_keyword
  c_sharpVolatileTok,       ## volatile
  c_sharpWarningTok,        ## warning
  c_sharpWarningsTok,       ## warnings
  c_sharpWhenTok,           ## when
  c_sharpWhereTok,          ## where
  c_sharpWhileTok,          ## while
  c_sharpWithTok,           ## with
  c_sharpYieldTok,          ## yield
  c_sharpLCurlyTok,         ## {
  c_sharpDoubleLCurlyTok,   ## {{
  c_sharpPipeTok,           ## |
  c_sharpPipeEqualTok,      ## |=
  c_sharpDoublePipeTok,     ## ||
  c_sharpRCurlyTok,         ## }
  c_sharpTildeTok,          ## ~
  c_sharpPreprocessorCall,  ## _preprocessor_call
  c_sharpSyntaxError         ## Tree-sitter parser syntax error
C_sharpExternalTok = enum
  c_sharpExtern_preproc_directive_end ## _preproc_directive_end
TsC_sharpNode = distinct TSNode
C_sharpParser = distinct PtsParser
C_sharpNode = HtsNode[TsC_sharpNode, C_sharpNodeKind]

Procs

proc kind(node: TsC_sharpNode): C_sharpNodeKind {...}{.noSideEffect,
    raises: [Exception], tags: [RootEffect].}
proc tsNodeType(node: TsC_sharpNode): string {...}{.raises: [], tags: [].}
proc newTsC_sharpParser(): C_sharpParser {...}{.raises: [], tags: [].}
proc parseString(parser: C_sharpParser; str: string): TsC_sharpNode {...}{.
    raises: [], tags: [].}
proc parseTsC_sharpString(str: string): TsC_sharpNode {...}{.raises: [], tags: [].}
proc treeReprTsC_sharp(str: string; unnamed: bool = false): string {...}{.
    raises: [ValueError, Exception, NilArgumentError], tags: [RootEffect].}
proc toHtsNode(node: TsC_sharpNode; str: ptr string): HtsNode[TsC_sharpNode,
    C_sharpNodeKind] {...}{.raises: [NilArgumentError, Exception], tags: [RootEffect].}
proc toHtsTree(node: TsC_sharpNode; str: ptr string): C_sharpNode {...}{.
    raises: [NilArgumentError, Exception], tags: [RootEffect].}
proc parseC_sharpString(str: ptr string; unnamed: bool = false): C_sharpNode {...}{.
    raises: [NilArgumentError, Exception], tags: [RootEffect].}
proc parseC_sharpString(str: string; unnamed: bool = false): C_sharpNode {...}{.
    raises: [NilArgumentError, Exception], tags: [RootEffect].}

Funcs

func isNil(node: TsC_sharpNode): bool {...}{.raises: [], tags: [].}
func len(node: TsC_sharpNode; unnamed: bool = false): int {...}{.raises: [], tags: [].}
func has(node: TsC_sharpNode; idx: int; unnamed: bool = false): bool {...}{.
    raises: [], tags: [].}
func `$`(node: TsC_sharpNode): string {...}{.raises: [Exception], tags: [RootEffect].}
func `[]`(node: TsC_sharpNode; idx: int;
          kind: C_sharpNodeKind | set[C_sharpNodeKind]): TsC_sharpNode