@eslint-react/core / SemanticFunc
Represents a semantic function node in the AST This interface extends SemanticNode and provides additional properties for function analysis
| Property | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|
body |
BlockStatement | Expression |
The body of the function | - | - |
directives |
TSESTreeDirective[] |
The directives of the function (e.g., "use strict", "use client", "use server", etc.) | - | - |
flag |
bigint |
The flag of the node | - | SemanticNode.flag |
hint |
bigint |
The hint of the node | - | SemanticNode.hint |
id |
| ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | PrivateInExpression | SymmetricBinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | BigIntLiteral | BooleanLiteral | NullLiteral | NumberLiteral | RegExpLiteral | StringLiteral | LogicalExpression | MemberExpressionComputedName | MemberExpressionNonComputedName | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpressionBitwiseNot | UnaryExpressionDelete | UnaryExpressionMinus | UnaryExpressionNot | UnaryExpressionPlus | UnaryExpressionTypeof | UnaryExpressionVoid | UpdateExpression | YieldExpression | undefined |
The identifier of the function | SemanticNode.id |
- |
key |
string |
The unique key of the node | - | SemanticNode.key |
kind |
string |
The kind of the node | - | SemanticNode.kind |
name |
string | undefined |
The name of the function | SemanticNode.name |
- |
node |
TSESTreeFunction |
The AST node of the function | SemanticNode.node |
- |
parameters |
Parameter[] |
The parameters of the function | - | - |
type |
TSTypeAnnotation | undefined |
The return type annotation of the function | - | - |
typeParameters |
TSTypeParameterDeclaration | undefined |
The type parameters of the function | - | - |