Lines Matching defs:line
37 return Literal::MakeBool(context, /*line=*/-1, (context.fCaps.*fGetCap)());
54 return Literal::MakeInt(context, /*line=*/-1, (context.fCaps.*fGetCap)());
107 static const Type* get_type(const Context& context, int line, skstd::string_view name) {
112 context.fErrors->error(line, "unknown capability flag '" + name + "'");
116 static std::unique_ptr<Expression> get_value(const Context& context, int line,
122 context.fErrors->error(line, "unknown capability flag '" + name + "'");
126 std::unique_ptr<Expression> Setting::Convert(const Context& context, int line,
132 return get_value(context, line, name);
136 const Type* type = get_type(context, line, name);
137 return type ? std::make_unique<Setting>(line, name, type) : nullptr;