Home
last modified time | relevance | path

Searched refs:SourceCode (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/c/experimental/ops/gen/common/
Dsource_code.cc24 string SourceCode::Render() const { in Render()
33 void SourceCode::AddLineWithIndent(const string& line) { in AddLineWithIndent()
37 void SourceCode::AddLineWithoutIndent(const string& line) { in AddLineWithoutIndent()
41 void SourceCode::AddBlankLine() { ValidateAndAddLine(0, ""); } in AddBlankLine()
43 void SourceCode::IncreaseIndent() { current_indent_++; } in IncreaseIndent()
45 void SourceCode::DecreaseIndent() { current_indent_--; } in DecreaseIndent()
47 void SourceCode::ValidateAndAddLine(int indent, const string& raw_line) { in ValidateAndAddLine()
Dsource_code.h23 class SourceCode {
Dcontroller.h33 const void WriteFile(const string& file_path, const SourceCode& code) const;
Dcontroller.cc38 const SourceCode& code) const { in WriteFile()
/external/rust/android-crates-io/crates/miette/src/
Dsource_impls.rs11 use crate::{MietteError, MietteSpanContents, SourceCode, SourceSpan, SpanContents};
100 impl SourceCode for [u8] { impl
112 impl<'src> SourceCode for &'src [u8] { impl
119 <[u8] as SourceCode>::read_span(self, span, context_lines_before, context_lines_after) in read_span()
123 impl SourceCode for Vec<u8> {
130 <[u8] as SourceCode>::read_span(self, span, context_lines_before, context_lines_after) in read_span()
134 impl SourceCode for str {
141 <[u8] as SourceCode>::read_span( in read_span()
151 impl<'s> SourceCode for &'s str { impl
158 <str as SourceCode>::read_span(self, span, context_lines_before, context_lines_after) in read_span()
[all …]
Dnamed_source.rs1 use crate::{MietteError, MietteSpanContents, SourceCode, SpanContents};
6 pub struct NamedSource<S: SourceCode + 'static> {
12 impl<S: SourceCode> std::fmt::Debug for NamedSource<S> {
22 impl<S: SourceCode + 'static> NamedSource<S> {
54 impl<S: SourceCode + 'static> SourceCode for NamedSource<S> {
Dprotocol.rs52 fn source_code(&self) -> Option<&dyn SourceCode> { in source_code() argument
230 pub trait SourceCode: Send + Sync { interface
/external/tensorflow/tensorflow/c/experimental/ops/gen/cpp/
Dcpp_generator.cc28 SourceCode CppGenerator::GenerateOneFile( in GenerateOneFile()
30 SourceCode generated_code; in GenerateOneFile()
38 SourceCode CppGenerator::HeaderFileContents() const { in HeaderFileContents()
42 SourceCode CppGenerator::SourceFileContents() const { in SourceFileContents()
Dcpp_generator.h28 SourceCode HeaderFileContents() const;
29 SourceCode SourceFileContents() const;
36 SourceCode GenerateOneFile(cpp::RendererContext::Mode mode) const;
/external/rust/android-crates-io/crates/miette-derive/src/
Dsource_code.rs11 pub struct SourceCode { struct
16 impl SourceCode { argument
52 return Ok(Some(SourceCode { in from_fields_vec()
77 fn source_code(&self) -> std::option::Option<&dyn miette::SourceCode> { in gen_struct()
87 WhichFn::SourceCode, in gen_enum()
Dforward.rs39 SourceCode, enumerator
52 Self::SourceCode => quote! { source_code() }, in method_call()
78 Self::SourceCode => quote! { in signature()
79 fn source_code(&self) -> std::option::Option<&dyn miette::SourceCode> in signature()
Ddiagnostic.rs13 use crate::source_code::SourceCode;
66 pub source_code: Option<SourceCode>,
76 let source_code = SourceCode::from_fields(fields)?; in for_fields()
287 let source_code_method = forward.gen_struct_method(WhichFn::SourceCode); in gen()
347 .or_else(|| forward(WhichFn::SourceCode)); in gen()
378 let src_body = SourceCode::gen_enum(variants); in gen()
/external/swiftshader/third_party/llvm-16.0/llvm/lib/DebugInfo/Symbolize/
DDIPrinter.cpp31 class SourceCode { class
76 SourceCode(StringRef FileName, int64_t Line, int Lines, in SourceCode() function in llvm::symbolize::SourceCode
118 void PlainPrinterBase::printContext(SourceCode SourceCode) { in printContext() argument
119 SourceCode.format(OS); in printContext()
136 SourceCode(Filename, Info.Line, Config.SourceContextLines, Info.Source)); in printSimpleLocation()
146 SourceCode(Filename, Info.Line, Config.SourceContextLines, Info.Source)); in printSimpleLocation()
316 SourceCode SourceCode(LineInfo.FileName, LineInfo.Line, in print() local
320 SourceCode.format(Stream); in print()
/external/rust/android-crates-io/crates/miette/src/eyreish/
Dwrapper.rs5 use crate::{Diagnostic, LabeledSpan, Report, SourceCode};
98 fn source_code(&self) -> Option<&dyn miette::SourceCode> { in source_code() argument
144 impl<E: Diagnostic, C: SourceCode> Diagnostic for WithSourceCode<E, C> {
165 fn source_code(&self) -> Option<&dyn miette::SourceCode> { in source_code() argument
178 impl<C: SourceCode> Diagnostic for WithSourceCode<Report, C> {
199 fn source_code(&self) -> Option<&dyn miette::SourceCode> { in source_code() argument
240 use crate::{Diagnostic, LabeledSpan, Report, SourceCode, SourceSpan};
254 fn source_code(&self) -> Option<&dyn SourceCode> { in source_code() argument
Dcontext.rs148 fn source_code(&self) -> Option<&dyn crate::SourceCode> { in source_code() argument
181 fn source_code(&self) -> Option<&dyn crate::SourceCode> { in source_code() argument
Derror.rs12 use crate::{Diagnostic, SourceCode};
413 pub fn with_source_code(self, source_code: impl SourceCode + Send + Sync + 'static) -> Report { in with_source_code()
/external/tensorflow/tensorflow/c/experimental/ops/gen/cpp/renderers/
Drenderer_test.cc28 explicit TestRenderer(SourceCode& code) in TEST()
53 SourceCode code; in TEST()
Drenderer_context.h30 SourceCode &code;
/external/rust/android-crates-io/crates/miette/src/handlers/
Djson.rs4 diagnostic_chain::DiagnosticChain, protocol::Diagnostic, ReportHandler, Severity, SourceCode,
72 parent_src: Option<&dyn SourceCode>, in _render_report() argument
158 source: &dyn SourceCode, in render_snippets() argument
Dnarratable.rs7 use crate::{LabeledSpan, MietteError, ReportHandler, SourceCode, SourceSpan, SpanContents};
130 parent_src: Option<&dyn SourceCode>, in render_related() argument
156 source_code: Option<&dyn SourceCode>, in render_snippets() argument
224 source: &dyn SourceCode, in render_context() argument
287 source: &'a dyn SourceCode, in get_lines() argument
Dgraphical.rs10 use crate::{LabeledSpan, ReportHandler, SourceCode, SourceSpan, SpanContents};
384 parent_src: Option<&dyn SourceCode>,
412 opt_source: Option<&dyn SourceCode>,
472 source: &dyn SourceCode,
1158 source: &'a dyn SourceCode,
/external/tensorflow/tensorflow/c/experimental/ops/gen/
DREADME.md40 (`OpSpec`, `ArgSpec`, `AttrSpec`, etc.) to language-specific `SourceCode`. The
66 "renderers" then use these views to build the *output* `SourceCode`; Renderers
72 * Renderers are stateful, modifying a referenced SourceCode. Views are
99 * Call this generator to create/write `SourceCode` to a file
106 * Create a blank `SourceCode` rendering target (for each output file)
109 * Call this renderer to generate the target `SourceCode`
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/DebugInfo/Symbolize/
DDIPrinter.h32 class SourceCode; variable
79 void printContext(SourceCode SourceCode);
/external/rust/android-crates-io/crates/miette/
DREADME.tpl17 [`SourceCode`]: https://docs.rs/miette/latest/miette/trait.SourceCode.html
/external/rust/android-crates-io/crates/pest/src/
Derror.rs746 use miette::{Diagnostic, LabeledSpan, SourceCode};
753 fn source_code(&self) -> Option<&dyn SourceCode> { in source_code() argument

12