Home
last modified time | relevance | path

Searched refs:Expr (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DExprModel.java40 Map<String, Expr> mExprMap = new HashMap<String, Expr>();
42 List<Expr> mBindingExpressions = new ArrayList<Expr>();
63 private List<Expr> mPendingExpressions;
75 private List<Expr> mObservables;
90 public <T extends Expr> T register(T expr) { in register()
123 public Map<String, Expr> getExprMap() { in getExprMap()
131 public ComparisonExpr comparison(String op, Expr left, Expr right) { in comparison()
135 public InstanceOfExpr instanceOfOp(Expr expr, String type) { in instanceOfOp()
139 public FieldAccessExpr field(Expr parent, String name) { in field()
143 public FieldAccessExpr observableField(Expr parent, String name) { in observableField()
[all …]
DDependency.java17 final Expr mDependant;
18 final Expr mOther;
19 final Expr mCondition;
29 public Dependency(Expr dependant, Expr other) { in Dependency()
37 public Dependency(Expr dependant, Expr other, Expr condition, boolean expectedOutput) { in Dependency()
57 public Expr getOther() { in getOther()
61 public Expr getDependant() { in getDependant()
69 public Expr getCondition() { in getCondition()
DTernaryExpr.java27 public class TernaryExpr extends Expr {
28 TernaryExpr(Expr pred, Expr ifTrue, Expr ifFalse) { in TernaryExpr()
32 public Expr getPred() { in getPred()
36 public Expr getIfTrue() { in getIfTrue()
40 public Expr getIfFalse() { in getIfFalse()
65 final Expr ifTrue = getIfTrue(); in resolveType()
66 final Expr ifFalse = getIfFalse(); in resolveType()
76 private static boolean isNullLiteral(Expr expr) { in isNullLiteral()
85 Expr predExpr = getPred(); in constructDependencies()
90 Expr ifTrueExpr = getIfTrue(); in constructDependencies()
[all …]
DExpr.java38 abstract public class Expr implements VersionProvider, LocationScopeProvider { class
41 protected List<Expr> mChildren = new ArrayList<Expr>();
44 private List<Expr> mParents = new ArrayList<Expr>();
103 Expr(Iterable<Expr> children) { in Expr() method in Expr
104 for (Expr expr : children) { in Expr()
110 Expr(Expr... children) { in Expr() method in Expr
173 public Expr resolveListeners(ModelClass valueType, Expr parent) { in resolveListeners()
175 Expr child = mChildren.get(i); in resolveListeners()
182 public Expr resolveTwoWayExpressions(Expr parent) { in resolveTwoWayExpressions()
184 final Expr child = mChildren.get(i); in resolveTwoWayExpressions()
[all …]
DMethodCallExpr.java35 public class MethodCallExpr extends Expr {
40 static List<Expr> concat(Expr e, List<Expr> list) { in concat()
41 List<Expr> merged = new ArrayList<Expr>(); in concat()
47 MethodCallExpr(Expr target, String name, List<Expr> args) { in MethodCallExpr()
71 for (Expr arg : getArgs()) { in generateCode()
87 for (Expr expr : getArgs()) { in resolveType()
91 Expr target = getTarget(); in resolveType()
140 public Expr getTarget() { in getTarget()
148 public List<Expr> getArgs() { in getArgs()
DMathExpr.java25 public class MathExpr extends Expr {
27 MathExpr(Expr left, String op, Expr right) { in MathExpr()
59 public Expr getLeft() { in getLeft()
63 public Expr getRight() { in getRight()
96 private String inverseCast(Expr expr) { in inverseCast()
108 final Expr left = getLeft(); in toInverseCode()
109 final Expr right = getRight(); in toInverseCode()
110 final Expr constExpr = left.isDynamic() ? right : left; in toInverseCode()
111 final Expr varExpr = left.isDynamic() ? left : right; in toInverseCode()
DFieldAccessExpr.java38 public class FieldAccessExpr extends Expr {
47 FieldAccessExpr(Expr parent, String name) { in FieldAccessExpr()
53 FieldAccessExpr(Expr parent, String name, boolean isObservableField) { in FieldAccessExpr()
59 public Expr getChild() { in getChild()
114 public Expr resolveListeners(ModelClass listener, Expr parent) { in resolveListeners()
154 Expr listenerExpr = getModel().listenerExpr(getChild(), mName, listener, in resolveListeners()
247 Expr child = getChild(); in resolveType()
294 public Expr resolveTwoWayExpressions(Expr parent) { in resolveTwoWayExpressions()
295 final Expr child = getChild(); in resolveTwoWayExpressions()
307 final Expr replacement = binding.getExpr(); in resolveTwoWayExpressions()
[all …]
DBitShiftExpr.java25 public class BitShiftExpr extends Expr {
27 BitShiftExpr(Expr left, String op, Expr right) { in BitShiftExpr()
51 public Expr getLeft() { in getLeft()
55 public Expr getRight() { in getRight()
DComparisonExpr.java25 public class ComparisonExpr extends Expr {
27 ComparisonExpr(String op, Expr left, Expr right) { in ComparisonExpr()
51 public Expr getLeft() { in getLeft()
55 public Expr getRight() { in getRight()
DBracketExpr.java25 public class BracketExpr extends Expr {
35 BracketExpr(Expr target, Expr arg) { in BracketExpr()
77 public Expr getTarget() { in getTarget()
81 public Expr getArg() { in getArg()
DGroupExpr.java25 public class GroupExpr extends Expr {
26 public GroupExpr(Expr wrapped) { in GroupExpr()
45 public Expr getWrapped() { in getWrapped()
DInstanceOfExpr.java25 public class InstanceOfExpr extends Expr {
29 InstanceOfExpr(Expr left, String type) { in InstanceOfExpr()
58 public Expr getExpr() { in getExpr()
DUnaryExpr.java25 public class UnaryExpr extends Expr {
27 UnaryExpr(String op, Expr expr) { in UnaryExpr()
76 public Expr getExpr() { in getExpr()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/expr/
DExprModelTest.java51 private static class DummyExpr extends Expr {
153 List<Expr> shouldRead = getShouldRead(); in testShouldRead()
156 final List<Expr> readFirst = getReadFirst(shouldRead, null); in testShouldRead()
158 final Expr first = readFirst.get(0); in testShouldRead()
173 List<Expr> shouldRead = getShouldRead(); in testReadConstantTernary()
175 List<Expr> first = getReadFirst(shouldRead); in testReadConstantTernary()
182 List<Expr> justRead = new ArrayList<Expr>(); in testReadConstantTernary()
199 List<Expr> toRead = getShouldRead(); in testTernaryWithPlus()
200 List<Expr> readNow = getReadFirst(toRead); in testTernaryWithPlus()
203 List<Expr> justRead = new ArrayList<Expr>(); in testTernaryWithPlus()
[all …]
DExprTest.java36 private static class DummyExpr extends Expr {
81 Expr expr = new Expr() { in testBadExpr()
184 private void assertFlags(Expr a, Expr... exprs) { in assertFlags()
186 for (Expr expr : exprs) { in assertFlags()
194 for (Expr expr : exprs) { in assertFlags()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DExpressionVisitor.java34 import android.databinding.tool.expr.Expr;
44 public class ExpressionVisitor extends BindingExpressionBaseVisitor<Expr> {
69 public Expr visitStringLiteral(@NotNull BindingExpressionParser.StringLiteralContext ctx) { in visitStringLiteral()
88 public Expr visitGrouping(@NotNull BindingExpressionParser.GroupingContext ctx) { in visitGrouping()
100 public Expr visitBindingSyntax(@NotNull BindingExpressionParser.BindingSyntaxContext ctx) { in visitBindingSyntax()
115 public Expr visitDotOp(@NotNull BindingExpressionParser.DotOpContext ctx) { in visitDotOp()
135 …public Expr visitQuestionQuestionOp(@NotNull BindingExpressionParser.QuestionQuestionOpContext ctx… in visitQuestionQuestionOp()
138 final Expr left = ctx.left.accept(this); in visitQuestionQuestionOp()
147 public Expr visitTerminal(@NotNull TerminalNode node) { in visitTerminal()
183 public Expr visitComparisonOp(@NotNull BindingExpressionParser.ComparisonOpContext ctx) { in visitComparisonOp()
[all …]
DMergedBinding.java20 import android.databinding.tool.expr.Expr;
47 List<Expr> children = getExpr().getChildren(); in resolveListeners()
48 final Expr expr = getExpr(); in resolveListeners()
50 final Expr child = children.get(i); in resolveListeners()
55 private static Expr createArgListExpr(ExprModel model, final Iterable<Binding> bindings) { in createArgListExpr()
56 List<Expr> args = new ArrayList<Expr>(); in createArgListExpr()
60 Expr expr = model.argListExpr(args); in createArgListExpr()
73 public Expr[] getComponentExpressions() { in getComponentExpressions()
75 return args.getChildren().toArray(new Expr[args.getChildren().size()]); in getComponentExpressions()
101 for (Expr expr : args.getChildren()) { in toJavaCode()
[all …]
DBinding.java19 import android.databinding.tool.expr.Expr;
37 private Expr mExpr;
41 public Binding(BindingTarget target, String name, Expr expr) { in Binding()
45 public Binding(BindingTarget target, String name, Expr expr, BindingSetterCall setterCall) { in Binding()
59 Expr listenerExpr = mExpr.resolveListeners(listenerParameter, null); in resolveListeners()
67 Expr expr = mExpr.resolveTwoWayExpressions(null); in resolveTwoWayExpressions()
114 private static ModelClass getListenerParameter(BindingTarget target, String name, Expr expr) { in getListenerParameter()
163 public Expr[] getComponentExpressions() { in getComponentExpressions()
164 return new Expr[] { mExpr }; in getComponentExpressions()
185 public Expr getExpr() { in getExpr()
[all …]
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
DLayoutBinderWriter.kt19 import android.databinding.tool.expr.Expr in <lambda>()
89 val Expr.needsLocalField by lazyProp { expr : Expr -> in ExprModel() constant
145 val Expr.readableName by lazyProp { expr : Expr -> in expr() constant
151 val Expr.fieldName by lazyProp { expr : Expr -> in expr() constant
161 val Expr.listenerClassName by lazyProp { expr : Expr -> in expr() constant
165 val Expr.oldValueName by lazyProp { expr : Expr -> in expr() constant
169 val Expr.executePendingLocalName by lazyProp { expr : Expr -> in expr() constant
174 val Expr.setterName by lazyProp { expr : Expr -> in expr() constant
178 val Expr.onChangeName by lazyProp { expr : Expr -> in expr() constant
182 val Expr.getterName by lazyProp { expr : Expr -> in expr() constant
[all …]
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/
DLayoutBinderTest.java17 import android.databinding.tool.expr.Expr;
52 final Map.Entry<String, Expr> entry = findIdentifier("test"); in testRegisterId()
53 final Expr value = entry.getValue(); in testRegisterId()
66 final Map.Entry<String, Expr> entry = findIdentifier("test"); in testRegisterImport()
67 final Expr value = entry.getValue(); in testRegisterImport()
83 final List<Expr> bindingExprs = mExprModel.getBindingExpressions(); in testParse()
98 Expr item = mExprModel.getBindingExpressions().get(0); in testParseWithMethods()
109 private Map.Entry<String, Expr> findIdentifier(String name) { in findIdentifier()
110 for (Map.Entry<String, Expr> entry : mExprModel.getExprMap().entrySet()) { in findIdentifier()
/frameworks/compile/slang/
Dslang_rs_foreach_lowering.cpp46 clang::Expr* expr) { in matchFunctionDesignator()
120 clang::Expr* arg0 = CE->getArg(0); in matchKernelLaunchCall()
198 clang::Expr* RSForEachLowering::CreateCalleeExprForInternalForEach() { in CreateCalleeExprForInternalForEach()
207 clang::Expr* calleeNew = clang::ImplicitCastExpr::Create( in CreateCalleeExprForInternalForEach()
249 clang::Expr* calleeNew = CreateCalleeExprForInternalForEach(); in VisitCallExpr()
255 const clang::Expr* arg0 = CE->getArg(0); in VisitCallExpr()
257 clang::Expr* IntSlotNum = in VisitCallExpr()
300 clang::Expr** args = CE->getArgs(); in VisitCallExpr()
314 llvm::ArrayRef<clang::Expr*>(args + allocArgIndexStart, numAllocations), in VisitCallExpr()
348 clang::Expr* IntNull = in VisitCallExpr()
[all …]
Dslang_rs_object_ref_count.cpp98 clang::Expr *DstExpr,
99 clang::Expr *SrcExpr,
265 clang::Expr *ClearSingleRSObject(clang::ASTContext &C, in ClearSingleRSObject()
266 clang::Expr *RefRSVar, in ClearSingleRSObject()
290 clang::Expr *AddrRefRSVar = in ClearSingleRSObject()
298 clang::Expr *RefRSClearObjectFD = in ClearSingleRSObject()
309 clang::Expr *RSClearObjectFP = in ClearSingleRSObject()
317 llvm::SmallVector<clang::Expr*, 1> ArgList; in ClearSingleRSObject()
344 clang::Expr *RefRSStruct,
351 clang::Expr *RefRSArr, in ClearArrayRSObject()
[all …]
Dslang_rs_object_ref_count.h29 class Expr; variable
72 clang::Expr *InitExpr);
97 void ReplaceExpr(const clang::ASTContext& C, clang::Expr* OldExpr,
98 clang::Expr* NewExpr);
132 clang::Expr **InitExpr);
140 static clang::Expr *CreateEmptyInitListExpr(
Dslang_rs_ast_replace.h27 class Expr; variable
39 clang::Expr *mOldExpr;
40 clang::Expr *mNewExpr;
42 inline bool matchesExpr(const clang::Expr *E) const { in matchesExpr()
Dslang_rs_foreach_lowering.h25 class Expr; variable
55 const clang::FunctionDecl* matchFunctionDesignator(clang::Expr* expr);
60 clang::Expr* CreateCalleeExprForInternalForEach();

12