{"record":{"id":"7f272d2026a491cf","repo":"swc-project/swc","slug":"expected-ident-with-or-value-token","errorCode":null,"errorMessage":"Expected ident (with 'or' value) token","messagePattern":"Expected ident \\(with 'or' value\\) token","errorType":"validation","errorClass":"swc_css_parser::Error","httpStatus":null,"severity":"error","filePath":"crates/swc_css_parser/src/parser/at_rules/mod.rs","lineNumber":1103,"sourceCode":"            condition: supports_in_parens,\n        })\n    }\n}\n\nimpl<I> Parse<SupportsOr> for Parser<I>\nwhere\n    I: ParserInput,\n{\n    fn parse(&mut self) -> PResult<SupportsOr> {\n        let span = self.input.cur_span();\n        let keyword = match cur!(self) {\n            Token::Ident { value, .. } if value.as_ref().eq_ignore_ascii_case(\"or\") => {\n                let ident: Ident = self.parse()?;\n\n                Some(ident)\n            }\n            _ => {\n                return Err(Error::new(\n                    span,\n                    ErrorKind::Expected(\"ident (with 'or' value) token\"),\n                ));\n            }\n        };\n\n        self.input.skip_ws();\n\n        let supports_in_parens = self.parse()?;\n\n        Ok(SupportsOr {\n            span: span!(self, span.lo),\n            keyword,\n            condition: supports_in_parens,\n        })\n    }\n}\n","sourceCodeStart":1085,"sourceCodeEnd":1121,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/swc_css_parser/src/parser/at_rules/mod.rs#L1085-L1121","documentation":"Fired while parsing a @supports condition's `or` operand: the parser expected the current token to be the ident `or` (case-insensitive) to build a SupportsOr node, but another token was found. Input at fault is an @supports condition where a conjunction/disjunction keyword is missing or misspelled.","triggerScenarios":"Thrown at crates/swc_css_parser/src/parser/at_rules/mod.rs:1103 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the `or` ident between @supports conditions","Report the collected error","Fix the condition syntax"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5176682b65416c6b5de6b47379ae1588ea3ecb3f","analyzedAt":"2026-08-17T16:16:52.067Z","contentChangedAt":"2026-08-17T16:16:52.067Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}