18 matches across 1 files for error lang:Rust path:compiler/crates/react_compiler_ast/src/statements.rs
snippet_mode: grep · sorted by relevance
compiler/crates/react_compiler_ast/src/statements.rs RUST 18 matches · showing 5 view file →
3use serde::Serialize;
4use serde::Serializer;
5use serde::de::Error as _;
6
7use crate::common::BaseNode;
· · ·
74 ///
75 /// Deserialization dispatches through [`KnownStatement`]: a modeled `type`
76 /// whose body is malformed errors with the typed variant's precise message
77 /// rather than degrading to `Unknown`. Adding a variant to this enum
78 /// requires adding it to the `known_statements!` list below, which is the
· · ·
148
149impl Serialize for UnknownStatement {
150 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
151 where
152 S: Serializer,
· · ·
157
158impl<'de> Deserialize<'de> for UnknownStatement {
159 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
160 where
161 D: Deserializer<'de>,
· · ·
162 {
163 let raw = RawNode::deserialize(deserializer)?;
164 Self::from_raw(raw).map_err(D::Error::custom)
165 }
166}
+ 13 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.