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

Method add_error

crates/ruff_python_parser/src/semantic_errors.rs:51–61  ·  view source on GitHub ↗
(
        context: &Ctx,
        kind: SemanticSyntaxErrorKind,
        range: TextRange,
    )

Source from the content-addressed store, hash-verified

49
50impl SemanticSyntaxChecker {
51 fn add_error<Ctx: SemanticSyntaxContext>(
52 context: &Ctx,
53 kind: SemanticSyntaxErrorKind,
54 range: TextRange,
55 ) {
56 context.report_semantic_error(SemanticSyntaxError {
57 kind,
58 range,
59 python_version: context.python_version(),
60 });
61 }
62
63 fn check_lazy_import_context<Ctx: SemanticSyntaxContext>(
64 ctx: &Ctx,

Callers

nothing calls this directly

Calls 2

report_semantic_errorMethod · 0.45
python_versionMethod · 0.45

Tested by

no test coverage detected