Skip to main content

parse_source_to_module_with_flags

Function parse_source_to_module_with_flags 

Source
pub fn parse_source_to_module_with_flags(
    file_id: FileId,
    path: &Path,
    source: &str,
    content_hash: u64,
    need_complexity: bool,
    flag_patterns: &FlagPatterns,
) -> ModuleInfo
Expand description

Parse source text into a ModuleInfo, with the user flag patterns applied on top of the built-in ones.