public override IAstNode ImplementationSpecificParse() { Debug.Assert(CurrentInputElement.Data == Keywords.Import); MoveToNextInputElement(); Debug.Assert(CurrentInputElement is WhiteSpaceInputElement); MoveToNextInputElement(); var importDeclaration = new ImportDeclaration(); while (CurrentInputElement.Data != ";") { importDeclaration.Content += CurrentInputElement.Data; MoveToNextInputElement(); } MoveToNextInputElement(); return importDeclaration; }
public ImportDeclarationCompiler(ICompiler compiler, ImportDeclaration importDeclaration) { _compiler = compiler; _importDeclaration = importDeclaration; }