#include <parsing_context.hpp>
|
| ParsingContext () |
|
| ParsingContext (std::string key_) |
|
| ParsingContext (type::Type expected_) |
|
| ParsingContext (ParsingContext &&)=default |
|
| ParsingContext (const ParsingContext &)=delete |
|
ParsingContext & | operator= (const ParsingContext &)=delete |
|
std::string | getKey () const |
|
std::optional< type::Type > | getExpected () const |
|
const std::vector< ParsingError > & | getErrors () const |
|
std::string | getCombinedErrors () const |
|
ParseResult | parseExpression (const mbgl::style::conversion::Convertible &value, const std::optional< TypeAnnotationOption > &=std::nullopt) |
|
ParseResult | parseLayerPropertyExpression (const mbgl::style::conversion::Convertible &value) |
|
ParseResult | parse (const mbgl::style::conversion::Convertible &, std::size_t, std::optional< type::Type >=std::nullopt, const std::optional< TypeAnnotationOption > &=std::nullopt) |
|
ParseResult | parse (const mbgl::style::conversion::Convertible &, std::size_t index, std::optional< type::Type >, const std::map< std::string, std::shared_ptr< Expression >> &) |
|
std::optional< std::string > | checkType (const type::Type &t) |
|
std::optional< std::shared_ptr< Expression > > | getBinding (const std::string &name) |
|
void | error (std::string message) |
|
void | error (std::string message, std::size_t child) |
|
void | error (std::string message, std::size_t child, std::size_t grandchild) |
|
void | appendErrors (ParsingContext &&ctx) |
|
void | clearErrors () |
|
Definition at line 75 of file parsing_context.hpp.
◆ ParsingContext() [1/5]
mbgl::style::expression::ParsingContext::ParsingContext |
( |
| ) |
|
|
inline |
◆ ParsingContext() [2/5]
mbgl::style::expression::ParsingContext::ParsingContext |
( |
std::string |
key_ | ) |
|
|
inline |
◆ ParsingContext() [3/5]
mbgl::style::expression::ParsingContext::ParsingContext |
( |
type::Type |
expected_ | ) |
|
|
inlineexplicit |
◆ ParsingContext() [4/5]
mbgl::style::expression::ParsingContext::ParsingContext |
( |
ParsingContext && |
| ) |
|
|
default |
◆ ParsingContext() [5/5]
mbgl::style::expression::ParsingContext::ParsingContext |
( |
const ParsingContext & |
| ) |
|
|
delete |
◆ appendErrors()
void mbgl::style::expression::ParsingContext::appendErrors |
( |
ParsingContext && |
ctx | ) |
|
|
inline |
◆ checkType()
std::optional<std::string> mbgl::style::expression::ParsingContext::checkType |
( |
const type::Type & |
t | ) |
|
Check whether t
is a subtype of expected
, collecting an error if not.
◆ clearErrors()
void mbgl::style::expression::ParsingContext::clearErrors |
( |
| ) |
|
|
inline |
◆ error() [1/3]
void mbgl::style::expression::ParsingContext::error |
( |
std::string |
message | ) |
|
|
inline |
◆ error() [2/3]
void mbgl::style::expression::ParsingContext::error |
( |
std::string |
message, |
|
|
std::size_t |
child |
|
) |
| |
|
inline |
◆ error() [3/3]
void mbgl::style::expression::ParsingContext::error |
( |
std::string |
message, |
|
|
std::size_t |
child, |
|
|
std::size_t |
grandchild |
|
) |
| |
|
inline |
◆ getBinding()
std::optional<std::shared_ptr<Expression> > mbgl::style::expression::ParsingContext::getBinding |
( |
const std::string & |
name | ) |
|
|
inline |
◆ getCombinedErrors()
std::string mbgl::style::expression::ParsingContext::getCombinedErrors |
( |
| ) |
const |
◆ getErrors()
const std::vector<ParsingError>& mbgl::style::expression::ParsingContext::getErrors |
( |
| ) |
const |
|
inline |
◆ getExpected()
std::optional<type::Type> mbgl::style::expression::ParsingContext::getExpected |
( |
| ) |
const |
|
inline |
◆ getKey()
std::string mbgl::style::expression::ParsingContext::getKey |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ parse() [1/2]
Parse a child expression. For use by individual Expression::parse() methods.
◆ parse() [2/2]
Parse a child expression. For use by individual Expression::parse() methods.
◆ parseExpression()
Parse the given style-spec JSON value as an expression.
◆ parseLayerPropertyExpression()
Parse the given style-spec JSON value as an expression intended to be used in a layout or paint property. This entails checking additional constraints that exist in that context but not, e.g., for filters.
The documentation for this class was generated from the following file:
- /home/runner/work/maplibre-native/maplibre-native/include/mbgl/style/expression/parsing_context.hpp