import type { KipperParserRuleContext } from "../lexer-parser"; import type { TargetASTNodeSemanticAnalyser } from "../target-presets"; import type { TargetAnalysableNode } from "./target-node"; import type { SemanticData, TypeData } from "./ast-node"; import { ParserASTNode } from "./ast-node"; import type { KipperError } from "../../errors"; import type { KipperProgramContext } from "../program-ctx"; import type { RootASTNode } from "./nodes/root-ast-node"; import type { EvaluatedCompileConfig } from "../compile-config"; export type AnalysableNodeParent = AnalysableASTNode | RootASTNode; export type AnalysableNodeChild = AnalysableASTNode; export declare abstract class AnalysableASTNode extends ParserASTNode implements TargetAnalysableNode { abstract readonly targetSemanticAnalysis: TargetASTNodeSemanticAnalyser | undefined; protected _skippedTargetSemanticAnalysis: boolean; protected constructor(antlrCtx: KipperParserRuleContext, parent: AnalysableNodeParent); protected _children: Array; get children(): Array; protected _parent: AnalysableNodeParent; get parent(): AnalysableNodeParent; protected _errors: Array; get errors(): Array; protected _skippedSemanticAnalysis: boolean; get skippedSemanticAnalysis(): boolean; protected _skippedSemanticTypeChecking: boolean; get skippedSemanticTypeChecking(): boolean; get programCtx(): KipperProgramContext; get compileConfig(): EvaluatedCompileConfig; get hasFailed(): boolean; addError(error: KipperError): void; ensureSemanticallyValid(): void; ensureTypeSemanticallyValid(): void; semanticAnalysis(): Promise; preliminaryTypeChecking(): Promise; semanticTypeChecking(): Promise; wrapUpSemanticAnalysis(): Promise; recursivelyCheckForWarnings(): Promise; protected handleSemanticError(error: Error | KipperError): void; protected semanticallyAnalyseChildren(): Promise; protected preliminaryTypeCheckingChildren(): Promise; protected semanticallyTypeCheckChildren(): Promise; protected targetSemanticallyAnalyseChildren(): Promise; protected abstract primarySemanticAnalysis?(): Promise; protected primaryPreliminaryTypeChecking?(): Promise; protected abstract primarySemanticTypeChecking?(): Promise; protected abstract checkForWarnings?(): Promise; }