#lang scheme/base
(require scheme/contract
(only-in (planet dherman/javascript:8/ast) SourceElement? Property?)
(planet dherman/javascript:8/private/syntax/ast-core)
(planet dherman/javascript:8/private/syntax/token))
(define-struct (BeginStatement Statement) (statements) #:prefab)
(define (javascript? item)
(or (SourceElement? item)
(Expression? item)))
(define javascript-declaration?
Declaration?)
(define javascript-statement?
Statement?)
(define javascript-expression?
Expression?)
(provide (all-from-out (planet dherman/javascript:8/ast)
(planet dherman/javascript:8/private/syntax/ast-core)))
(provide/contract
[struct (BeginStatement Statement) ([location (or/c region? false/c)]
[statements (listof SourceElement?)])]
[javascript? procedure?]
[javascript-declaration? procedure?]
[javascript-statement? procedure?]
[javascript-expression? procedure?])