Skip to main content

look_ahead_is_module_declaration

Function look_ahead_is_module_declaration 

Source
pub fn look_ahead_is_module_declaration(
    scanner: &mut ScannerState,
    current_token: SyntaxKind,
) -> bool
Expand description

Look ahead to check if namespace/module is followed by a declaration name on the same line. ASI prevents treating namespace\nfoo as a namespace declaration.