public override void EnterCompileUnit([NotNull] CmanParser.CompileUnitContext context) { _nodes.Push(new ASTCompileUnitNode(context)); }
public override void ExitCompileUnit([NotNull] CmanParser.CompileUnitContext context) { CompilationUnit = (ASTCompileUnitNode)_nodes.Pop(); }
public ASTCompileUnitNode(CmanParser.CompileUnitContext context) : base(null) { Name = Path.GetFileNameWithoutExtension(context.start.InputStream.SourceName); SetLocation(context); }