Lines Matching refs:LanguageMode
299 enum class LanguageMode : bool { kSloppy, kStrict }; enum
302 inline size_t hash_value(LanguageMode mode) { in hash_value()
306 inline std::ostream& operator<<(std::ostream& os, const LanguageMode& mode) {
308 case LanguageMode::kSloppy:
310 case LanguageMode::kStrict:
316 inline bool is_sloppy(LanguageMode language_mode) { in is_sloppy()
317 return language_mode == LanguageMode::kSloppy; in is_sloppy()
320 inline bool is_strict(LanguageMode language_mode) { in is_strict()
321 return language_mode != LanguageMode::kSloppy; in is_strict()
325 return language_mode == static_cast<int>(LanguageMode::kSloppy) || in is_valid_language_mode()
326 language_mode == static_cast<int>(LanguageMode::kStrict); in is_valid_language_mode()
329 inline LanguageMode construct_language_mode(bool strict_bit) { in construct_language_mode()
330 return static_cast<LanguageMode>(strict_bit); in construct_language_mode()
335 inline LanguageMode stricter_language_mode(LanguageMode mode1, in stricter_language_mode()
336 LanguageMode mode2) { in stricter_language_mode()
338 return static_cast<LanguageMode>(static_cast<int>(mode1) | in stricter_language_mode()