MCPcopy Create free account
hub / github.com/astral-sh/ruff / as_any_string_flags

Method as_any_string_flags

crates/ruff_python_ast/src/nodes.rs:855–858  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

853 }
854
855 fn as_any_string_flags(self) -> AnyStringFlags {
856 AnyStringFlags::new(self.prefix(), self.quote_style(), self.triple_quotes())
857 .with_unclosed(self.is_unclosed())
858 }
859
860 fn display_contents(self, contents: &str) -> DisplayFlags<'_> {
861 DisplayFlags {

Callers 7

display_contentsMethod · 0.80
fromMethod · 0.80
string_flagsMethod · 0.80
bump_string_valueMethod · 0.80

Implementers 2

nodes.rscrates/ruff_python_ast/src/nodes.rs
token.rscrates/ruff_python_ast/src/token.rs

Calls 5

with_unclosedMethod · 0.80
prefixMethod · 0.45
quote_styleMethod · 0.45
triple_quotesMethod · 0.45
is_unclosedMethod · 0.45

Tested by

no test coverage detected