Gather comments in the preamble of a test file.

Comments preceding the first function are not associated with any
specific entity in the file. Put them in a TestFile::preamble_comments
field.
This commit is contained in:
Jakob Stoklund Olesen
2016-11-04 10:34:14 -07:00
parent a2b7769a51
commit 8d6d59cc7a
3 changed files with 20 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ extern crate cretonne;
pub use error::{Location, Result, Error};
pub use parser::{parse_functions, parse_test};
pub use testcommand::{TestCommand, TestOption};
pub use testfile::{TestFile, Details};
pub use testfile::{TestFile, Details, Comment};
pub use isaspec::IsaSpec;
pub use sourcemap::SourceMap;