Home
last modified time | relevance | path

Searched refs:UnOp (Results 1 – 25 of 31) sorted by relevance

12

/external/rust/crates/syn/0.15.42/src/
Dop.rs73 pub enum UnOp {
165 impl Parse for UnOp { implementation
169 input.parse().map(UnOp::Deref) in parse()
171 input.parse().map(UnOp::Not) in parse()
173 input.parse().map(UnOp::Neg) in parse()
222 impl ToTokens for UnOp { implementation
225 UnOp::Deref(ref t) => t.to_tokens(tokens), in to_tokens()
226 UnOp::Not(ref t) => t.to_tokens(tokens), in to_tokens()
227 UnOp::Neg(ref t) => t.to_tokens(tokens), in to_tokens()
Dlib.rs390 pub use op::{BinOp, UnOp};
Dexpr.rs165 pub op: UnOp,
2952 op: UnOp::Neg(neg), in pat_lit_expr()
/external/rust/crates/syn/1.0.7/src/
Dop.rs73 pub enum UnOp {
165 impl Parse for UnOp { implementation
169 input.parse().map(UnOp::Deref) in parse()
171 input.parse().map(UnOp::Not) in parse()
173 input.parse().map(UnOp::Neg) in parse()
222 impl ToTokens for UnOp { implementation
225 UnOp::Deref(t) => t.to_tokens(tokens), in to_tokens()
226 UnOp::Not(t) => t.to_tokens(tokens), in to_tokens()
227 UnOp::Neg(t) => t.to_tokens(tokens), in to_tokens()
Dlib.rs390 pub use crate::op::{BinOp, UnOp};
Dpat.rs711 op: UnOp::Neg(neg), in pat_lit_expr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/MCTargetDesc/
DWebAssemblyWasmObjectWriter.cpp54 if (auto UnOp = dyn_cast<MCUnaryExpr>(Expr)) in IsFunctionExpr() local
55 return IsFunctionExpr(UnOp->getSubExpr()); in IsFunctionExpr()
78 if (auto UnOp = dyn_cast<MCUnaryExpr>(Expr)) in GetFixupSection() local
79 return GetFixupSection(UnOp->getSubExpr()); in GetFixupSection()
/external/apache-commons-bcel/src/examples/Mini/
DMini.bnf22 UnOp Expr
41 UnOp:
60 UnOp Expr
DMini.jjt105 un_op = UnOp() { jjtThis.setUnOp(un_op); } Expr()
237 int UnOp() #void :
DMini.jj152 un_op = UnOp() { jjtn000.setUnOp(un_op); } Expr()/*@bgen(jjtree)*/
503 int UnOp() :
DMiniParser.java181 un_op = UnOp(); in Expr()
688 static final public int UnOp() throws ParseException { in UnOp() method in MiniParser
/external/clang/include/clang/AST/
DStmtVisitor.h82 } else if (PTR(UnaryOperator) UnOp = dyn_cast<UnaryOperator>(S)) { in Visit()
83 switch (UnOp->getOpcode()) { in Visit()
DRecursiveASTVisitor.h540 } else if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(S)) {
541 switch (UnOp->getOpcode()) {
/external/rust/crates/syn/1.0.7/tests/common/
Deq.rs23 TraitItemKind, TraitObjectSyntax, TraitRef, Ty, TyKind, UintTy, UnOp, UnsafeSource, Unsafety,
354 spanless_eq_enum!(UnOp; Deref Not Neg);
/external/rust/crates/syn/0.15.42/tests/common/
Deq.rs23 TraitItemKind, TraitObjectSyntax, TraitRef, Ty, TyKind, UintTy, UnOp, UnsafeSource, Unsafety,
354 spanless_eq_enum!(UnOp; Deref Not Neg);
/external/clang/lib/AST/
DExpr.cpp2582 if (const UnaryOperator* UnOp = dyn_cast<UnaryOperator>(E)) { in isImplicitCXXThis() local
2583 if (UnOp->getOpcode() == UO_Extension) { in isImplicitCXXThis()
2584 E = UnOp->getSubExpr(); in isImplicitCXXThis()
3322 if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(E)) in getSourceBitField() local
3323 if (UnOp->isPrefix() && UnOp->isIncrementDecrementOp()) in getSourceBitField()
3324 return UnOp->getSubExpr()->getSourceBitField(); in getSourceBitField()
/external/rust/crates/syn/1.0.7/src/gen/
Dfold.rs723 fn fold_un_op(&mut self, i: UnOp) -> UnOp { in fold_un_op() argument
3070 pub fn fold_un_op<F>(f: &mut F, node: UnOp) -> UnOp in fold_un_op()
3075 UnOp::Deref(_binding_0) => UnOp::Deref(Token ! [ * ](tokens_helper(f, &_binding_0.spans))), in fold_un_op()
3076 UnOp::Not(_binding_0) => UnOp::Not(Token![!](tokens_helper(f, &_binding_0.spans))), in fold_un_op()
3077 UnOp::Neg(_binding_0) => UnOp::Neg(Token ! [ - ](tokens_helper(f, &_binding_0.spans))), in fold_un_op()
Dvisit_mut.rs725 fn visit_un_op_mut(&mut self, i: &mut UnOp) { in visit_un_op_mut() argument
3614 pub fn visit_un_op_mut<V>(v: &mut V, node: &mut UnOp) in visit_un_op_mut()
3619 UnOp::Deref(_binding_0) => { in visit_un_op_mut()
3622 UnOp::Not(_binding_0) => { in visit_un_op_mut()
3625 UnOp::Neg(_binding_0) => { in visit_un_op_mut()
Dvisit.rs721 fn visit_un_op(&mut self, i: &'ast UnOp) { in visit_un_op() argument
3608 pub fn visit_un_op<'ast, V>(v: &mut V, node: &'ast UnOp) in visit_un_op()
3613 UnOp::Deref(_binding_0) => { in visit_un_op()
3616 UnOp::Not(_binding_0) => { in visit_un_op()
3619 UnOp::Neg(_binding_0) => { in visit_un_op()
/external/rust/crates/syn/0.15.42/src/gen/
Dfold.rs761 fn fold_un_op(&mut self, i: UnOp) -> UnOp { in fold_un_op() argument
2824 pub fn fold_un_op<V: Fold + ?Sized>(_visitor: &mut V, _i: UnOp) -> UnOp { in fold_un_op() argument
2826 UnOp::Deref(_binding_0) => { in fold_un_op()
2827 UnOp::Deref(Token ! [ * ](tokens_helper(_visitor, &_binding_0.spans))) in fold_un_op()
2829 UnOp::Not(_binding_0) => UnOp::Not(Token![!](tokens_helper(_visitor, &_binding_0.spans))), in fold_un_op()
2830 UnOp::Neg(_binding_0) => { in fold_un_op()
2831 UnOp::Neg(Token ! [ - ](tokens_helper(_visitor, &_binding_0.spans))) in fold_un_op()
Dvisit_mut.rs762 fn visit_un_op_mut(&mut self, i: &mut UnOp) { in visit_un_op_mut() argument
3151 pub fn visit_un_op_mut<V: VisitMut + ?Sized>(_visitor: &mut V, _i: &mut UnOp) { in visit_un_op_mut() argument
3153 UnOp::Deref(ref mut _binding_0) => { in visit_un_op_mut()
3156 UnOp::Not(ref mut _binding_0) => { in visit_un_op_mut()
3159 UnOp::Neg(ref mut _binding_0) => { in visit_un_op_mut()
Dvisit.rs759 fn visit_un_op(&mut self, i: &'ast UnOp) { in visit_un_op() argument
3238 pub fn visit_un_op<'ast, V: Visit<'ast> + ?Sized>(_visitor: &mut V, _i: &'ast UnOp) { in visit_un_op() argument
3240 UnOp::Deref(ref _binding_0) => { in visit_un_op()
3243 UnOp::Not(ref _binding_0) => { in visit_un_op()
3246 UnOp::Neg(ref _binding_0) => { in visit_un_op()
/external/clang/lib/Sema/
DSemaTemplate.cpp4487 while (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(Arg)) { in CheckTemplateArgumentAddressOfObjectOrFunction() local
4488 UnaryOperatorKind UnOpKind = UnOp->getOpcode(); in CheckTemplateArgumentAddressOfObjectOrFunction()
4492 Arg = UnOp->getSubExpr()->IgnoreParenCasts(); in CheckTemplateArgumentAddressOfObjectOrFunction()
4495 FirstOpLoc = UnOp->getOperatorLoc(); in CheckTemplateArgumentAddressOfObjectOrFunction()
4551 if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(Arg)) { in CheckTemplateArgumentAddressOfObjectOrFunction() local
4552 if (UnOp->getOpcode() == UO_AddrOf) { in CheckTemplateArgumentAddressOfObjectOrFunction()
4553 Arg = UnOp->getSubExpr(); in CheckTemplateArgumentAddressOfObjectOrFunction()
4555 AddrOpLoc = UnOp->getOperatorLoc(); in CheckTemplateArgumentAddressOfObjectOrFunction()
4831 if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(Arg)) { in CheckTemplateArgumentPointerToMember() local
4832 if (UnOp->getOpcode() == UO_AddrOf) { in CheckTemplateArgumentPointerToMember()
[all …]
DSemaOverload.cpp12995 if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(E)) { in FixOverloadedFunctionReference() local
12996 assert(UnOp->getOpcode() == UO_AddrOf && in FixOverloadedFunctionReference()
13006 Expr *SubExpr = FixOverloadedFunctionReference(UnOp->getSubExpr(), in FixOverloadedFunctionReference()
13008 if (SubExpr == UnOp->getSubExpr()) in FixOverloadedFunctionReference()
13009 return UnOp; in FixOverloadedFunctionReference()
13025 (void)isCompleteType(UnOp->getOperatorLoc(), MemPtrType); in FixOverloadedFunctionReference()
13029 UnOp->getOperatorLoc()); in FixOverloadedFunctionReference()
13032 Expr *SubExpr = FixOverloadedFunctionReference(UnOp->getSubExpr(), in FixOverloadedFunctionReference()
13034 if (SubExpr == UnOp->getSubExpr()) in FixOverloadedFunctionReference()
13035 return UnOp; in FixOverloadedFunctionReference()
[all …]
/external/rust/crates/syn/1.0.7/tests/debug/
Dgen.rs5387 impl Debug for Lite<syn::UnOp> {
5391 syn::UnOp::Deref(_val) => { in fmt()
5395 syn::UnOp::Not(_val) => { in fmt()
5399 syn::UnOp::Neg(_val) => { in fmt()

12