Lines Matching refs:src
49 std::stringstream src;
53 src.clear();
55 src << lengthString << std::endl;
56 src << "type typeOfTempArray = " << arrayType << std::endl;
57 src << "let " << newArrayName << ": typeOfTempArray[] = new typeOfTempArray[length]" << std::endl;
58 src << "let newArrayIndex = 0" << std::endl;
65 src << "let elementOfSpread" << i << ": " << array->Elements()[i]->TsType()->ToString() << std::endl;
66 src << "for (elementOfSpread" << i << " of " << spreadArrayName << ") {" << std::endl;
67 src << newArrayName << "[newArrayIndex] = "
69 src << "newArrayIndex++" << std::endl;
70 src << "}" << std::endl;
72 src << newArrayName << "[newArrayIndex] = "
74 src << "newArrayIndex++" << std::endl;
79 src << newArrayName << ";" << std::endl;
81 return src.str();
104 std::string src = CreateETSCode(node->AsArrayExpression(), normalElements, ctx);
107 parser->CreateFormattedExpression(src, normalElements)->AsBlockExpression();