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

Method add_error

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

report_semantic_errorMethod · 0.45
python_versionMethod · 0.45

Tested by

no test coverage detected