MCPcopy Index your code
hub / github.com/crytic/slither / set_offset

Method set_offset

slither/core/source_mapping/source_mapping.py:213–221  ·  view source on GitHub ↗
(
        self, offset: Union["Source", str], compilation_unit: "SlitherCompilationUnit"
    )

Source from the content-addressed store, hash-verified

211 self._pattern: str | None = None
212
213 def set_offset(
214 self, offset: Union["Source", str], compilation_unit: "SlitherCompilationUnit"
215 ) -> None:
216 assert compilation_unit
217 if isinstance(offset, Source):
218 self.source_mapping = offset
219 else:
220 self.source_mapping = _convert_source_mapping(offset, compilation_unit)
221 self.source_mapping.compilation_unit = compilation_unit
222
223 def add_reference_from_raw_source(
224 self, offset: str, compilation_unit: "SlitherCompilationUnit"

Callers 15

add_otherMethod · 0.95
parse_moduleMethod · 0.80
parse_typeFunction · 0.80
_parse_contract_itemsMethod · 0.80
parse_enumsMethod · 0.80
parse_structsMethod · 0.80
parse_state_variablesMethod · 0.80
parse_eventsMethod · 0.80
parse_functionsMethod · 0.80
analyzeMethod · 0.80
_analyze_decoratorMethod · 0.80
parse_statementMethod · 0.80

Calls 1

_convert_source_mappingFunction · 0.85

Tested by

no test coverage detected