Home
last modified time | relevance | path

Searched refs:Span (Results 1 – 25 of 229) sorted by relevance

12345678910

/third_party/skia/third_party/externals/abseil-cpp/absl/types/
Dspan.h152 class Span {
187 constexpr Span() noexcept : Span(nullptr, 0) {} in Span() function
188 constexpr Span(pointer array, size_type length) noexcept in Span() function
193 constexpr Span(T (&a)[N]) noexcept // NOLINT(runtime/explicit) in Span() function
194 : Span(a, N) {} in Span()
200 explicit Span(V& v) noexcept // NOLINT(runtime/references) in Span() function
201 : Span(span_internal::GetData(v), v.size()) {} in Span()
206 constexpr Span(const V& v) noexcept // NOLINT(runtime/explicit) in Span() function
207 : Span(span_internal::GetData(v), v.size()) {} in Span()
246 Span(std::initializer_list<value_type> v in Span() function
[all …]
Dspan_test.cc62 absl::Span<int> s; in TEST()
68 absl::Span<int> s(&a[0], 2); in TEST()
74 absl::Span<int> s(a); in TEST()
77 EXPECT_TRUE((std::is_constructible<absl::Span<const int>, int[3]>::value)); in TEST()
79 (std::is_constructible<absl::Span<const int>, const int[3]>::value)); in TEST()
80 EXPECT_FALSE((std::is_constructible<absl::Span<int>, const int[3]>::value)); in TEST()
81 EXPECT_TRUE((std::is_convertible<int[3], absl::Span<const int>>::value)); in TEST()
83 (std::is_convertible<const int[3], absl::Span<const int>>::value)); in TEST()
87 void TakesGenericSpan(absl::Span<T>) {} in TakesGenericSpan()
91 absl::Span<int> s_empty(empty); in TEST()
[all …]
/third_party/rust/crates/syn/src/
Dspan.rs1 use proc_macro2::Span;
7 impl IntoSpans<[Span; 1]> for Span { implementation
8 fn into_spans(self) -> [Span; 1] { in into_spans()
13 impl IntoSpans<[Span; 2]> for Span { implementation
14 fn into_spans(self) -> [Span; 2] { in into_spans()
19 impl IntoSpans<[Span; 3]> for Span { implementation
20 fn into_spans(self) -> [Span; 3] { in into_spans()
25 impl IntoSpans<[Span; 1]> for [Span; 1] { implementation
26 fn into_spans(self) -> [Span; 1] { in into_spans()
31 impl IntoSpans<[Span; 2]> for [Span; 2] { implementation
[all …]
Dgen_helper.rs5 use proc_macro2::Span;
45 impl Spans for Span { implementation
51 impl Spans for [Span; 1] { implementation
57 impl Spans for [Span; 2] { implementation
63 impl Spans for [Span; 3] { implementation
77 use proc_macro2::Span;
87 impl Spans for Span { implementation
93 impl Spans for [Span; 1] { implementation
99 impl Spans for [Span; 2] { implementation
106 impl Spans for [Span; 3] { implementation
[all …]
Derror.rs5 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree,
95 start_span: ThreadBound<Span>,
96 end_span: ThreadBound<Span>,
136 pub fn new<T: Display>(span: Span, message: T) -> Self { in new() argument
139 fn new(span: Span, message: String) -> Error { in new() argument
169 let start = iter.next().map_or_else(Span::call_site, |t| t.span()); in new_spanned()
186 pub fn span(&self) -> Span { in span() argument
189 None => return Span::call_site(), in span()
193 None => return Span::call_site(), in span()
261 .unwrap_or_else(Span::call_site); in to_compile_error()
[all …]
/third_party/rust/crates/codespan/codespan/src/
Dspan.rs10 pub struct Span { struct
15 impl Span { argument
17 pub fn new(start: impl Into<ByteIndex>, end: impl Into<ByteIndex>) -> Span { in new() argument
23 Span { start, end } in new()
27 pub const fn initial() -> Span { in initial()
28 Span { in initial()
43 pub fn from_str(s: &str) -> Span { in from_str() argument
44 Span::new(0, s.len() as u32) in from_str()
62 pub fn merge(self, other: Span) -> Span { in merge() argument
67 Span::new(start, end) in merge()
[all …]
/third_party/rust/crates/proc-macro2/src/
Dwrapper.rs37 span: fallback::Span::call_site(), in call_site()
257 pub(crate) fn span(&self) -> Span { in span() argument
259 LexError::Compiler(_) => Span::call_site(), in span()
260 LexError::Fallback(e) => Span::Fallback(e.span()), in span()
294 span: fallback::Span::call_site(), in fmt()
339 o.set_span(crate::Span::_new(Span::Compiler(tt.span()))); in next()
395 pub(crate) enum Span { enum
396 Compiler(proc_macro::Span),
397 Fallback(fallback::Span),
400 impl Span { impl
[all …]
Dextra.rs7 use crate::Span;
24 join: proc_macro::Span,
26 open: proc_macro::Span,
28 close: proc_macro::Span,
30 Fallback(fallback::Span),
57 pub fn join(&self) -> Span { in join() argument
60 DelimSpanEnum::Compiler { join, .. } => Span::_new(imp::Span::Compiler(*join)), in join()
61 DelimSpanEnum::Fallback(span) => Span::_new_fallback(*span), in join()
66 pub fn open(&self) -> Span { in open() argument
75 } => Span::_new(imp::Span::Compiler(*open)), in open()
[all …]
Dlib.rs299 pub fn span(&self) -> Span { in span() argument
300 Span::_new(self.inner.span()) in span()
371 pub struct Span { struct
372 inner: imp::Span, argument
376 impl Span { impl
377 fn _new(inner: imp::Span) -> Self { in _new()
378 Span { in _new()
384 fn _new_fallback(inner: fallback::Span) -> Self { in _new_fallback()
385 Span { in _new_fallback()
397 Span::_new(imp::Span::call_site()) in call_site()
[all …]
Dfallback.rs41 pub(crate) span: Span,
45 pub(crate) fn span(&self) -> Span { in span() argument
51 span: Span::call_site(), in call_site()
107 punct.set_span(crate::Span::_new_fallback(literal.span)); in push_token_from_proc_macro()
346 span: Span { lo: 0, hi: 0 },
357 span: Span,
364 assert!(self.span_within(Span { in offset_line_column()
381 fn span_within(&self, span: Span) -> bool { in span_within()
385 fn source_text(&self, span: Span) -> String { in source_text()
424 fn add_file(&mut self, name: &str, src: &str) -> Span { in add_file() argument
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
Dspan_unittest.cpp18 using Span = sh::TSpan<const unsigned int>; typedef
31 ASSERT_TRUE(Span() == Span(kSpanData, 0)); in TEST()
32 ASSERT_TRUE(Span(kSpanData + 3, 4) != Span(kSpanDataDup + 5, 4)); in TEST()
35 ASSERT_EQ(Span(kSpanData, kSpanDataSize), Span(kSpanDataDup, kSpanDataSize)); in TEST()
36 ASSERT_NE(Span(kSpanData, kSpanDataSize - 1), Span(kSpanDataDup + 1, kSpanDataSize - 1)); in TEST()
37 ASSERT_NE(Span(kSpanData, kSpanDataSize), Span(kSpanDataDup, kSpanDataSize - 1)); in TEST()
38 ASSERT_NE(Span(kSpanData, kSpanDataSize - 1), Span(kSpanDataDup, kSpanDataSize)); in TEST()
39 ASSERT_NE(Span(kSpanData, 0), Span(kSpanDataDup, 1)); in TEST()
40 ASSERT_NE(Span(kSpanData, 1), Span(kSpanDataDup, 0)); in TEST()
46 constexpr Span sp(kSpanData, kSpanDataSize); in TEST()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/
DCodedOutputStream.cs173 var span = new Span<byte>(buffer); in WriteDouble()
183 var span = new Span<byte>(buffer); in WriteFloat()
193 var span = new Span<byte>(buffer); in WriteUInt64()
203 var span = new Span<byte>(buffer); in WriteInt64()
213 var span = new Span<byte>(buffer); in WriteInt32()
223 var span = new Span<byte>(buffer); in WriteFixed64()
233 var span = new Span<byte>(buffer); in WriteFixed32()
243 var span = new Span<byte>(buffer); in WriteBool()
254 var span = new Span<byte>(buffer); in WriteString()
268 var span = new Span<byte>(buffer); in WriteMessage()
[all …]
DWritingPrimitives.cs56 … public static void WriteDouble(ref Span<byte> buffer, ref WriterInternalState state, double value) in WriteDouble()
64 …public static unsafe void WriteFloat(ref Span<byte> buffer, ref WriterInternalState state, float v… in WriteFloat()
86 …private static unsafe void WriteFloatSlowPath(ref Span<byte> buffer, ref WriterInternalState state… in WriteFloatSlowPath()
91 Span<byte> floatSpan = stackalloc byte[length]; in WriteFloatSlowPath()
107 … public static void WriteUInt64(ref Span<byte> buffer, ref WriterInternalState state, ulong value) in WriteUInt64()
115 … public static void WriteInt64(ref Span<byte> buffer, ref WriterInternalState state, long value) in WriteInt64()
123 … public static void WriteInt32(ref Span<byte> buffer, ref WriterInternalState state, int value) in WriteInt32()
139 … public static void WriteFixed64(ref Span<byte> buffer, ref WriterInternalState state, ulong value) in WriteFixed64()
147 … public static void WriteFixed32(ref Span<byte> buffer, ref WriterInternalState state, uint value) in WriteFixed32()
155 … public static void WriteBool(ref Span<byte> buffer, ref WriterInternalState state, bool value) in WriteBool()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dlayout_test.cc37 using ::absl::Span;
824 p, Type<Span<const int32_t>>(L::Partial(0).Slice<0>(p)).data())); in TEST()
827 p, Type<Span<const int32_t>>(L::Partial(3).Slice<0>(p)).data())); in TEST()
829 Distance(p, Type<Span<const int32_t>>(L(3).Slice<0>(p)).data())); in TEST()
835 p, Type<Span<const int32_t>>(L::Partial(3).Slice<0>(p)).data())); in TEST()
839 p, Type<Span<const int32_t>>(L::Partial(3, 5).Slice<0>(p)).data())); in TEST()
843 p, Type<Span<const int32_t>>(L::Partial(3, 5).Slice<1>(p)).data())); in TEST()
845 0, Distance(p, Type<Span<const int32_t>>(L(3, 5).Slice<0>(p)).data())); in TEST()
847 12, Distance(p, Type<Span<const int32_t>>(L(3, 5).Slice<1>(p)).data())); in TEST()
853 p, Type<Span<const int8_t>>(L::Partial(0).Slice<0>(p)).data())); in TEST()
[all …]
/third_party/rust/crates/regex/regex-syntax/src/ast/
Dmod.rs30 span: Span,
47 pub fn span(&self) -> &Span { in span() argument
56 pub fn auxiliary_span(&self) -> Option<&Span> { in auxiliary_span() argument
111 original: Span,
117 original: Span,
127 original: Span,
323 pub struct Span { struct
330 impl fmt::Debug for Span { implementation
336 impl Ord for Span { implementation
337 fn cmp(&self, other: &Span) -> Ordering { in cmp()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/span/
Dspan.go26 type Span struct { struct
50 var Invalid = Span{v: span{Start: invalidPoint.v, End: invalidPoint.v}}
63 func New(uri URI, start Point, end Point) Span {
64 s := Span{v: span{URI: uri, Start: start.v, End: end.v}}
75 func Compare(a, b Span) int { argument
114 func (s Span) HasPosition() bool { return s.v.Start.hasPosition() } argument
115 func (s Span) HasOffset() bool { return s.v.Start.hasOffset() } argument
116 func (s Span) IsValid() bool { return s.v.Start.isValid() } argument
117 func (s Span) IsPoint() bool { return s.v.Start == s.v.End } argument
118 func (s Span) URI() URI { return s.v.URI } argument
[all …]
/third_party/spirv-tools/utils/vscode/src/lsp/span/
Dspan.go26 type Span struct { struct
50 var Invalid = Span{v: span{Start: invalidPoint.v, End: invalidPoint.v}}
63 func New(uri URI, start Point, end Point) Span {
64 s := Span{v: span{URI: uri, Start: start.v, End: end.v}}
75 func Compare(a, b Span) int { argument
114 func (s Span) HasPosition() bool { return s.v.Start.hasPosition() } argument
115 func (s Span) HasOffset() bool { return s.v.Start.hasOffset() } argument
116 func (s Span) IsValid() bool { return s.v.Start.isValid() } argument
117 func (s Span) IsPoint() bool { return s.v.Start == s.v.End } argument
118 func (s Span) URI() URI { return s.v.URI } argument
[all …]
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/lsp/span/
Dspan.go26 type Span struct { struct
50 var Invalid = Span{v: span{Start: invalidPoint.v, End: invalidPoint.v}}
63 func New(uri URI, start Point, end Point) Span {
64 s := Span{v: span{URI: uri, Start: start.v, End: end.v}}
75 func Compare(a, b Span) int { argument
114 func (s Span) HasPosition() bool { return s.v.Start.hasPosition() } argument
115 func (s Span) HasOffset() bool { return s.v.Start.hasOffset() } argument
116 func (s Span) IsValid() bool { return s.v.Start.isValid() } argument
117 func (s Span) IsPoint() bool { return s.v.Start == s.v.End } argument
118 func (s Span) URI() URI { return s.v.URI } argument
[all …]
/third_party/rust/crates/proc-macro2/tests/
Dtest_size.rs8 assert_eq!(mem::size_of::<proc_macro::Span>(), 4); in test_proc_macro_span_size()
9 assert_eq!(mem::size_of::<Option<proc_macro::Span>>(), 4); in test_proc_macro_span_size()
15 assert_eq!(mem::size_of::<proc_macro2::Span>(), 0); in test_proc_macro2_fallback_span_size_without_locations()
16 assert_eq!(mem::size_of::<Option<proc_macro2::Span>>(), 1); in test_proc_macro2_fallback_span_size_without_locations()
22 assert_eq!(mem::size_of::<proc_macro2::Span>(), 8); in test_proc_macro2_fallback_span_size_with_locations()
23 assert_eq!(mem::size_of::<Option<proc_macro2::Span>>(), 12); in test_proc_macro2_fallback_span_size_with_locations()
33 assert_eq!(mem::size_of::<proc_macro2::Span>(), 4); in test_proc_macro2_wrapper_span_size_without_locations()
34 assert_eq!(mem::size_of::<Option<proc_macro2::Span>>(), 8); in test_proc_macro2_wrapper_span_size_without_locations()
40 assert_eq!(mem::size_of::<proc_macro2::Span>(), 12); in test_proc_macro2_wrapper_span_size_with_locations()
41 assert_eq!(mem::size_of::<Option<proc_macro2::Span>>(), 12); in test_proc_macro2_wrapper_span_size_with_locations()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dseed_material_test.cc60 absl::Span<uint32_t>(seed_material_1, kSeedMaterialSize))); in TEST()
62 absl::Span<uint32_t>(seed_material_2, kSeedMaterialSize))); in TEST()
71 absl::Span<uint32_t>(seed_material, 0))); in TEST()
79 absl::Span<uint32_t>(nullptr, 32))); in TEST()
84 absl::Span<uint32_t>(nullptr, 32)), in TEST()
99 &urbg_1, absl::Span<uint32_t>(seed_material, kSeedMaterialSize))); in TEST()
110 &urbg, absl::Span<uint32_t>(seed_material, 0))); in TEST()
120 nullptr, absl::Span<uint32_t>(seed_material, kSeedMaterialSize))); in TEST()
125 nullptr, absl::Span<uint32_t>(seed_material, kSeedMaterialSize)), in TEST()
135 &urbg, absl::Span<uint32_t>(nullptr, 32))); in TEST()
[all …]
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/
Dspan.go53 type Span struct { struct
57 func (s Span) String() string { argument
62 func (s Span) Compare(o Span) int { argument
77 func (s Span) Before(o Span) bool { return s.Compare(o) == -1 } argument
80 func (s Span) Inside(o Span) bool { return s.Start.Compare(o.Start) >= 0 && s.End.Compare(o.End) <=… argument
83 type SpanList []Span
86 func (l *SpanList) Add(s Span) { argument
117 func (l *SpanList) Remove(s Span) { argument
135 merged = append(merged, Span{first.Start, s.Start})
138 merged = append(merged, Span{s.End, last.End})
/third_party/rust/crates/proc-macro2/tests/ui/
Dtest-not-send.stderr1 error[E0277]: `proc_macro::Span` cannot be sent between threads safely
4 5 | requires_send::<Span>();
5 | ^^^^ `proc_macro::Span` cannot be sent between threads safely
7 = help: within `Span`, the trait `Send` is not implemented for `proc_macro::Span`
8 = note: required because it appears within the type `Span`
9 = note: required because it appears within the type `Span`
19 5 | requires_send::<Span>();
22 = help: within `Span`, the trait `Send` is not implemented for `Rc<()>`
25 = note: required because it appears within the type `Span`
/third_party/rust/crates/quote/src/
Dspanned.rs2 use proc_macro2::{Span, TokenStream};
5 fn __span(&self) -> Span; in __span() argument
8 impl Spanned for Span { implementation
9 fn __span(&self) -> Span { in __span() argument
15 fn __span(&self) -> Span { in __span() argument
20 fn join_spans(tokens: TokenStream) -> Span { in join_spans() argument
37 None => return Span::call_site(), in join_spans()
/third_party/typescript/tests/baselines/reference/
Dparserindenter.js51 "t1=[" + token.Span.startPosition() + "," + token.Span.endPosition()+ "], " +
52 …"t2=[" + (nextToken == null ? "null" : (nextToken.Span.startPosition() + "," + nextToken.Span.endP…
101 …while (!node.CanIndent() && node.Parent != null && token.Span.span.start() == node.Parent.AuthorNo…
104 … if (node.CanIndent() && token.Span.span.start() == node.AuthorNode.Details.StartOffset) {
134 … var edit = this.GetIndentEdit(indentationInfo, token.Span.startPosition(), sameLineIndent);
159 … var commentLastLineNumber = this.snapshot.GetLineNumberFromPosition(token.Span.endPosition());
163 … var commentFirstLineIndentationDelta = this.GetIndentationDelta(token.Span.startPosition(), null);
279 var semiColonStartSpan = new Span(token.Span.startPosition(), 0);
293 var twoCharSpan = token.Span.Intersection(new Span(token.Span.startPosition(), 2));
334 … if (token.Span.startPosition() < argumentNode.AuthorNode.Details.StartOffset)
[all …]
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/RealWorld/
Dparserindenter.ts50 "t1=[" + token.Span.startPosition() + "," + token.Span.endPosition()+ "], " +
51 …"t2=[" + (nextToken == null ? "null" : (nextToken.Span.startPosition() + "," + nextToken.Span.endP…
100 …while (!node.CanIndent() && node.Parent != null && token.Span.span.start() == node.Parent.AuthorNo…
103 … if (node.CanIndent() && token.Span.span.start() == node.AuthorNode.Details.StartOffset) {
133 … var edit = this.GetIndentEdit(indentationInfo, token.Span.startPosition(), sameLineIndent);
158 … var commentLastLineNumber = this.snapshot.GetLineNumberFromPosition(token.Span.endPosition());
162 … var commentFirstLineIndentationDelta = this.GetIndentationDelta(token.Span.startPosition(), null);
278 var semiColonStartSpan = new Span(token.Span.startPosition(), 0);
292 var twoCharSpan = token.Span.Intersection(new Span(token.Span.startPosition(), 2));
333 … if (token.Span.startPosition() < argumentNode.AuthorNode.Details.StartOffset)
[all …]

12345678910