Browse Source

cargo --doc builds, adding some docs

pull/293/head
Jason Williams 5 years ago committed by HalidOdat
parent
commit
38d57cbb2e
  1. 8
      boa/src/builtins/mod.rs
  2. 2
      boa/src/environment/mod.rs
  3. 2
      boa/src/exec/mod.rs
  4. 5
      boa/src/lib.rs
  5. 2
      boa/src/syntax/mod.rs

8
boa/src/builtins/mod.rs

@ -1,3 +1,5 @@
//! Builtins live here, such as Object, String, Math etc
/// Macro to create a new member function of a prototype /// Macro to create a new member function of a prototype
/// If no length is provided, the length will be set to 0. /// If no length is provided, the length will be set to 0.
macro_rules! make_builtin_fn { macro_rules! make_builtin_fn {
@ -13,9 +15,7 @@ macro_rules! make_builtin_fn {
/// The global `Array` object /// The global `Array` object
pub mod array; pub mod array;
/// the global `Symbol` Object /// The global `Boolean` object
pub mod symbol;
// The global `Boolean` object
pub mod boolean; pub mod boolean;
pub mod console; pub mod console;
/// The global `Error` object /// The global `Error` object
@ -36,5 +36,7 @@ pub mod property;
pub mod regexp; pub mod regexp;
/// The global `String` object /// The global `String` object
pub mod string; pub mod string;
/// the global `Symbol` Object
pub mod symbol;
/// Javascript values, utility methods and conversion between Javascript values and Rust values /// Javascript values, utility methods and conversion between Javascript values and Rust values
pub mod value; pub mod value;

2
boa/src/environment/mod.rs

@ -1,3 +1,5 @@
//! Environment handling, lexical, object, function and declaritive records
pub mod declarative_environment_record; pub mod declarative_environment_record;
pub mod environment_record_trait; pub mod environment_record_trait;
pub mod function_environment_record; pub mod function_environment_record;

2
boa/src/exec/mod.rs

@ -1,3 +1,5 @@
//! Execution of the AST, this is where the interpreter actually runs
#[cfg(test)] #[cfg(test)]
mod tests; mod tests;

5
boa/src/lib.rs

@ -12,7 +12,7 @@
unused_lifetimes, unused_lifetimes,
unreachable_pub, unreachable_pub,
trivial_numeric_casts, trivial_numeric_casts,
rustdoc, // rustdoc,
missing_debug_implementations, missing_debug_implementations,
missing_copy_implementations, missing_copy_implementations,
deprecated_in_future, deprecated_in_future,
@ -29,7 +29,8 @@
clippy::cognitive_complexity, clippy::cognitive_complexity,
clippy::must_use_candidate, clippy::must_use_candidate,
clippy::missing_errors_doc, clippy::missing_errors_doc,
clippy::as_conversions clippy::as_conversions,
missing_doc_code_examples
)] )]
pub mod builtins; pub mod builtins;

2
boa/src/syntax/mod.rs

@ -1,3 +1,5 @@
//! Syntactical analysis, such as AST, Parsing and Lexing
/// The Javascript Abstract Syntax Tree /// The Javascript Abstract Syntax Tree
pub mod ast; pub mod ast;
/// Lexical analysis (tokenizing/lexing). /// Lexical analysis (tokenizing/lexing).

Loading…
Cancel
Save