/third_party/typescript_eslint/packages/eslint-plugin/src/rules/ |
D | restrict-plus-operands.ts | 105 const rightType = getNodeType(node.right); constant 109 rightType === 'invalid' || 110 leftType !== rightType 112 if (leftType === 'string' || rightType === 'string') { 117 } else if (leftType === 'bigint' || rightType === 'bigint') {
|
D | no-unnecessary-condition.ts | 317 const rightType = getNodeType(node.right); constant 318 if (isLiteral(leftType) && isLiteral(rightType)) { 343 !isComparable(rightType, UNDEFINED)) || 344 (rightType.flags === UNDEFINED && 346 (leftType.flags === NULL && !isComparable(rightType, NULL)) || 347 (rightType.flags === NULL && !isComparable(leftType, NULL))
|
D | no-base-to-string.ts | 164 const rightType = typeChecker.getTypeAtLocation( constant 169 checkExpression(node.right, rightType); 170 } else if (util.getTypeName(typeChecker, rightType) === 'string') {
|
/third_party/skia/src/sksl/ |
D | SkSLConstantFolder.cpp | 407 const Type& rightType = right->type(); in Simplify() local 409 (rightType.isScalar() || rightType.isVector())) { in Simplify() 504 if (leftType.isVector() && leftType == rightType) { in Simplify() 518 if (leftType.isVector() && leftType.componentType() == rightType) { in Simplify() 519 if (rightType.isFloat()) { in Simplify() 522 if (rightType.isInteger()) { in Simplify() 525 if (rightType.isBoolean()) { in Simplify() 533 if (rightType.isVector() && rightType.componentType() == leftType) { in Simplify() 548 if ((leftType.isMatrix() && rightType.isMatrix()) || in Simplify() 549 (leftType.isArray() && rightType.isArray())) { in Simplify()
|
/third_party/skia/src/sksl/ir/ |
D | SkSLBinaryExpression.cpp | 96 const Type* rightType; in Convert() local 99 &leftType, &rightType, &resultType)) { in Convert() 128 right = rightType->coerceExpression(std::move(right), context); in Convert() 142 const Type* rightType; in Make() local 145 &leftType, &rightType, &resultType)); in Make()
|
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/ |
D | ArabicShaping.java | 69 public static void shape(char[] chars, int leftType, int rightType, ClassTable isolClassTable) { in shape() argument 89 boolean rightCauses = (rightType & MASK_SHAPE_LEFT) != 0; in shape()
|
D | CanonGSUBBuilder.java | 41 int rightType = ArabicShaping.VALUE_NONE; in convertArabicString() local 48 rightType = ArabicShaping.VALUE_LEFT; in convertArabicString() 56 rightType = ArabicShaping.VALUE_LEFT; in convertArabicString() 66 ArabicShaping.shape(chars, leftType, rightType, isolClassTable); in convertArabicString()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/ |
D | ClampIndirectIndices.cpp | 49 const TType &rightType = node->getRight()->getType(); in visitBinary() local 89 if (rightType.getBasicType() != requiredBasicType) in visitBinary()
|
/third_party/skia/src/sksl/codegen/ |
D | SkSLMetalCodeGenerator.cpp | 1552 void MetalCodeGenerator::writeEqualityHelpers(const Type& leftType, const Type& rightType) { in writeEqualityHelpers() argument 1553 if (leftType.isArray() && rightType.isArray()) { in writeEqualityHelpers() 1557 if (leftType.isStruct() && rightType.isStruct()) { in writeEqualityHelpers() 1561 if (leftType.isMatrix() && rightType.isMatrix()) { in writeEqualityHelpers() 1562 this->writeMatrixEqualityHelpers(leftType, rightType); in writeEqualityHelpers() 1593 const Type& rightType = right.type(); in writeBinaryExpression() local 1599 this->writeEqualityHelpers(leftType, rightType); in writeBinaryExpression() 1606 this->writeEqualityHelpers(leftType, rightType); in writeBinaryExpression() 1615 if (leftType.isMatrix() && rightType.isMatrix() && op.kind() == Token::Kind::TK_STAREQ) { in writeBinaryExpression() 1616 this->writeMatrixTimesEqualHelper(leftType, rightType, b.type()); in writeBinaryExpression() [all …]
|
D | SkSLSPIRVCodeGenerator.cpp | 2327 const Type& rightType, SpvId rhs, in writeBinaryExpression() argument 2337 if (this->getActualType(leftType) != this->getActualType(rightType)) { in writeBinaryExpression() 2338 if (leftType.isVector() && rightType.isNumber()) { in writeBinaryExpression() 2342 rhs = this->writeReciprocal(rightType, rhs, out); in writeBinaryExpression() 2366 } else if (rightType.isVector() && leftType.isNumber()) { in writeBinaryExpression() 2376 const Type& vecType = rightType; in writeBinaryExpression() 2385 operandType = &rightType; in writeBinaryExpression() 2390 if (rightType.isMatrix()) { in writeBinaryExpression() 2392 } else if (rightType.isVector()) { in writeBinaryExpression() 2395 SkASSERT(rightType.isScalar()); in writeBinaryExpression() [all …]
|
D | SkSLMetalCodeGenerator.h | 185 void writeEqualityHelpers(const Type& leftType, const Type& rightType);
|
D | SkSLSPIRVCodeGenerator.h | 370 const Type& rightType, SpvId rhs, const Type& resultType,
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
D | ToposortStructs.cpp | 264 const TType &rightType = binary->getRight()->getType(); in visitBinary() local 265 ASSERT(leftType.getStruct() == rightType.getStruct()); in visitBinary()
|
D | EmitMetal.cpp | 747 const TType &rightType = binaryNode->getRight()->getType(); in Parenthesize() local 748 return IsSymbolicOperator(binaryNode->getOp(), resultType, &leftType, &rightType); in Parenthesize() 1555 const TType &rightType = rightNode.getType(); in visitBinary() local 1557 if (IsSymbolicOperator(op, resultType, &leftType, &rightType)) in visitBinary() 1568 mOut << GetOperatorString(op, resultType, &leftType, &rightType, nullptr) << " "; in visitBinary() 1574 mOut << GetOperatorString(op, resultType, &leftType, &rightType, nullptr) << "("; in visitBinary()
|
D | ProgramPrelude.cpp | 3889 const TType &rightType = node->getRight()->getType(); in visitBinary() local 3890 visitOperator(node->getOp(), nullptr, &leftType, &rightType); in visitBinary()
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLSPIRVCodeGenerator.cpp | 2069 const Type& rightType, SpvId rhs, in writeBinaryExpression() argument 2076 if (this->getActualType(leftType) != this->getActualType(rightType)) { in writeBinaryExpression() 2077 if (leftType.kind() == Type::kVector_Kind && rightType.isNumber()) { in writeBinaryExpression() 2079 SpvId one = this->writeExpression(*create_literal_1(fContext, rightType), out); in writeBinaryExpression() 2081 this->writeInstruction(SpvOpFDiv, this->getType(rightType), inverse, one, rhs, out); in writeBinaryExpression() 2102 } else if (rightType.kind() == Type::kVector_Kind && leftType.isNumber()) { in writeBinaryExpression() 2111 const Type& vecType = rightType; in writeBinaryExpression() 2119 operandType = &rightType; in writeBinaryExpression() 2122 if (rightType.kind() == Type::kMatrix_Kind) { in writeBinaryExpression() 2124 } else if (rightType.kind() == Type::kVector_Kind) { in writeBinaryExpression() [all …]
|
D | SkSLSPIRVCodeGenerator.h | 280 const Type& rightType, SpvId rhs, const Type& resultType,
|
D | SkSLIRGenerator.cpp | 1662 const Type* rightType; in convertBinaryExpression() local 1677 if (!determine_binary_type(fContext, op, *rawLeftType, *rawRightType, &leftType, &rightType, in convertBinaryExpression() 1690 right = this->coerce(std::move(right), *rightType); in convertBinaryExpression()
|
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/ |
D | IntermNode.cpp | 2026 const TType &rightType, in FoldBinary() argument 2035 if (rightType.getObjectSize() == 1 && objectSize > 1) in FoldBinary() 2039 else if (rightType.getObjectSize() > 1 && objectSize == 1) in FoldBinary() 2042 leftArray = Vectorize(*leftArray, rightType.getObjectSize()); in FoldBinary() 2043 objectSize = rightType.getObjectSize(); in FoldBinary() 2075 ASSERT(leftType.getBasicType() == EbtFloat && rightType.getBasicType() == EbtFloat); in FoldBinary() 2079 const int rightCols = rightType.getCols(); in FoldBinary() 2080 const int rightRows = rightType.getRows(); in FoldBinary() 2108 if (IsFloatDivision(leftType.getBasicType(), rightType.getBasicType())) in FoldBinary() 2248 ASSERT(rightType.getBasicType() == EbtFloat); in FoldBinary() [all …]
|
D | IntermNode.h | 356 const TType &rightType,
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | IntermNode.cpp | 2377 const TType &rightType, in FoldBinary() argument 2386 if (rightType.getObjectSize() == 1 && objectSize > 1) in FoldBinary() 2390 else if (rightType.getObjectSize() > 1 && objectSize == 1) in FoldBinary() 2393 leftArray = Vectorize(*leftArray, rightType.getObjectSize()); in FoldBinary() 2394 objectSize = rightType.getObjectSize(); in FoldBinary() 2426 ASSERT(leftType.getBasicType() == EbtFloat && rightType.getBasicType() == EbtFloat); in FoldBinary() 2430 const int rightCols = rightType.getCols(); in FoldBinary() 2431 const int rightRows = rightType.getRows(); in FoldBinary() 2459 if (IsFloatDivision(leftType.getBasicType(), rightType.getBasicType())) in FoldBinary() 2599 ASSERT(rightType.getBasicType() == EbtFloat); in FoldBinary() [all …]
|
D | IntermNode.h | 393 const TType &rightType,
|
/third_party/typescript/src/compiler/ |
D | checker.ts | 15087 const rightType = getTypeOfSymbol(rightProp); 15092 …result.type = getUnionType([getTypeOfSymbol(leftProp), getTypeWithFacts(rightType, TypeFacts.NEUnd… 23113 const rightType = getTypeOfExpression(expr.right); 23114 if (!isTypeDerivedFrom(rightType, globalFunctionType)) { 23119 const prototypeProperty = getPropertyOfType(rightType, "prototype" as __String); 23134 … const constructSignatures = getSignaturesOfType(rightType, SignatureKind.Construct); 23141 if (!assumeTrue && rightType.flags & TypeFlags.Union) { 23142 …const nonConstructorTypeInUnion = find((<UnionType>rightType).types, (t) => !isConstructorType(t)); 25683 const rightType = getTypeOfSymbol(right); 25684 …if (left && !maybeTypeOfKind(rightType, TypeFlags.Nullable) && !(maybeTypeOfKind(rightType, TypeFl… [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
D | OutputASM.cpp | 707 const TType &rightType = right->getType(); in visitBinary() local 890 for(int i = 0; i < rightType.getNominalSize(); i++) in visitBinary() 903 int size = rightType.getNominalSize(); in visitBinary() 917 int size = rightType.getNominalSize(); in visitBinary() 930 int size = rightType.getNominalSize(); in visitBinary()
|
/third_party/typescript/lib/ |
D | tsc.js | 47768 var rightType = getTypeOfSymbol(rightProp); 47773 … result.type = getUnionType([getTypeOfSymbol(leftProp), getTypeWithFacts(rightType, 524288)]); 54355 var rightType = getTypeOfExpression(expr.right); 54356 if (!isTypeDerivedFrom(rightType, globalFunctionType)) { 54360 var prototypeProperty = getPropertyOfType(rightType, "prototype"); 54371 var constructSignatures = getSignaturesOfType(rightType, 1); 54376 if (!assumeTrue && rightType.flags & 1048576) { 54377 …var nonConstructorTypeInUnion = ts.find(rightType.types, function (t) { return !isConstructorType(… 56312 var rightType = getTypeOfSymbol(right); 56313 …if (left && !maybeTypeOfKind(rightType, 98304) && !(maybeTypeOfKind(rightType, 3) && right.flags &… [all …]
|