Home
last modified time | relevance | path

Searched refs:exprType (Results 1 – 12 of 12) sorted by relevance

/external/javassist/src/main/javassist/compiler/
DTypeChecker.java57 protected int exprType; // VOID, NULL, CLASS, BOOLEAN, INT, ... field in TypeChecker
172 exprType = CLASS; in atNewExpr()
193 exprType = type; in atNewArrayExpr()
228 exprType = type; in atMultiNewArray()
275 exprType = varType; in atVariableAssign()
284 int aType = exprType; in atArrayAssign()
288 exprType = aType; in atArrayAssign()
298 int fType = exprType; in atFieldAssign()
302 exprType = fType; in atFieldAssign()
311 int type1 = exprType; in atCondExpr()
[all …]
DJvstTypeChecker.java46 if (exprType == VOID) { in addNullIfVoid()
47 exprType = CLASS; in addNullIfVoid()
60 exprType = CLASS; in atMember()
65 exprType = CLASS; in atMember()
71 exprType = CLASS; in atMember()
126 if (exprType == VOID || CodeGen.isRefType(exprType) || arrayDim > 0) in atCastToRtype()
131 exprType = destType; in atCastToRtype()
139 if (CodeGen.isRefType(exprType) || arrayDim > 0) in atCastToWrapper()
142 CtClass clazz = resolver.lookupClass(exprType, arrayDim, className); in atCastToWrapper()
144 exprType = CLASS; in atCastToWrapper()
[all …]
DJvstCodeGen.java83 if (exprType == VOID) { in addNullIfVoid()
85 exprType = CLASS; in addNullIfVoid()
99 exprType = CLASS; in atMember()
107 exprType = CLASS; in atMember()
132 exprType = CLASS; in callGetType()
147 if (arrayDim != 1 || exprType != CLASS) in atFieldAssign()
172 varNo += is2word(exprType, arrayDim) ? 2 : 1; in atAssignParamList()
203 if (exprType == VOID || isRefType(exprType) || arrayDim > 0) in atCastToRtype()
208 atNumCastExpr(exprType, destType); in atCastToRtype()
209 exprType = destType; in atCastToRtype()
[all …]
DCodeGen.java105 protected int exprType; // VOID, NULL, CLASS, BOOLEAN, INT, ... field in CodeGen
369 if (is2word(exprType, arrayDim)) in atStmnt()
371 else if (exprType != VOID) in atStmnt()
645 int type = exprType; in atReturnStmnt2()
672 if (exprType != CLASS || arrayDim > 0) in atThrowStmnt()
690 if (exprType != CLASS && arrayDim == 0) in atSyncStmnt()
862 exprType = varType; in atVariableAssign()
877 bytecode.addOpcode(getArrayReadOp(exprType, arrayDim)); in atArrayAssign()
880 int aType = exprType; in atArrayAssign()
893 exprType = aType; in atArrayAssign()
[all …]
DMemberCodeGen.java334 exprType = CLASS; in atNewExpr()
424 atNumCastExpr(exprType, type); in atNewArrayExpr2()
431 exprType = type; in atNewArrayExpr2()
463 if (exprType != INT) in atMultiNewArray()
468 exprType = type; in atMultiNewArray()
548 exprType = CLASS; in atCallExpr()
556 else if (exprType == CLASS /* && arrayDim == 0 */) in atCallExpr()
765 types[i] = exprType; in atMethodArgs()
793 exprType = CLASS; in setReturnType()
797 exprType = MemberResolver.descToType(c); in setReturnType()
[all …]
/external/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/
DUnaryOperationExpr.java76 TypeNode exprType = unaryOperationExpr.expr().type(); in build() local
95 "Unary operator %s can not be applied to %s. ", operator, exprType.toString()); in build()
98 !exprType.equals(TypeNode.VOID) && !exprType.equals(TypeNode.NULL), errorMsg); in build()
101 Preconditions.checkState(isValidLogicalNotType(exprType), errorMsg); in build()
105 Preconditions.checkState(isValidIncrementType(exprType), errorMsg); in build()
112 private static boolean isValidLogicalNotType(TypeNode exprType) { in isValidLogicalNotType() argument
114 return exprType.equals(TypeNode.BOOLEAN); in isValidLogicalNotType()
117 private static boolean isValidIncrementType(TypeNode exprType) { in isValidIncrementType() argument
120 return TypeNode.isNumericType(exprType); in isValidIncrementType()
DCastExpr.java47 TypeNode exprType = castExpr.expr().type(); in build() local
49 !castType.equals(TypeNode.VOID) && !exprType.equals(TypeNode.VOID), in build()
53 if (castType.isPrimitiveType() && exprType.isPrimitiveType()) { in build()
56 !(castType.equals(TypeNode.BOOLEAN) ^ exprType.equals(TypeNode.BOOLEAN)), in build()
60 exprType.equals(TypeNode.NULL) || TypeNode.isReferenceType(exprType); in build()
63 boolean isEqualType = castType.equals(exprType); in build()
/external/skia/src/sksl/ir/
DSkSLConstructorArray.cpp52 const Type& exprType = expr.type(); in Convert() local
54 if (exprType.isArray() && exprType.canCoerceTo(type, /*allowNarrowing=*/true)) { in Convert()
DSkSLSwizzle.cpp126 const Type& exprType = base.type(); in optimize_constructor_swizzle() local
127 const Type& componentType = exprType.componentType(); in optimize_constructor_swizzle()
454 const Type& exprType = expr->type(); in Make() local
455 SkASSERTF(exprType.isVector() || exprType.isScalar(), in Make()
456 "cannot swizzle type '%s'", exprType.description().c_str()); in Make()
469 if (exprType.isScalar()) { in Make()
471 exprType.toCompound(context, components.size(), /*rows=*/1), in Make()
476 if (components.size() == exprType.columns() && IsIdentity(components)) { in Make()
/external/skia/src/sksl/codegen/
DSkSLMetalCodeGenerator.cpp1143 std::string exprType = this->typeName(arguments[0]->type()); in writeIntrinsicCall() local
1156 this->write(exprType); in writeIntrinsicCall()
1160 this->write(exprType); in writeIntrinsicCall()
1167 std::string exprType = this->typeName(arguments[0]->type()); in writeIntrinsicCall() local
1208 this->write(exprType); in writeIntrinsicCall()
1216 std::string exprType = this->typeName(arguments[0]->type()); in writeIntrinsicCall() local
1227 this->write(exprType); in writeIntrinsicCall()
1229 this->write(exprType); in writeIntrinsicCall()
1233 this->write(exprType); in writeIntrinsicCall()
/external/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/
DImportWriterVisitorTest.java602 TypeNode exprType = TypeNode.withReference(ConcreteReference.withClazz(Expr.class)); in writeInstanceofExprImports_basic() local
610 InstanceofExpr.builder().setExpr(variableExpr).setCheckType(exprType).build(); in writeInstanceofExprImports_basic()
/external/clang/lib/Sema/
DSemaExprObjC.cpp4197 QualType exprType) { in CheckObjCARCUnavailableWeakConversion() argument
4201 Context.getCanonicalType(exprType).getUnqualifiedType(); in CheckObjCARCUnavailableWeakConversion()