/third_party/typescript/tests/cases/fourslash/ |
D | navigationBarInitializerSpans.ts | 20 ] = test.spans(); 27 spans: [sGlobal], 32 spans: [s1], 38 spans: [s1Child], 46 spans: [s0], 52 spans: [s0Child], 60 spans: [s2], 66 spans: [s2Child], 72 spans: [s2GrandChildName], 86 spans: [sGlobal], [all …]
|
/third_party/rust/crates/tracing/tracing-log/src/ |
D | trace_logger.rs | 46 spans: Mutex<HashMap<Id, SpanLineBuilder>>, field 168 spans: Default::default(), in default() 241 let mut spans = self.spans.lock().unwrap(); in new_span() localVariable 246 while let Some(parent) = next_parent.and_then(|p| spans.get(p)) { in new_span() 253 spans.insert(id.clone(), span); in new_span() 258 let mut spans = self.spans.lock().unwrap(); in record() localVariable 259 if let Some(span) = spans.get_mut(span) { in record() 283 let spans = self.spans.lock().unwrap(); in enter() localVariable 285 if let Some(span) = spans.get(id) { in enter() 292 .and_then(|id| spans.get(id)) in enter() [all …]
|
/third_party/rust/crates/syn/src/ |
D | span.rs | 45 fn from_spans(spans: &[Span]) -> Self; in from_spans() 50 fn from_spans(spans: &[Span]) -> Self { in from_spans() 51 [spans[0]] in from_spans() 57 fn from_spans(spans: &[Span]) -> Self { in from_spans() 58 [spans[0], spans[1]] in from_spans() 64 fn from_spans(spans: &[Span]) -> Self { in from_spans() 65 [spans[0], spans[1], spans[2]] in from_spans()
|
D | token.rs | 374 pub spans: [Span; $len], 379 pub fn $name<S: IntoSpans<[Span; $len]>>(spans: S) -> $name { 381 spans: spans.into_spans(), 388 spans: [Span::call_site(); $len], 447 printing::punct($token, &self.spans, tokens); 456 spans: parsing::punct(input, $token)?, 916 let mut spans = [input.span(); 3]; in punct() localVariable 917 punct_helper(input, token, &mut spans)?; in punct() 918 Ok(S::from_spans(&spans)) in punct() 921 fn punct_helper(input: ParseStream, token: &str, spans: &mut [Span; 3]) -> Result<()> { in punct_helper() [all …]
|
D | custom_punctuation.rs | 81 pub spans: $crate::custom_punctuation_repr!($($tt)+), 87 spans: __S, 91 spans: $crate::__private::IntoSpans::into_spans(spans) 126 let spans: $crate::custom_punctuation_repr!($($tt)+) = localVariable 128 Ok($ident(spans)) 150 … $crate::token::printing::punct($crate::stringify_punct!($($tt)+), &self.spans, tokens)
|
D | gen_helper.rs | 37 pub fn tokens_helper<F: Fold + ?Sized, S: Spans>(folder: &mut F, spans: &S) -> S { in tokens_helper() 38 spans.fold(folder) in tokens_helper() 79 pub fn tokens_helper<'ast, V: Visit<'ast> + ?Sized, S: Spans>(visitor: &mut V, spans: &S) { in tokens_helper() 80 spans.visit(visitor); in tokens_helper() 120 pub fn tokens_helper<V: VisitMut + ?Sized, S: Spans>(visitor: &mut V, spans: &mut S) { in tokens_helper() 121 spans.visit_mut(visitor); in tokens_helper()
|
/third_party/rust/crates/tracing/tracing-mock/src/ |
D | subscriber.rs | 46 spans: Mutex<HashMap<Id, SpanState>>, field 181 spans: Mutex::new(HashMap::new()), in run_with_handle() 219 let spans = self.spans.lock().unwrap(); in record() localVariable 221 let span = spans in record() 251 let spans = self.spans.lock().unwrap(); in event() localVariable 254 .and_then(|id| spans.get(id)) in event() 255 .or_else(|| stack.last().and_then(|id| spans.get(id))) in event() 265 let spans = self.spans.lock().unwrap(); in record_follows_from() localVariable 266 if let Some(consequence_span) = spans.get(consequence_id) { in record_follows_from() 267 if let Some(cause_span) = spans.get(cause_id) { in record_follows_from() [all …]
|
/third_party/rust/crates/proc-macro-error/test-crate/ |
D | lib.rs | 55 let mut spans = input.into_iter().step_by(2).map(|t| t.span()); in emit() localVariable 57 spans.next().unwrap(), in emit() 61 spans.next().unwrap(), in emit() 65 emit_error!(spans.next().unwrap(), "emit!(span, single_expr) test"); in emit() 67 spans.next().unwrap().into(), in emit() 76 emit_warning!(spans.next().unwrap(), "emit_warning! test"); in emit() 87 let mut spans = input.into_iter().map(|s| s.span()); in abort_notes() localVariable 88 let span = spans.next().unwrap(); in abort_notes() 89 let span2 = spans.next().unwrap(); in abort_notes() 117 let mut spans = input.into_iter().step_by(2).map(|s| s.span()); in emit_notes() localVariable [all …]
|
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/ |
D | tree.go | 41 spans map[Span]SpanID member 49 t.spans = map[Span]SpanID{} 58 out := make(SpanList, len(t.spans)) 59 for span, id := range t.spans { 91 func (t *Tree) addSpans(spans SpanList) SpanSet { 92 out := make(SpanSet, len(spans)) 93 for _, s := range spans { 94 id, ok := t.spans[s] 96 id = SpanID(len(t.spans)) 97 t.spans[s] = id [all …]
|
D | import.go | 144 func appendSpan(spans []Span, span Span) []Span { 145 if c := len(spans); c > 0 && spans[c-1].End == span.Start { 146 spans[c-1].End = span.End 148 spans = append(spans, span) 150 return spans
|
D | serialization.go | 54 for span, id := range t.spans { 114 spans := make([]spanAndID, 0, len(t.spans)) 115 for span, id := range t.spans { 116 spans = append(spans, spanAndID{span, id}) 118 sort.Slice(spans, func(i, j int) bool { return spans[i].id < spans[j].id }) 121 for i, s := range spans { 321 for span, id := range tree.spans { 354 p.tree.spans[p.parseSpan()] = SpanID(idx)
|
D | coverage_test.go | 226 0: cov.SpanGroup{Spans: spans(0, 1)}, 227 1: cov.SpanGroup{Spans: spans(0, 3)}, 228 2: cov.SpanGroup{Spans: spans(1, 2)}, 264 0: cov.SpanGroup{Spans: spans(0, 1)}, 333 func coverage(file string, spans ...cov.Span) *cov.Coverage { 338 Covered: spans, 344 func spans(ids ...cov.SpanID) cov.SpanSet { func
|
/third_party/rust/crates/tracing/tracing-opentelemetry/tests/ |
D | trace_state_propagation.rs | 30 let spans = exporter.0.lock().unwrap(); in trace_with_active_otel_context() localVariable 31 assert_eq!(spans.len(), 2); in trace_with_active_otel_context() 32 assert_shared_attrs_eq(&spans[0].span_context, &spans[1].span_context); in trace_with_active_otel_context() 45 let spans = exporter.0.lock().unwrap(); in trace_with_assigned_otel_context() localVariable 46 assert_eq!(spans.len(), 2); in trace_with_assigned_otel_context() 47 assert_shared_attrs_eq(&spans[0].span_context, &spans[1].span_context); in trace_with_assigned_otel_context() 61 let spans = exporter.0.lock().unwrap(); in trace_root_with_children() localVariable 62 assert_eq!(spans.len(), 2); in trace_root_with_children() 63 assert_shared_attrs_eq(&spans[0].span_context, &spans[1].span_context); in trace_root_with_children() 163 let spans = self.0.clone(); in export() localVariable [all …]
|
/third_party/rust/crates/syn/src/gen/ |
D | visit_mut.rs | 798 tokens_helper(v, &mut it.spans); in visit_angle_bracketed_generic_arguments_mut() 800 tokens_helper(v, &mut node.lt_token.spans); in visit_angle_bracketed_generic_arguments_mut() 805 tokens_helper(v, &mut p.spans); in visit_angle_bracketed_generic_arguments_mut() 808 tokens_helper(v, &mut node.gt_token.spans); in visit_angle_bracketed_generic_arguments_mut() 823 tokens_helper(v, &mut node.fat_arrow_token.spans); in visit_arm_mut() 826 tokens_helper(v, &mut it.spans); in visit_arm_mut() 837 tokens_helper(v, &mut _binding_0.spans); in visit_attr_style_mut() 846 tokens_helper(v, &mut node.pound_token.spans); in visit_attribute_mut() 862 tokens_helper(v, &mut (it).1.spans); in visit_bare_fn_arg_mut() 873 tokens_helper(v, &mut _binding_0.spans); in visit_bin_op_mut() [all …]
|
D | visit.rs | 797 tokens_helper(v, &it.spans); in visit_angle_bracketed_generic_arguments() 799 tokens_helper(v, &node.lt_token.spans); in visit_angle_bracketed_generic_arguments() 804 tokens_helper(v, &p.spans); in visit_angle_bracketed_generic_arguments() 807 tokens_helper(v, &node.gt_token.spans); in visit_angle_bracketed_generic_arguments() 822 tokens_helper(v, &node.fat_arrow_token.spans); in visit_arm() 825 tokens_helper(v, &it.spans); in visit_arm() 836 tokens_helper(v, &_binding_0.spans); in visit_attr_style() 845 tokens_helper(v, &node.pound_token.spans); in visit_attribute() 861 tokens_helper(v, &(it).1.spans); in visit_bare_fn_arg() 872 tokens_helper(v, &_binding_0.spans); in visit_bin_op() [all …]
|
D | fold.rs | 802 .map(|it| Token![::](tokens_helper(f, &it.spans))), in fold_angle_bracketed_generic_arguments() 803 lt_token: Token![<](tokens_helper(f, &node.lt_token.spans)), in fold_angle_bracketed_generic_arguments() 805 gt_token: Token![>](tokens_helper(f, &node.gt_token.spans)), in fold_angle_bracketed_generic_arguments() 821 fat_arrow_token: Token![=>](tokens_helper(f, &node.fat_arrow_token.spans)), in fold_arm() 823 comma: (node.comma).map(|it| Token![,](tokens_helper(f, &it.spans))), in fold_arm() 834 AttrStyle::Inner(Token![!](tokens_helper(f, &_binding_0.spans))) in fold_attr_style() 844 pound_token: Token![#](tokens_helper(f, &node.pound_token.spans)), in fold_attribute() 861 Token![:](tokens_helper(f, &(it).1.spans)), in fold_bare_fn_arg() 873 BinOp::Add(Token![+](tokens_helper(f, &_binding_0.spans))) in fold_bin_op() 876 BinOp::Sub(Token![-](tokens_helper(f, &_binding_0.spans))) in fold_bin_op() [all …]
|
/third_party/rust/crates/regex/regex-syntax/src/ |
D | error.rs | 106 let spans = Spans::from_formatter(self); in fmt() localVariable 112 let notated = spans.notate(); in fmt() 117 if !spans.multi_line.is_empty() { in fmt() 119 for span in &spans.multi_line { in fmt() 183 let mut spans = Spans { in from_formatter() localVariable 189 spans.add(fmter.span.clone()); in from_formatter() 191 spans.add(span.clone()); in from_formatter() 193 spans in from_formatter() 236 let spans = &self.by_line[i]; in notate_line() localVariable 237 if spans.is_empty() { in notate_line() [all …]
|
/third_party/rust/crates/tracing/examples/examples/sloggish/ |
D | sloggish_subscriber.rs | 73 spans: Mutex<HashMap<Id, Span>>, field 156 spans: Mutex::new(HashMap::new()), in new() 205 self.spans.lock().unwrap().insert(id.clone(), span); in new_span() 210 let mut spans = self.spans.lock().expect("mutex poisoned!"); in record() localVariable 211 if let Some(span) = spans.get_mut(span) { in record() 224 let spans = self.spans.lock().unwrap(); in enter() localVariable 225 let data = spans.get(span_id); in enter()
|
/third_party/freetype/src/smooth/ |
D | ftsmooth.c | 113 const FT_Span* spans, in ft_smooth_lcd_spans() argument 121 for ( ; count--; spans++ ) in ft_smooth_lcd_spans() 122 for ( dst = dst_line + spans->x * 3, w = spans->len; w--; dst += 3 ) in ft_smooth_lcd_spans() 123 *dst = spans->coverage; in ft_smooth_lcd_spans() 342 const FT_Span* spans, in ft_smooth_overlap_spans() argument 355 for ( ; count--; spans++ ) in ft_smooth_overlap_spans() 357 cover = ( spans->coverage + SCALE * SCALE / 2 ) / ( SCALE * SCALE ); in ft_smooth_overlap_spans() 358 for ( x = 0; x < spans->len; x++ ) in ft_smooth_overlap_spans() 360 sum = dst[( spans->x + x ) / SCALE] + cover; in ft_smooth_overlap_spans() 361 dst[( spans->x + x ) / SCALE] = (unsigned char)( sum - ( sum >> 8 ) ); in ft_smooth_overlap_spans()
|
/third_party/skia/third_party/externals/freetype/src/smooth/ |
D | ftsmooth.c | 113 const FT_Span* spans, in ft_smooth_lcd_spans() argument 121 for ( ; count--; spans++ ) in ft_smooth_lcd_spans() 122 for ( dst = dst_line + spans->x * 3, w = spans->len; w--; dst += 3 ) in ft_smooth_lcd_spans() 123 *dst = spans->coverage; in ft_smooth_lcd_spans() 342 const FT_Span* spans, in ft_smooth_overlap_spans() argument 355 for ( ; count--; spans++ ) in ft_smooth_overlap_spans() 357 cover = ( spans->coverage + SCALE * SCALE / 2 ) / ( SCALE * SCALE ); in ft_smooth_overlap_spans() 358 for ( x = 0; x < spans->len; x++ ) in ft_smooth_overlap_spans() 360 sum = dst[( spans->x + x ) / SCALE] + cover; in ft_smooth_overlap_spans() 361 dst[( spans->x + x ) / SCALE] = (unsigned char)( sum - ( sum >> 8 ) ); in ft_smooth_overlap_spans()
|
/third_party/rust/crates/tracing/tracing-subscriber/src/registry/ |
D | sharded.rs | 93 spans: Pool<DataInner>, field 138 spans: Pool::new(), in default() 184 self.spans.get(id_to_idx(id)) in get() 247 .spans in new_span() 301 if let Some(spans) = self.current_spans.get() { in exit() 302 if spans.borrow_mut().pop(id) { in exit() 333 .and_then(|spans| { in current_span() 334 let spans = spans.borrow(); in current_span() localVariable 335 let id = spans.current()?; in current_span() 411 self.registry.spans.clear(id_to_idx(&self.id)); in drop()
|
/third_party/typescript/src/services/ |
D | classifier.ts | 48 const spans: number[] = []; constant 78 … pushEncodedClassification(scanner.getTokenPos(), end, offset, classFromKind(token), spans); 172 return { endOfLineState, spans }; 258 const dense = classifications.spans; 484 const spans: number[] = []; constant 505 return { spans, endOfLineState: EndOfLineState.None }; 510 spans.push(start); 511 spans.push(length); 512 spans.push(type); 584 Debug.assert(classifications.spans.length % 3 === 0); [all …]
|
/third_party/rust/crates/tracing/tracing-attributes/ |
D | CHANGELOG.md | 3 This release of `tracing-attributes` fixes a bug where compiler diagnostic spans 11 - Add fake return to improve spans generated for type errors in `async fn`s ([#2270]) 47 This release adds support for setting explicit parent and follows-from spans 133 spans are below the maximum enabled level. 137 - improve performance when skipping `#[instrument]`-generated spans below the 268 - Support for adding arbitrary literal fields to spans generated by 293 from generated spans (#359)
|
/third_party/rust/crates/syn/codegen/src/ |
D | visit.rs | 57 tokens_helper(v, &p.spans); in visit() 88 let spans = if is_keyword { in visit() localVariable 91 quote!(spans) in visit() 94 tokens_helper(v, &#name.#spans); in visit()
|
D | visit_mut.rs | 57 tokens_helper(v, &mut p.spans); in visit() 88 let spans = if is_keyword { in visit() localVariable 91 quote!(spans) in visit() 94 tokens_helper(v, &mut #name.#spans); in visit()
|