Files
sdk/pkg/_fe_analyzer_shared
Paul Berry 631fb95ef1 [messages] Use interpolate to generate all message text.
Changes `_TemplateCompiler.compile` so that it uses
`_TemplateCompiler.interpolate` to format all message templates,
whether they contain interpolations or not.

Previously, message templates that didn't contain interpolations were
pasted verbatim into the generated code, using raw strings
(`r"""..."""`) so that escaping was not necessary.

Switching to using `interpolate` everywhere makes the code more
uniform, and paves the way for a follow-up CL in which I will be using
a structured data format to represent message templates rather than
raw template strings.

Change-Id: I6a6a696446f24c409e7e0dde18599ba468f762ff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/454963
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2025-10-14 13:27:42 -07:00
..
2025-02-19 09:33:31 -08:00

FE/analyzer shared code

This package contains logic that is shared between the front_end and analyzer packages. It is intended solely to facilitate development of the Dart SDK, and is not intended for use by end users. In particular, this package has no public API, so no guarantee is made of compatibility between one version of the package and the next.

End users should consider using the analyzer package to analyze Dart source code.