Lines Matching refs:location

218   AidlLocation location = specifier.GetLocation();  in Default()  local
227 return Boolean(location, false); in Default()
230 return Integral(location, "0"); in Default()
233 return Floating(location, "0.0f"); in Default()
236 return Floating(location, "0.0"); in Default()
241 AidlConstantValue* AidlConstantValue::Boolean(const AidlLocation& location, bool value) { in Boolean() argument
242 return new AidlConstantValue(location, Type::BOOLEAN, value ? "true" : "false"); in Boolean()
245 AidlConstantValue* AidlConstantValue::Character(const AidlLocation& location, char value) { in Character() argument
248 AIDL_ERROR(location) << "Invalid character literal " << value; in Character()
249 return new AidlConstantValue(location, Type::ERROR, explicit_value); in Character()
251 return new AidlConstantValue(location, Type::CHARACTER, explicit_value); in Character()
254 AidlConstantValue* AidlConstantValue::Floating(const AidlLocation& location, in Floating() argument
256 return new AidlConstantValue(location, Type::FLOATING, value); in Floating()
320 AidlConstantValue* AidlConstantValue::Integral(const AidlLocation& location, const string& value) { in Integral() argument
330 return new AidlConstantValue(location, parsed_type, parsed_value, value); in Integral()
334 const AidlLocation& location, std::unique_ptr<vector<unique_ptr<AidlConstantValue>>> values) { in Array() argument
335 CHECK(values != nullptr) << location; in Array()
336 return new AidlConstantValue(location, Type::ARRAY, std::move(values)); in Array()
339 AidlConstantValue* AidlConstantValue::String(const AidlLocation& location, const string& value) { in String() argument
342 AIDL_ERROR(location) << "Found invalid character at index " << i << " in string constant '" in String()
344 return new AidlConstantValue(location, Type::ERROR, value); in String()
348 return new AidlConstantValue(location, Type::STRING, value); in String()
828 AidlConstantValue::AidlConstantValue(const AidlLocation& location, Type parsed_type, in AidlConstantValue() argument
830 : AidlNode(location), in AidlConstantValue()
835 CHECK(!value_.empty() || type_ == Type::ERROR) << location; in AidlConstantValue()
836 CHECK(type_ == Type::INT8 || type_ == Type::INT32 || type_ == Type::INT64) << location; in AidlConstantValue()
839 AidlConstantValue::AidlConstantValue(const AidlLocation& location, Type type, in AidlConstantValue() argument
841 : AidlNode(location), in AidlConstantValue()
845 CHECK(!value_.empty() || type_ == Type::ERROR) << location; in AidlConstantValue()
858 AidlConstantValue::AidlConstantValue(const AidlLocation& location, Type type, in AidlConstantValue() argument
860 : AidlNode(location), in AidlConstantValue()
869 AidlUnaryConstExpression::AidlUnaryConstExpression(const AidlLocation& location, const string& op, in AidlUnaryConstExpression() argument
871 : AidlConstantValue(location, Type::UNARY, op + rval->value_), in AidlUnaryConstExpression()
877 AidlBinaryConstExpression::AidlBinaryConstExpression(const AidlLocation& location, in AidlBinaryConstExpression() argument
881 : AidlConstantValue(location, Type::BINARY, lval->value_ + op + rval->value_), in AidlBinaryConstExpression()