Skip to main content

Module scrape_examples

Module scrape_examples 

Source
Expand description

This module analyzes crates to find call sites that can serve as examples in the documentation.

Re-exportsยง

use std::fs; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use rustc_data_structures::fx::FxHashSet; ๐Ÿ”’
use rustc_data_structures::fx::FxIndexMap; ๐Ÿ”’
use rustc_errors::DiagCtxtHandle; ๐Ÿ”’
use rustc_hir as hir; ๐Ÿ”’
use rustc_hir::intravisit; ๐Ÿ”’
use rustc_hir::intravisit::Visitor; ๐Ÿ”’
use rustc_macros::Decodable; ๐Ÿ”’
use rustc_macros::Encodable; ๐Ÿ”’
use rustc_middle::hir::nested_filter; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use rustc_serialize::opaque::FileEncoder; ๐Ÿ”’
use rustc_serialize::opaque::MemDecoder; ๐Ÿ”’
use rustc_serialize::Decodable; ๐Ÿ”’
use rustc_serialize::Encodable; ๐Ÿ”’
use rustc_session::getopts; ๐Ÿ”’
use rustc_span::def_id::CrateNum; ๐Ÿ”’
use rustc_span::def_id::DefPathHash; ๐Ÿ”’
use rustc_span::def_id::LOCAL_CRATE; ๐Ÿ”’
use rustc_span::edition::Edition; ๐Ÿ”’
use rustc_span::BytePos; ๐Ÿ”’
use rustc_span::FileName; ๐Ÿ”’
use rustc_span::SourceFile; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use tracing::trace; ๐Ÿ”’
use tracing::warn; ๐Ÿ”’
use crate::html::render::Context; ๐Ÿ”’
use crate::clean; ๐Ÿ”’
use crate::config; ๐Ÿ”’
use crate::formats; ๐Ÿ”’

Structsยง

CallData ๐Ÿ”’
CallLocation ๐Ÿ”’
FindCalls ๐Ÿ”’
Visitor for traversing a crate and finding instances of function calls.
ScrapeExamplesOptions ๐Ÿ”’
SyntaxRange ๐Ÿ”’

Functionsยง

load_call_locations ๐Ÿ”’
run ๐Ÿ”’

Type Aliasesยง

AllCallLocations ๐Ÿ”’
FnCallLocations ๐Ÿ”’