Lines Matching defs:text
84 #define TOKEN(name, text) (*layoutTokens)[text] = LayoutToken::name
100 String text)
104 , fText(std::make_unique<String>(std::move(text)))
135 this->error(token, "'" + this->text(token) + "' is a reserved word");
181 this->text(next) + "'");
191 if (IsBuiltinType(this->text(*result))) {
193 this->text(*result) + "'");
200 skstd::string_view DSLParser::text(Token token) {
281 skstd::string_view text = this->text(start);
282 if (text == "#extension") {
294 skstd::string_view behaviorText = this->text(behavior);
302 dsl::AddExtension(this->text(name));
304 this->error(start, "unsupported directive '" + this->text(start) + "'");
322 if (lookahead.fKind == Token::Kind::TK_IDENTIFIER && !IsType(this->text(lookahead))) {
346 this->globalVarDeclarationEnd(this->position(name), modifiers, *type, this->text(name));
359 } else if (lookahead.fKind == Token::Kind::TK_IDENTIFIER && this->text(lookahead) == "void") {
381 DSLFunction result(modifiers, type, this->text(name), parameterPointers, this->position(name));
474 DSLGlobalVar next(mods, type, this->text(identifierName), std::move(anotherInitializer),
513 DSLVar next(mods, type, this->text(identifierName), std::move(anotherInitializer),
534 IsType(this->text(nextToken))) {
543 this->text(prefix.fName));
573 this->text(prefix.fName));
613 fields.push_back(DSLField(modifiers, std::move(actualType), this->text(memberName),
621 this->error(name, "struct '" + this->text(name) + "' must contain at least one field");
623 return dsl::Struct(this->text(name), SkMakeSpan(fields), this->position(name));
635 this->text(name));
656 return {{DSLParameter(modifiers, *type, this->text(name), this->position(name))}};
668 skstd::string_view resultFrag = this->text(resultToken);
686 return this->text(resultToken);
698 String text(this->text(t));
699 auto found = layoutTokens->find(text);
736 this->error(t, "'" + text + "' is not a valid layout qualifier");
740 this->error(t, "'" + text + "' is not a valid layout qualifier");
823 if (!IsType(this->text(type))) {
824 this->error(type, ("no type named '" + this->text(type) + "'").c_str());
827 DSLType result(this->text(type), modifiers, this->position(type));
851 this->error(typeName, "no type named '" + this->text(typeName) + "'");
882 this->text(fieldName), this->position(fieldName)));
890 instanceName = this->text(instanceNameToken);
898 this->error(typeName, "interface block '" + this->text(typeName) +
901 dsl::InterfaceBlock(modifiers, this->text(typeName), std::move(fields), instanceName,
1541 if (this->text(t)[0] != '.') {
1645 skstd::string_view text;
1646 if (this->identifier(&text)) {
1647 return this->swizzle(line, std::move(base), text);
1654 skstd::string_view field = this->text(next);
1661 return this->swizzle(next.fLine, std::move(base), field + this->text(id));
1691 this->error(next, "expected expression suffix, but found '" + this->text(next) + "'");
1702 skstd::string_view text;
1703 if (this->identifier(&text)) {
1704 return dsl::Symbol(text, this->position(t));
1743 this->error(t, "expected expression, but found '" + this->text(t) + "'");
1756 skstd::string_view s = this->text(t);
1770 skstd::string_view s = this->text(t);
1789 this->error(t, "expected 'true' or 'false', but found '" + this->text(t) + "'");
1798 *dest = this->text(t);