mirror of
https://github.com/Cekis/SWG-ScriptConverter.git
synced 2026-09-11 22:44:59 -04:00
Add code
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using ScriptConverter.Parser;
|
||||
|
||||
namespace ScriptConverter.Ast.Statements
|
||||
{
|
||||
abstract class Statement
|
||||
{
|
||||
public readonly ScriptToken Start;
|
||||
public readonly ScriptToken End;
|
||||
public Statement Parent { get; protected set; }
|
||||
|
||||
protected Statement(ScriptToken start, ScriptToken end = null)
|
||||
{
|
||||
if (start == null)
|
||||
throw new ArgumentNullException("start");
|
||||
|
||||
Start = start;
|
||||
End = end ?? start;
|
||||
}
|
||||
|
||||
public abstract TStmt Accept<TDoc, TDecl, TStmt, TExpr>(IAstVisitor<TDoc, TDecl, TStmt, TExpr> visitor);
|
||||
|
||||
public abstract void SetParent(Statement parent);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user