mirror of
https://github.com/Cekis/SWG-ScriptConverter.git
synced 2026-07-13 20:00:56 -04:00
25 lines
622 B
C#
25 lines
622 B
C#
using System;
|
|
using ScriptConverter.Parser;
|
|
|
|
namespace ScriptConverter.Ast.Declarations
|
|
{
|
|
abstract class Declaration
|
|
{
|
|
public readonly ScriptToken Start;
|
|
public readonly ScriptToken End;
|
|
|
|
protected Declaration(ScriptToken start, ScriptToken end = null)
|
|
{
|
|
if (start == null)
|
|
throw new ArgumentNullException("start");
|
|
|
|
Start = start;
|
|
End = end ?? start;
|
|
}
|
|
|
|
public abstract TDecl Accept<TDoc, TDecl, TStmt, TExpr>(IAstVisitor<TDoc, TDecl, TStmt, TExpr> visitor);
|
|
|
|
public abstract void SetParent();
|
|
}
|
|
}
|