Home
last modified time | relevance | path

Searched refs:span (Results 1 - 25 of 548) sorted by relevance

12345678910>>...22

/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/
H A Dspan_test.go26 l.Add(span(3, 1, 3, 5))
27 checkSpanList(t, l, span(3, 1, 3, 5))
29 l.Add(span(4, 1, 4, 5))
30 checkSpanList(t, l, span(3, 1, 3, 5), span(4, 1, 4, 5))
32 l.Add(span(2, 1, 2, 5))
33 checkSpanList(t, l, span(2, 1, 2, 5), span(3, 1, 3, 5), span(4, 1, 4, 5))
37 l := cov.SpanList{span(
[all...]
/third_party/rust/crates/regex/regex-syntax/src/ast/
H A Dparse.rs33 /// Return the span of this primitive.
34 fn span(&self) -> &Span { in span() functions
36 Primitive::Literal(ref x) => &x.span, in span()
37 Primitive::Assertion(ref x) => &x.span, in span()
38 Primitive::Dot(ref span) => span, in span()
39 Primitive::Perl(ref x) => &x.span, in span()
40 Primitive::Unicode(ref x) => &x.span, in span()
49 Primitive::Dot(span) => Ast::Dot(span), in into_ast()
612 fn span(&self) -> Span { span() functions
2383 fn span(range: Range<usize>) -> Span { span() functions
[all...]
H A Dmod.rs27 /// span in an error is a valid range into this string.
29 /// The span of this error.
30 span: Span,
41 /// Every span reported by this error is reported in terms of this string.
46 /// Return the span at which this error occurred.
47 pub fn span(&self) -> &Span { in span() functions
48 &self.span in span()
51 /// Return an auxiliary span. This span exists only for some errors that
55 /// auxiliary span wil
495 pub fn span(&self) -> &Span { span() functions
719 pub fn span(&self) -> &Span { span() functions
937 pub fn span(&self) -> &Span { span() functions
982 pub fn span(&self) -> &Span { span() functions
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf/
H A DCodedOutputStream.cs173 var span = new Span<byte>(buffer); in WriteDouble()
174 WritingPrimitives.WriteDouble(ref span, ref state, value); in WriteDouble()
183 var span = new Span<byte>(buffer); in WriteFloat()
184 WritingPrimitives.WriteFloat(ref span, ref state, value); in WriteFloat()
193 var span = new Span<byte>(buffer); in WriteUInt64()
194 WritingPrimitives.WriteUInt64(ref span, ref state, value); in WriteUInt64()
203 var span = new Span<byte>(buffer); in WriteInt64()
204 WritingPrimitives.WriteInt64(ref span, ref state, value); in WriteInt64()
213 var span = new Span<byte>(buffer); in WriteInt32()
214 WritingPrimitives.WriteInt32(ref span, re in WriteInt32()
[all...]
H A DCodedInputStream.cs305 var span = new ReadOnlySpan<byte>(buffer); in PeekTag()
306 return ParsingPrimitives.PeekTag(ref span, ref state); in PeekTag()
320 var span = new ReadOnlySpan<byte>(buffer); in ReadTag()
321 return ParsingPrimitives.ParseTag(ref span, ref state); in ReadTag()
339 var span = new ReadOnlySpan<byte>(buffer); in SkipLastField()
340 ParsingPrimitivesMessages.SkipLastField(ref span, ref state); in SkipLastField()
348 var span = new ReadOnlySpan<byte>(buffer); in SkipGroup()
349 ParsingPrimitivesMessages.SkipGroup(ref span, ref state, startGroupTag); in SkipGroup()
357 var span = new ReadOnlySpan<byte>(buffer); in ReadDouble()
358 return ParsingPrimitives.ParseDouble(ref span, re in ReadDouble()
[all...]
/third_party/rust/crates/quote/src/
H A Dlib.rs173 /// A different span can be provided through the [`quote_spanned!`] macro.
322 /// let varname = syn::Ident::new(&concatenated, ident.span());
524 /// Same as `quote!`, but applies a given span to all tokens originating within
531 /// A span expression of type [`Span`], followed by `=>`, followed by the tokens
532 /// to quote. The span expression should be brief &mdash; use a variable for
543 /// let span = /* ... */;
545 /// # let span = Span::call_site();
549 /// let tokens = quote_spanned!(span=> Box::into_raw(Box::new(#init)));
551 /// // On multiple lines, place the span at the top and use braces.
552 /// let tokens = quote_spanned! {span
[all...]
H A Dformat.rs39 /// The [`Span`] of the first `Ident` argument is used as the span of the final
46 /// // If `ident` is an Ident, the span of `my_ident` will be inherited from it.
51 /// Alternatively, the span can be overridden by passing the `span` named
60 /// format_ident!("MyIdent", span = my_span);
131 ([$span:expr, $($fmt:tt)*]) => {
134 $span,
139 ([$old:expr, $($fmt:tt)*] span = $span:expr) => {
140 $crate::format_ident_impl!([$old, $($fmt)*] span
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DITypSpanTests.cpp26 using Span = ityp::span<Key, Val>;
32 Span span(arr.data(), Key(arr.size())); in TEST_F()
34 span[Key(2)] = Val(5); in TEST_F()
35 span[Key(1)] = Val(9); in TEST_F()
36 span[Key(9)] = Val(2); in TEST_F()
38 ASSERT_EQ(span[Key(2)], Val(5)); in TEST_F()
39 ASSERT_EQ(span[Key(1)], Val(9)); in TEST_F()
40 ASSERT_EQ(span[Key(9)], Val(2)); in TEST_F()
44 // Test that the span can be is iterated in order with a range-based for loop
47 Span span(ar in TEST_F()
[all...]
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/
H A Dspan.h16 // span - sequence of bytes
19 // This template is similar to std::span, which will be included in C++20.
21 class span { class
25 constexpr span() : data_(nullptr), size_(0) {} in span() function in v8_crdtp::span
26 constexpr span(const T* data, index_type size) : data_(data), size_(size) {} in span() function in v8_crdtp::span
35 constexpr span<T> subspan(index_type offset, index_type count) const { in subspan()
36 return span(data_ + offset, count); in subspan()
39 constexpr span<T> subspan(index_type offset) const { in subspan()
40 return span(data_ + offset, size_ - offset); in subspan()
54 constexpr span<cha
[all...]
H A Dcbor.h16 #include "span.h"
54 bool IsCBORMessage(span<uint8_t> msg);
63 Status CheckCBORMessage(span<uint8_t> msg);
84 void EncodeString16(span<uint16_t> in, std::vector<uint8_t>* out);
87 void EncodeString8(span<uint8_t> in, std::vector<uint8_t>* out);
92 void EncodeFromLatin1(span<uint8_t> latin1, std::vector<uint8_t>* out);
96 void EncodeFromUTF16(span<uint16_t> utf16, std::vector<uint8_t>* out);
101 void EncodeBinary(span<uint8_t> in, std::vector<uint8_t>* out);
205 explicit CBORTokenizer(span<uint8_t> bytes);
236 span<uint8_
[all...]
/third_party/rust/crates/cxx/macro/src/
H A Dderive.rs12 let span = derive.span; in expand_struct()
14 Trait::Copy => expanded.extend(struct_copy(strct, span)), in expand_struct()
15 Trait::Clone => expanded.extend(struct_clone(strct, span)), in expand_struct()
16 Trait::Debug => expanded.extend(struct_debug(strct, span)), in expand_struct()
17 Trait::Default => expanded.extend(struct_default(strct, span)), in expand_struct()
18 Trait::Eq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq)), in expand_struct()
20 Trait::Hash => traits.push(quote_spanned!(span=> ::cxx::core::hash::Hash)), in expand_struct()
21 Trait::Ord => expanded.extend(struct_ord(strct, span)), in expand_struct()
22 Trait::PartialEq => traits.push(quote_spanned!(span in expand_struct()
[all...]
H A Dexpand.rs134 let span = ffi.brace_token.span; in expand()
135 let expanded = quote_spanned!(span=> {#expanded}); in expand()
163 // This span on the pub makes "private type in public interface" errors in expand_struct()
171 let span = ident.span(); in expand_struct()
174 let struct_def = quote_spanned! {span=> in expand_struct()
204 let span = derive.span; in expand_struct_operators()
210 operators.extend(quote_spanned! {span in expand_struct_operators()
[all...]
/third_party/rust/crates/proc-macro-error/src/
H A Dmacros.rs15 // span, message, help
16 ($span:expr, $level:expr, $fmt:expr, $($args:expr),+ ; $($rest:tt)+) => {{
25 let span_range = (&$span).FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange();
36 ($span:expr, $level:expr, $msg:expr ; $($rest:tt)+) => {{
45 let span_range = (&$span).FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange();
52 // span, message, no help
53 ($span:expr, $level:expr, $fmt:expr, $($args:expr),+) => {{
62 let span_range = (&$span).FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange();
71 ($span:expr, $level:expr, $msg:expr) => {{
80 let span_range = (&$span)
[all...]
/third_party/node/tools/inspector_protocol/encoding/
H A Dencoding.h19 // span - sequence of bytes
22 // This template is similar to std::span, which will be included in C++20.
24 class span { class
28 span() : data_(nullptr), size_(0) {} in span() function in v8_inspector_protocol_encoding::span
29 span(const T* data, index_type size) : data_(data), size_(size) {} in span() function in v8_inspector_protocol_encoding::span
38 span<T> subspan(index_type offset, index_type count) const { in subspan()
39 return span(data_ + offset, count); in subspan()
42 span<T> subspan(index_type offset) const { in subspan()
43 return span(data_ + offset, size_ - offset); in subspan()
57 span<
[all...]
/third_party/skia/tests/
H A DPathOpsDebug.cpp299 const SkOpAngle* SegmentAngle(const SkOpSegment* span, int id) { in SegmentAngle() argument
300 return span->debugAngle(id); in SegmentAngle()
303 SkOpContour* SegmentContour(SkOpSegment* span, int id) { in SegmentContour() argument
304 return span->debugContour(id); in SegmentContour()
307 const SkOpPtT* SegmentPtT(const SkOpSegment* span, int id) { in SegmentPtT() argument
308 return span->debugPtT(id); in SegmentPtT()
311 const SkOpSegment* SegmentSegment(const SkOpSegment* span, int id) { in SegmentSegment() argument
312 return span->debugSegment(id); in SegmentSegment()
315 const SkOpSpanBase* SegmentSpan(const SkOpSegment* span, int id) { in SegmentSpan() argument
316 return span in SegmentSpan()
319 SpanAngle(const SkOpSpanBase* span, int id) SpanAngle() argument
323 SpanContour(SkOpSpanBase* span, int id) SpanContour() argument
327 SpanPtT(const SkOpSpanBase* span, int id) SpanPtT() argument
331 SpanSegment(const SkOpSpanBase* span, int id) SpanSegment() argument
335 SpanSpan(const SkOpSpanBase* span, int id) SpanSpan() argument
453 Dump(const SkTSpan* span) Dump() argument
457 DumpAll(const SkTSpan* span) DumpAll() argument
461 DumpBounded(const SkTSpan* span) DumpBounded() argument
465 DumpCoin(const SkTSpan* span) DumpCoin() argument
764 const SkOpSpan* span = this->upCastable(); dumpCoin() local
834 const SkOpSpanBase* span = &fHead; dump() local
848 const SkOpSpanBase* span = &fHead; dumpAll() local
858 const SkOpSpanBase* span = &fHead; dumpAngles() local
874 const SkOpSpan* span = &fHead; dumpCoin() local
931 SkCoincidentSpans* span = fHead; dump() local
1071 const SkOpSpan* span = segment->head(); debugAngle() local
1108 const SkOpSpan* span = segment->head(); debugPtT() local
1145 const SkOpSpan* span = segment->head(); debugSpan() local
1307 const SkTSpan* span = testBounded->fBounded; dumpAll() local
1324 const SkTSpan* span = testBounded->fBounded; dump() local
1431 DumpSpan(const SkOpContour& contour, int span) DumpSpan() argument
1479 DumpCoin(const SkOpSpan& span) DumpCoin() argument
1483 DumpSpan(const SkOpSpan& span) DumpSpan() argument
[all...]
/third_party/gn/src/base/containers/
H A Dspan.h27 class span;
35 struct IsSpanImpl<span<T, Extent>> : std::true_type {};
69 // SFINAE check if Array can be converted to a span<T>.
75 // SFINAE check if Container can be converted to a span<T>.
86 // A span is a value type that represents an array of elements of type T. Since
89 // users are encouraged to use it as a pass-by-value parameter. A span does not
90 // own the underlying memory, so care must be taken to ensure that a span does
93 // span is somewhat analogous to std::string_view, but with arbitrary element
96 // span is implicitly convertible from C++ arrays, as well as most [1]
98 // std::vector<T>). A mutable span<
172 class span { global() class
197 constexpr span(T* begin, T* end) noexcept : span(begin, end - begin) { span() function in base::span
246 span(const span<U, OtherExtent>& other) span() argument
[all...]
/third_party/skia/src/pathops/
H A DSkPathOpsWinding.cpp19 // given the top span, project the most perpendicular ray and look for intersections
87 SkOpRayDir makeTestBase(SkOpSpan* span, double t) { in makeTestBase()
89 fSpan = span; in makeTestBase()
90 fT = span->t() * (1 - t) + span->next()->t() * t; in makeTestBase()
91 SkOpSegment* segment = span->segment(); in makeTestBase()
174 SkOpSpan* span = this->windingSpanAtT(t); in rayCheck() local
175 if (!span) { in rayCheck()
177 } else if (!span->windValue() && !span in rayCheck()
192 SkOpSpan* span = &fHead; windingSpanAtT() local
278 SkOpSpan* span = hit->fSpan; sortableTop() local
301 SkOpSpan* span = hit->fSpan; sortableTop() local
374 SkOpSpan* span = &fHead; findSortableTop() local
[all...]
/third_party/rust/crates/proc-macro2/src/
H A Dfallback.rs40 pub(crate) span: Span,
44 pub(crate) fn span(&self) -> Span {
45 self.span
50 span: Span::call_site(),
91 punct.set_span(crate::Span::_new_fallback(literal.span)); in push_token_from_proc_macro()
156 let span = cm.add_file(src); in get_cursor()
159 off: span.lo, in get_cursor()
330 span: Span { lo: 0, hi: 0 },
340 span: Span,
352 let offset = offset - self.span in offset_line_column()
696 pub fn span(&self) -> Span { span() functions
786 pub fn span(&self) -> Span { span() functions
1046 pub fn span(&self) -> Span { span() functions
[all...]
/third_party/rust/crates/proc-macro-error/test-crate/
H A Dlib.rs18 let span = input.into_iter().next().unwrap().span(); in abort_from()
20 span, in abort_from()
21 syn::Error::new(Span::call_site(), "abort!(span, from) test") in abort_from()
28 let span = input.into_iter().next().unwrap().span(); in abort_to_string()
29 abort!(span, "abort!(span, single_expr) test") in abort_to_string()
35 let span = input.into_iter().next().unwrap().span(); in abort_format()
[all...]
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/lsp/protocol/
H A Dspan.go15 // this file contains protocol<->span converters
22 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/span"
28 URI span.URI
29 Converter *span.TokenConverter
33 func NewURI(uri span.URI) string {
37 func (m *ColumnMapper) Location(s span.Span) (Location, error) {
45 func (m *ColumnMapper) Range(s span.Span) (Range, error) {
46 if span.CompareURI(m.URI, s.URI()) != 0 {
64 func (m *ColumnMapper) Position(p span.Point) (Position, error) {
65 chr, err := span
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/protocol/
H A Dspan.go15 // this file contains protocol<->span converters
22 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/span"
28 URI span.URI
29 Converter *span.TokenConverter
33 func NewURI(uri span.URI) string {
37 func (m *ColumnMapper) Location(s span.Span) (Location, error) {
45 func (m *ColumnMapper) Range(s span.Span) (Range, error) {
46 if span.CompareURI(m.URI, s.URI()) != 0 {
64 func (m *ColumnMapper) Position(p span.Point) (Position, error) {
65 chr, err := span
[all...]
/third_party/spirv-tools/utils/vscode/src/lsp/protocol/
H A Dspan.go15 // this file contains protocol<->span converters
22 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/span"
28 URI span.URI
29 Converter *span.TokenConverter
33 func NewURI(uri span.URI) string {
37 func (m *ColumnMapper) Location(s span.Span) (Location, error) {
45 func (m *ColumnMapper) Range(s span.Span) (Range, error) {
46 if span.CompareURI(m.URI, s.URI()) != 0 {
64 func (m *ColumnMapper) Position(p span.Point) (Position, error) {
65 chr, err := span
[all...]
/third_party/node/deps/v8/third_party/zlib/google/
H A Dcompression_utils.h10 #include "base/containers/span.h"
21 bool GzipCompress(base::span<const char> input,
32 bool GzipCompress(base::span<const char> input, std::string* output);
35 bool GzipCompress(base::span<const uint8_t> input, std::string* output);
42 // Like the above method, but uses base::span to avoid allocations if
46 bool GzipUncompress(base::span<const char> input,
47 base::span<const char> output);
50 bool GzipUncompress(base::span<const uint8_t> input,
51 base::span<const uint8_t> output);
57 bool GzipUncompress(base::span<cons
[all...]
/third_party/node/deps/zlib/google/
H A Dcompression_utils.h10 #include "base/containers/span.h"
21 bool GzipCompress(base::span<const char> input,
32 bool GzipCompress(base::span<const char> input, std::string* output);
35 bool GzipCompress(base::span<const uint8_t> input, std::string* output);
42 // Like the above method, but uses base::span to avoid allocations if
46 bool GzipUncompress(base::span<const char> input,
47 base::span<const char> output);
50 bool GzipUncompress(base::span<const uint8_t> input,
51 base::span<const uint8_t> output);
57 bool GzipUncompress(base::span<cons
[all...]
/third_party/skia/third_party/externals/zlib/google/
H A Dcompression_utils.h10 #include "base/containers/span.h"
21 bool GzipCompress(base::span<const char> input,
32 bool GzipCompress(base::span<const char> input, std::string* output);
35 bool GzipCompress(base::span<const uint8_t> input, std::string* output);
42 // Like the above method, but uses base::span to avoid allocations if
46 bool GzipUncompress(base::span<const char> input,
47 base::span<const char> output);
50 bool GzipUncompress(base::span<const uint8_t> input,
51 base::span<const uint8_t> output);
57 bool GzipUncompress(base::span<cons
[all...]

Completed in 12 milliseconds

12345678910>>...22