Home
last modified time | relevance | path

Searched refs:EvalResult (Results 1 – 7 of 7) sorted by relevance

/third_party/rust/crates/rust-cexpr/src/
Dexpr.rs41 identifiers: &'ident HashMap<Vec<u8>, EvalResult>,
52 pub enum EvalResult { enum
65 if let EvalResult::$e(v) = self {
74 impl EvalResult { implementation
81 fn as_numeric(self) -> Option<EvalResult> { in as_numeric() argument
83 EvalResult::Int(_) | EvalResult::Float(_) => Some(self), in as_numeric()
89 impl From<Vec<u8>> for EvalResult { implementation
90 fn from(s: Vec<u8>) -> EvalResult { in from() argument
91 EvalResult::Str(s) in from()
162 impl<'a> AddAssign<&'a EvalResult> for EvalResult { implementation
[all …]
Dliteral.rs51 use crate::expr::EvalResult;
345 fn one_literal(input: &[u8]) -> nom::IResult<&[u8], EvalResult, crate::Error<&[u8]>> { in one_literal() argument
347 map(full(c_char), EvalResult::Char), in one_literal()
348 map(full(c_int), |i| EvalResult::Int(::std::num::Wrapping(i))), in one_literal()
349 map(full(c_float), EvalResult::Float), in one_literal()
350 map(full(c_string), EvalResult::Str), in one_literal()
359 pub fn parse(input: &[u8]) -> IResult<&[u8], EvalResult, crate::Error<&[u8]>> { in parse() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp45 EvalResult LHSResult; in evaluate()
55 EvalResult RHSResult; in evaluate()
97 class EvalResult { class in llvm::RuntimeDyldCheckerExprEval
99 EvalResult() : Value(0), ErrorMsg("") {} in EvalResult() function in llvm::RuntimeDyldCheckerExprEval::EvalResult
100 EvalResult(uint64_t Value) : Value(Value), ErrorMsg("") {} in EvalResult() function in llvm::RuntimeDyldCheckerExprEval::EvalResult
101 EvalResult(std::string ErrorMsg) in EvalResult() function in llvm::RuntimeDyldCheckerExprEval::EvalResult
130 EvalResult unexpectedToken(StringRef TokenStart, StringRef SubExpr, in unexpectedToken()
143 return EvalResult(std::move(ErrorMsg)); in unexpectedToken()
146 bool handleError(StringRef Expr, const EvalResult &R) const { in handleError()
185 EvalResult computeBinOpResult(BinOpToken Op, const EvalResult &LHSResult, in computeBinOpResult()
[all …]
/third_party/rust/crates/bindgen/bindgen/ir/
Dvar.rs178 use cexpr::expr::EvalResult; in parse()
226 EvalResult::Invalid => return Err(ParseError::Continue), in parse()
227 EvalResult::Float(f) => { in parse()
230 EvalResult::Char(c) => { in parse()
244 EvalResult::Str(val) => { in parse()
255 EvalResult::Int(Wrapping(value)) => { in parse()
379 ) -> Option<(Vec<u8>, cexpr::expr::EvalResult)> { in parse_macro() argument
394 use cexpr::expr::EvalResult; in parse_int_literal_tokens()
400 Ok((_, EvalResult::Int(Wrapping(val)))) => Some(val), in parse_int_literal_tokens()
Dcontext.rs355 parsed_macros: StdHashMap<Vec<u8>, cexpr::expr::EvalResult>,
2030 ) -> &StdHashMap<Vec<u8>, cexpr::expr::EvalResult> { in parsed_macros() argument
2039 value: cexpr::expr::EvalResult, in note_parsed_macro() argument
/third_party/rust/crates/rust-cexpr/tests/
Dclang.rs17 use cexpr::expr::{fn_macro_declaration, EvalResult, IdentifierParser};
26 idents: &mut HashMap<Vec<u8>, EvalResult>, in test_definition() argument
28 fn bytes_to_int(value: &[u8]) -> Option<EvalResult> { in test_definition() argument
38 use cexpr::expr::EvalResult::*; in test_definition()
/third_party/rust/crates/bindgen/bindgen/
Dclang.rs836 pub fn evaluate(&self) -> Option<EvalResult> { in evaluate() argument
837 EvalResult::new(*self) in evaluate()
2104 pub struct EvalResult { struct
2108 impl EvalResult { implementation
2131 Some(EvalResult { in new()
2191 impl Drop for EvalResult { implementation