mirror of https://github.com/t1meshift/js.git
16 lines
366 B
Python
16 lines
366 B
Python
"""The module of Program AST node."""
|
|
|
|
from typing import List
|
|
from . import *
|
|
from .statements import Statement, Directive
|
|
|
|
|
|
class Program(Node):
|
|
"""A complete program source tree."""
|
|
|
|
def __init__(
|
|
self, loc: Optional[SourceLocation], body: List[Union[Directive, Statement]]
|
|
):
|
|
super().__init__("Program", loc)
|
|
self.body = body
|