{"record":{"id":"1a19ea703e5fbad3","repo":"swc-project/swc","slug":"expected-ident-with-and-value-token","errorCode":null,"errorMessage":"Expected ident (with 'and' value) token","messagePattern":"Expected ident \\(with 'and' 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":1071,"sourceCode":"            condition: supports_in_parens,\n        })\n    }\n}\n\nimpl<I> Parse<SupportsAnd> for Parser<I>\nwhere\n    I: ParserInput,\n{\n    fn parse(&mut self) -> PResult<SupportsAnd> {\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(\"and\") => {\n                let ident: Ident = self.parse()?;\n\n                Some(ident)\n            }\n            _ => {\n                return Err(Error::new(\n                    span,\n                    ErrorKind::Expected(\"ident (with 'and' value) token\"),\n                ));\n            }\n        };\n\n        self.input.skip_ws();\n\n        let supports_in_parens = self.parse()?;\n\n        Ok(SupportsAnd {\n            span: span!(self, span.lo),\n            keyword,\n            condition: supports_in_parens,\n        })\n    }\n}\n","sourceCodeStart":1053,"sourceCodeEnd":1089,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/swc_css_parser/src/parser/at_rules/mod.rs#L1053-L1089","documentation":"Fired while parsing a @supports condition's `and` operand: the parser expected the current token to be the ident `and` (case-insensitive) to build a SupportsAnd node, but another token was found. Input at fault is an @supports condition that continues with something other than the required `and` conjunction.","triggerScenarios":"Thrown at crates/swc_css_parser/src/parser/at_rules/mod.rs:1071 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Separate @supports conditions with the `and` ident","Collect parser errors and report them","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"}