Class CodeAstNode
- Namespace
- AiDotNet.ProgramSynthesis.Models
- Assembly
- AiDotNet.dll
Represents a node in an abstract syntax tree (AST) for a piece of source code.
public sealed class CodeAstNode
- Inheritance
-
CodeAstNode
- Inherited Members
Remarks
This type is intentionally lightweight and is designed for structural inspection and downstream tasks (understanding, review, search) without requiring consumers to depend on a specific parser.
For Beginners: An AST is a "tree view" of code.
Code is not just text — it has structure (functions contain statements, statements contain expressions). This node represents one item in that tree with a type (Kind) and a location (Span).
Properties
Kind
public string Kind { get; set; }
Property Value
Language
public ProgramLanguage Language { get; set; }
Property Value
NodeId
public int NodeId { get; set; }
Property Value
ParentNodeId
public int? ParentNodeId { get; set; }
Property Value
- int?
Span
public CodeSpan Span { get; set; }