public override IAstNode ImplementationSpecificParse() { Debug.Assert(CurrentInputElement.Data == Keywords.Package); MoveToNextInputElement(); Debug.Assert(CurrentInputElement is WhiteSpaceInputElement); MoveToNextInputElement(); var packageDeclaration = new PackageDeclaration(); while (CurrentInputElement.Data != ";") { packageDeclaration.Content.Add(CurrentInputElement); MoveToNextInputElement(); } MoveToNextInputElement(); return packageDeclaration; }
public PackageDeclarationCompiler(ICompiler compiler, PackageDeclaration packageDeclaration) { _compiler = compiler; _packageDeclaration = packageDeclaration; }