Lines Matching defs:line
105 , fPushback(Token::Kind::TK_NONE, /*offset=*/-1, /*length=*/-1, /*line=*/-1) {
208 PositionInfo DSLParser::position(int line) {
209 return PositionInfo("<unknown>", line);
216 void DSLParser::error(int line, String msg) {
217 GetErrorReporter().error(msg.c_str(), this->position(line));
418 bool DSLParser::parseArrayDimensions(int line, DSLType* type) {
421 this->error(line, "expected array dimension");
423 *type = Array(*type, this->arraySize(), this->position(line));
432 bool DSLParser::parseInitializer(int line, DSLExpression* initializer) {
448 int line = this->peek().fLine;
451 if (!this->parseArrayDimensions(line, &type)) {
454 if (!this->parseInitializer(line, &initializer)) {
467 if (!this->parseArrayDimensions(line, &type)) {
471 if (!this->parseInitializer(line, &anotherInitializer)) {
475 this->position(line));
487 int line = this->peek().fLine;
490 if (!this->parseArrayDimensions(line, &type)) {
493 if (!this->parseInitializer(line, &initializer)) {
506 if (!this->parseArrayDimensions(line, &type)) {
510 if (!this->parseInitializer(line, &anotherInitializer)) {
514 this->position(line));
1566 DSLExpression DSLParser::swizzle(int line, DSLExpression base,
1570 return base.field(swizzleMask, this->position(line));
1576 this->error(line, "too many components in swizzle mask");
1599 this->error(line,
1614 dsl::DSLExpression DSLParser::call(int line, dsl::DSLExpression base, ExpressionArray args) {
1615 return DSLExpression(base(std::move(args), this->position(line)), this->position(line));
1644 int line = this->peek().fLine;
1647 return this->swizzle(line, std::move(base), text);