Lines Matching full:original
79 void checkTypeEqualWithQualifiers(const TType &original, const TType ©) in checkTypeEqualWithQualifiers() argument
81 ASSERT_EQ(original, copy); in checkTypeEqualWithQualifiers()
82 ASSERT_EQ(original.getPrecision(), copy.getPrecision()); in checkTypeEqualWithQualifiers()
83 ASSERT_EQ(original.getQualifier(), copy.getQualifier()); in checkTypeEqualWithQualifiers()
90 TIntermSymbol *original = aOriginal->getAsSymbolNode(); in checkSymbolCopy() local
92 ASSERT_NE(nullptr, original); in checkSymbolCopy()
93 ASSERT_NE(original, copy); in checkSymbolCopy()
94 ASSERT_EQ(&original->variable(), ©->variable()); in checkSymbolCopy()
95 ASSERT_EQ(original->uniqueId(), copy->uniqueId()); in checkSymbolCopy()
96 ASSERT_EQ(original->getName(), copy->getName()); in checkSymbolCopy()
97 checkTypeEqualWithQualifiers(original->getType(), copy->getType()); in checkSymbolCopy()
98 ASSERT_EQ(original->getLine().first_file, copy->getLine().first_file); in checkSymbolCopy()
99 ASSERT_EQ(original->getLine().first_line, copy->getLine().first_line); in checkSymbolCopy()
100 ASSERT_EQ(original->getLine().last_file, copy->getLine().last_file); in checkSymbolCopy()
101 ASSERT_EQ(original->getLine().last_line, copy->getLine().last_line); in checkSymbolCopy()
139 // original.
149 TIntermSymbol *original = new TIntermSymbol(variable); in TEST_F() local
150 original->setLine(getTestSourceLoc()); in TEST_F()
151 TIntermTyped *copy = original->deepCopy(); in TEST_F()
152 checkSymbolCopy(original, copy); in TEST_F()
157 // the original.
163 TIntermConstantUnion *original = new TIntermConstantUnion(constValue, type); in TEST_F() local
164 original->setLine(getTestSourceLoc()); in TEST_F()
165 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
168 ASSERT_NE(original, copy); in TEST_F()
170 checkTypeEqualWithQualifiers(original->getType(), copy->getType()); in TEST_F()
175 // original. Child nodes also need to be copies with the same attributes as the original children.
180 TIntermBinary *original = new TIntermBinary(EOpAdd, createTestSymbol(), createTestSymbol()); in TEST_F() local
181 original->setLine(getTestSourceLoc()); in TEST_F()
182 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
185 ASSERT_NE(original, copy); in TEST_F()
187 checkTypeEqualWithQualifiers(original->getType(), copy->getType()); in TEST_F()
189 checkSymbolCopy(original->getLeft(), copy->getLeft()); in TEST_F()
190 checkSymbolCopy(original->getRight(), copy->getRight()); in TEST_F()
194 // original. The child node also needs to be a copy with the same attributes as the original child.
199 TIntermUnary *original = new TIntermUnary(EOpPreIncrement, createTestSymbol(), nullptr); in TEST_F() local
200 original->setLine(getTestSourceLoc()); in TEST_F()
201 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
204 ASSERT_NE(original, copy); in TEST_F()
206 checkTypeEqualWithQualifiers(original->getType(), copy->getType()); in TEST_F()
208 checkSymbolCopy(original->getOperand(), copy->getOperand()); in TEST_F()
212 // original. Child nodes also need to be copies with the same attributes as the original children.
223 TIntermAggregate *original = TIntermAggregate::CreateFunctionCall(*testFunc, originalSeq); in TEST_F() local
224 original->setLine(getTestSourceLoc()); in TEST_F()
226 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
229 ASSERT_NE(original, copy); in TEST_F()
231 checkTypeEqualWithQualifiers(original->getType(), copy->getType()); in TEST_F()
233 ASSERT_EQ(original->getSequence()->size(), copy->getSequence()->size()); in TEST_F()
237 TIntermNode *originalChild = original->getSequence()->at(i); in TEST_F()
244 // original. Child nodes also need to be copies with the same attributes as the original children.
249 TIntermTernary *original = new TIntermTernary(createTestSymbol(TType(EbtBool, EbpUndefined)), in TEST_F() local
251 original->setLine(getTestSourceLoc()); in TEST_F()
252 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
255 ASSERT_NE(original, copy); in TEST_F()
257 checkTypeEqualWithQualifiers(original->getType(), copy->getType()); in TEST_F()
259 checkSymbolCopy(original->getCondition(), copy->getCondition()); in TEST_F()
260 checkSymbolCopy(original->getTrueExpression(), copy->getTrueExpression()); in TEST_F()
261 checkSymbolCopy(original->getFalseExpression(), copy->getFalseExpression()); in TEST_F()