MCPcopy Create free account
hub / github.com/d0iasm/saba / initialiser

Method initialiser

core/src/renderer/js/ast.rs:348–358  ·  view source on GitHub ↗

Initialiser ::= "=" AssignmentExpression

(&mut self)

Source from the content-addressed store, hash-verified

346
347 /// Initialiser ::= "=" AssignmentExpression
348 fn initialiser(&mut self) -> Option<Rc<Node>> {
349 let t = match self.t.next() {
350 Some(token) => token,
351 None => return None,
352 };
353
354 match t {
355 Token::Punctuator('=') => self.assignment_expression(),
356 _ => None,
357 }
358 }
359
360 /// VariableDeclarationList ::= VariableDeclaration ( "," VariableDeclaration )*
361 /// VariableDeclaration ::= Identifier ( Initialiser )?

Callers 1

variable_declarationMethod · 0.80

Calls 2

assignment_expressionMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected