From 3e5dff61786f5eb5c2db07c33703b4f710d08112 Mon Sep 17 00:00:00 2001 From: HalidOdat Date: Wed, 15 Apr 2020 02:26:42 +0200 Subject: [PATCH] Added documentation to `BinOp` --- boa/src/syntax/ast/op.rs | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/boa/src/syntax/ast/op.rs b/boa/src/syntax/ast/op.rs index 251a02eda3..8639de975b 100644 --- a/boa/src/syntax/ast/op.rs +++ b/boa/src/syntax/ast/op.rs @@ -618,19 +618,33 @@ impl Display for LogOp { } } -/// A binary operation between 2 values +/// This represents a binary operation between two values. #[cfg_attr(feature = "serde-ast", derive(Serialize, Deserialize))] #[derive(Clone, Debug, Trace, Finalize, PartialEq)] pub enum BinOp { - /// Numeric operation + /// Numeric operation. + /// + /// see: [`NumOp`](enum.NumOp.html) Num(NumOp), - /// Bitwise operation + + /// Bitwise operation. + /// + /// see: [`BitOp`](enum.BitOp.html). Bit(BitOp), - /// Comparitive operation + + /// Comparitive operation. + /// + /// see: [`CompOp`](enum.CompOp.html). Comp(CompOp), - /// Logical operation + + /// Logical operation. + /// + /// see: [`LogOp`](enum.LogOp.html). Log(LogOp), - /// Assign operation + + /// Assign operation. + /// + /// see: [`AssignOp`](enum.AssignOp.html). Assign(AssignOp), }