PlaceholderPartResolutionContext constructor
PlaceholderPartResolutionContext(
- PlaceholderResolverFn resolver,
- String prefix,
- String suffix,
- bool ignoreUnresolvablePlaceholders,
- List<
PlaceholderPart> parser(), - Log logger,
A resolution context for placeholder expressions, providing configuration, resolution logic, and tracking for visited placeholders.
This context is passed to PlaceholderParts during resolution, giving them access to:
- the PlaceholderResolver to use
- the placeholder prefix and suffix
- whether to ignoreUnresolvablePlaceholders
- a parser to break down text into parts
- a logger for tracing
- a visitedPlaceholders set to detect circular references
It is a central piece of the placeholder resolution engine.
Implementation
PlaceholderPartResolutionContext(
this.resolver,
this.prefix,
this.suffix,
this.ignoreUnresolvablePlaceholders,
this.parser,
this.logger,
);