/third_party/skia/third_party/externals/abseil-cpp/absl/types/ |
H A D | span.h | 20 // This header file defines a `Span<T>` type for holding a reference to existing 21 // array data. The `Span` object, much like the `absl::string_view` object, 29 // factory functions, for clearly creating spans of type `Span<T>` or read-only 30 // `Span<const T>` when such types may be difficult to identify due to issues 34 // differences between `absl::Span` and `std::span` are: 35 // * `absl::Span` has `operator==` (which is likely a design bug, 37 // * `absl::Span` has the factory functions `MakeSpan()` and 39 // * bounds-checked access to `absl::Span` is accomplished with `at()` 40 // * `absl::Span` has compiler-provided move and copy constructors and 43 // * A read-only `absl::Span<cons 152 class Span { global() class 187 constexpr Span() noexcept : Span(nullptr, 0) {} Span() function in absl::Span 194 : Span(a, N) {} Span() function in absl::Span 248 : Span(v.begin(), v.size()) {} Span() function in absl::Span [all...] |
H A D | span_test.cc | 62 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<in in TEST() [all...] |
/third_party/rust/crates/syn/src/ |
H A D | span.rs | 2 use proc_macro2::{Delimiter, Group, Span, TokenStream}; 9 impl IntoSpans<Span> for Span { 10 fn into_spans(self) -> Span { in into_spans() 15 impl IntoSpans<[Span; 1]> for Span { 16 fn into_spans(self) -> [Span; 1] { in into_spans() 21 impl IntoSpans<[Span; 2]> for Span { 22 fn into_spans(self) -> [Span; [all...] |
H A D | error.rs | 5 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 105 // Span is implemented as an index into a thread-local interner to keep the 109 // it is Span::call_site if accessed from any other thread. 114 // Cannot use std::ops::Range<Span> because that does not implement Copy, 118 start: Span, 119 end: Span, 158 pub fn new<T: Display>(span: Span, message: T) -> Self { in new() 161 fn new(span: Span, message: String) -> Error { in new() 194 let start = iter.next().map_or_else(Span::call_site, |t| t.span()); in new_spanned() 207 /// Spans are not thread-safe so this function returns `Span [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | span_unittest.cpp | 18 using Span = sh::TSpan<const unsigned int>; 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(kSpanDat in TEST() [all...] |
/third_party/rust/crates/proc-macro2/src/ |
H A D | wrapper.rs | 261 pub(crate) fn span(&self) -> Span { 263 LexError::Compiler(_) | LexError::CompilerPanic => Span::call_site(), 264 LexError::Fallback(e) => Span::Fallback(e.span()), 343 o.set_span(crate::Span::_new(Span::Compiler(tt.span()))); in next() 399 pub(crate) enum Span { 400 Compiler(proc_macro::Span), 401 Fallback(fallback::Span), 404 impl Span { impls 407 Span in call_site() [all...] |
H A D | extra.rs | 7 use crate::Span; 24 join: proc_macro::Span, 25 open: proc_macro::Span, 26 close: proc_macro::Span, 28 Fallback(fallback::Span), 53 pub fn join(&self) -> Span { in join() 56 DelimSpanEnum::Compiler { join, .. } => Span::_new(imp::Span::Compiler(*join)), in join() 57 DelimSpanEnum::Fallback(span) => Span::_new_fallback(*span), in join() 62 pub fn open(&self) -> Span { in open() [all...] |
H A D | fallback.rs | 40 pub(crate) span: Span, 44 pub(crate) fn span(&self) -> Span { 50 span: Span::call_site(), 91 punct.set_span(crate::Span::_new_fallback(literal.span)); in push_token_from_proc_macro() 330 span: Span { lo: 0, hi: 0 }, 340 span: Span, 348 assert!(self.span_within(Span { in offset_line_column() 365 fn span_within(&self, span: Span) -> bool { in span_within() 369 fn source_text(&mut self, span: Span) -> String { in source_text() 438 fn add_file(&mut self, src: &str) -> Span { in add_file() 498 impl Span { global() impls [all...] |
H A D | lib.rs | 315 pub fn span(&self) -> Span { in span() 316 Span::_new(self.inner.span()) in span() 334 /// The source file of a given `Span`. 387 pub struct Span { structure names 388 inner: imp::Span, 392 impl Span { impls 393 fn _new(inner: imp::Span) -> Self { in _new() 394 Span { in _new() 400 fn _new_fallback(inner: fallback::Span) -> Self { in _new_fallback() 401 Span { in _new_fallback() [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf/ |
H A D | CodedOutputStream.cs | 173 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<byt in WriteMessage() [all...] |
H A D | WritingPrimitives.cs | 56 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 value) in WriteFloat() 86 private static unsafe void WriteFloatSlowPath(ref Span<byte> buffer, ref WriterInternalState state, float value) 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<byt [all...] |
/third_party/rust/crates/codespan/codespan/src/ |
H A D | span.rs | 10 pub struct Span { structure names 15 impl Span { impls 17 pub fn new(start: impl Into<ByteIndex>, end: impl Into<ByteIndex>) -> Span { in new() 23 Span { start, end } in new() 27 pub const fn initial() -> Span { 28 Span { 37 /// use codespan::{ByteIndex, Span}; 39 /// let span = Span::from_str("hello"); 41 /// assert_eq!(span, Span::new(0, 5)); 43 pub fn from_str(s: &str) -> Span { in from_str() [all...] |
/third_party/rust/crates/quote/src/ |
H A D | spanned.rs | 3 use proc_macro2::{Span, TokenStream}; 7 fn __span(&self) -> Span; in __span() 10 impl Spanned for Span { 11 fn __span(&self) -> Span { in __span() 17 fn __span(&self) -> Span { in __span() 23 fn __span(&self) -> Span { in __span() 28 fn join_spans(tokens: TokenStream) -> Span { in join_spans() 33 None => return Span::call_site(), in join_spans() 44 use proc_macro2::Span; 47 impl Sealed for Span {} [all...] |
/third_party/rust/crates/regex/regex-syntax/src/ast/ |
H A D | mod.rs | 30 span: Span, 47 pub fn span(&self) -> &Span { in span() 56 pub fn auxiliary_span(&self) -> Option<&Span> { in auxiliary_span() 111 original: Span, 117 original: Span, 127 original: Span, 318 /// Span represents the position information of a single AST item. 323 pub struct Span { structure names 330 impl fmt::Debug for Span { 332 write!(f, "Span({ in fmt() 385 impl Span { global() impls [all...] |
/third_party/rust/crates/proc-macro2/tests/ |
H A D | test_size.rs | 8 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>>(), 1 in test_proc_macro2_wrapper_span_size_with_locations() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
H A D | layout_test.cc | 37 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<cons in TEST() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
H A D | seed_material_test.cc | 60 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_ in TEST() [all...] |
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/lsp/span/ |
H A D | span.go | 25 // Span represents a source code range in standardized form. 26 type Span struct { type 31 // In general this should only be used as part of a Span, as on its own it 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 { 114 func (s Span) HasPosition() bool { return s.v.Start.hasPosition() } 115 func (s Span) HasOffset() bool { return s.v.Start.hasOffset() } 116 func (s Span) IsVali [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/span/ |
H A D | span.go | 25 // Span represents a source code range in standardized form. 26 type Span struct { type 31 // In general this should only be used as part of a Span, as on its own it 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 { 114 func (s Span) HasPosition() bool { return s.v.Start.hasPosition() } 115 func (s Span) HasOffset() bool { return s.v.Start.hasOffset() } 116 func (s Span) IsVali [all...] |
/third_party/spirv-tools/utils/vscode/src/lsp/span/ |
H A D | span.go | 25 // Span represents a source code range in standardized form. 26 type Span struct { type 31 // In general this should only be used as part of a Span, as on its own it 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 { 114 func (s Span) HasPosition() bool { return s.v.Start.hasPosition() } 115 func (s Span) HasOffset() bool { return s.v.Start.hasOffset() } 116 func (s Span) IsVali [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | parserindenter.js | 51 "t1=[" + token.Span.startPosition() + "," + token.Span.endPosition()+ "], " + 52 "t2=[" + (nextToken == null ? "null" : (nextToken.Span.startPosition() + "," + nextToken.Span.endPosition())) + "]" + 101 while (!node.CanIndent() && node.Parent != null && token.Span.span.start() == node.Parent.AuthorNode.Details.StartOffset) 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(toke [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/ |
H A D | span.go | 52 // Span describes a start and end interval in a source file. 53 type Span struct { type 57 func (s Span) String() string { 62 func (s Span) Compare(o Span) int { 77 func (s Span) Before(o Span) bool { return s.Compare(o) == -1 } 80 func (s Span) Inside(o Span) bool { return s.Start.Compare(o.Start) >= 0 && s.End.Compare(o.End) <= 0 } 83 type SpanList []Span [all...] |
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/ |
H A D | Trie.java | 31 * calls {@link Span#putPrefixAndValue(int)} to commit the current sequence 50 final class Span { class in Trie 55 private Span() { in Span() method in Trie.Span 60 private Span(int index, String prefix) { in Span() method in Trie.Span 86 public void with(String prefix, Consumer<Span> withFn) { in with() 87 withFn.accept(new Span(index, prefix)); in with() 101 public Span root() { in root() 102 return new Span(); in root()
|
/third_party/rust/crates/proc-macro-error/src/ |
H A D | lib.rs | 130 //! * [`proc_macro::Span`] 131 //! * [`proc-macro2::Span`] 144 //! Shortcut for `abort!(Span::call_site(), ...)`. Expands to [`!`] (never type). 154 //! Shortcut for `emit_error!(Span::call_site(), ...)`. Expands to [`()`] (unit type). 166 //! Shortcut for `emit_warning!(Span::call_site(), ...)`. Expands to [`()`] (unit type). 199 //! `macro!(Span::call_site(), args...)`. 262 //! [`proc_macro::Span`]: https://doc.rust-lang.org/proc_macro/struct.Span.html 270 //! [`proc-macro2::Span`]: https://docs.rs/proc-macro2/1.0.10/proc_macro2/struct.Span [all...] |
/third_party/rust/crates/proc-macro2/build/ |
H A D | probe.rs | 1 // This code exercises the surface area that we expect of Span's unstable API. 10 use proc_macro::{Literal, Span}; 12 pub fn join(this: &Span, other: Span) -> Option<Span> { in join() 16 pub fn subspan<R: RangeBounds<usize>>(this: &Literal, range: R) -> Option<Span> { in subspan()
|