Home
last modified time | relevance | path

Searched refs:TextSpan (Results 1 – 25 of 121) sorted by relevance

12345

/third_party/flutter/flutter/packages/flutter/test/painting/
Dtext_span_test.dart10 test('TextSpan equals', () {
11 const TextSpan a1 = TextSpan(text: 'a');
12 const TextSpan a2 = TextSpan(text: 'a');
13 const TextSpan b1 = TextSpan(children: <TextSpan>[ a1 ]);
14 const TextSpan b2 = TextSpan(children: <TextSpan>[ a2 ]);
15 const TextSpan c1 = TextSpan(text: null);
16 const TextSpan c2 = TextSpan(text: null);
31 test('TextSpan toStringDeep', () {
32 const TextSpan test = TextSpan(
37 children: <TextSpan>[
[all …]
Dtext_painter_rtl_test.dart17 painter.text = const TextSpan(
41 painter.text = const TextSpan(
46 TextSpan textSpan = painter.text;
172 painter.text = const TextSpan(
177 final TextSpan textSpan = painter.text;
263 painter.text = const TextSpan(
267 final TextSpan textSpan = painter.text;
332 painter.text = const TextSpan(
334 children: <TextSpan>[
335 TextSpan(
[all …]
Dtext_painter_test.dart17 painter.text = TextSpan(text: text);
30 painter.text = TextSpan(text: text);
40 List<TextSpan> children = <TextSpan>[const TextSpan(text: 'B'), const TextSpan(text: 'C')];
41 painter.text = TextSpan(text: null, children: children);
51 children = <TextSpan>[];
52 painter.text = TextSpan(text: null, children: children);
68 painter.text = const TextSpan(text: text);
130 painter.text = const TextSpan(text: text);
153 final TextPainter painter1 = TextPainter(text: const TextSpan(text: ''));
155 …final TextPainter painter2 = TextPainter(text: const TextSpan(text: ''), textDirection: TextDirect…
[all …]
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dtext_test.dart102 TextSpan(
104 children: <TextSpan>[
105 TextSpan(text: ' beautiful ', style: TextStyle(fontStyle: FontStyle.italic)),
106 TextSpan(text: 'world', style: TextStyle(fontWeight: FontWeight.bold)),
149 text: TextSpan(
151 const TextSpan(
155 TextSpan(
187 TextSpan(
188 children: <TextSpan>[
189 const TextSpan(text: 'hello '),
[all …]
Dtext_golden_test.dart171 TextSpan(
179 TextSpan(
344 TextSpan(
351 TextSpan(
358 TextSpan(
436 TextSpan(
443 TextSpan(
450 TextSpan(
578 TextSpan(
590 TextSpan(text: 'He ', style: TextStyle(fontSize: 20)),
[all …]
Dhyperlink_test.dart30 text: TextSpan(
31 children: <TextSpan>[
32 TextSpan(
36 const TextSpan(text: 'yyyyyyyy'),
37 TextSpan(
Dsemantics_tester_test.dart17 TextSpan(
18 children: <TextSpan>[
19 const TextSpan(text: 'hello'),
20 TextSpan(text: 'world', recognizer: TapGestureRecognizer()..onTap = () { }),
/third_party/typescript/src/services/
Dtypes.ts393 getSyntacticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[];
394 …getSyntacticClassifications(fileName: string, span: TextSpan, format: SemanticClassificationFormat…
397 getSemanticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[];
398 …getSemanticClassifications(fileName: string, span: TextSpan, format: SemanticClassificationFormat)…
401 getEncodedSyntacticClassifications(fileName: string, span: TextSpan): Classifications;
412 …getEncodedSemanticClassifications(fileName: string, span: TextSpan, format?: SemanticClassificatio…
454 … getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
456 getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
488 getBraceMatchingAtPosition(fileName: string, position: number): TextSpan[];
504 …EnclosingComment(fileName: string, position: number, onlyMultiLine: boolean): TextSpan | undefined;
[all …]
Dbreakpoints.ts44 …ction textSpanEndingAtNextToken(startNode: Node, previousTokenToFindNextEndToken: Node): TextSpan {
48 …panInNodeIfStartsOnSameLine(node: Node | undefined, otherwiseOnNode?: Node): TextSpan | undefined {
59 function spanInPreviousNode(node: Node): TextSpan | undefined {
63 function spanInNextNode(node: Node): TextSpan | undefined {
67 function spanInNode(node: Node | undefined): TextSpan | undefined {
369 …ion(variableDeclaration: VariableDeclaration | PropertyDeclaration | PropertySignature): TextSpan {
380 …Declaration: VariableDeclaration | PropertyDeclaration | PropertySignature): TextSpan | undefined {
416 … function spanInParameterDeclaration(parameter: ParameterDeclaration): TextSpan | undefined {
444 …ion spanInFunctionDeclaration(functionDeclaration: FunctionLikeDeclaration): TextSpan | undefined {
459 function spanInFunctionBlock(block: Block): TextSpan | undefined {
[all …]
DpatternMatcher.ts90 characterSpans: TextSpan[];
105 const stringToWordSpans = new Map<string, TextSpan[]>();
118 …SeparatedSegments: readonly Segment[], stringToWordSpans: ESMap<string, TextSpan[]>): PatternMatch…
144 function getWordSpans(word: string, stringToWordSpans: ESMap<string, TextSpan[]>): TextSpan[] {
152 …k(candidate: string, chunk: TextChunk, stringToWordSpans: ESMap<string, TextSpan[]>): PatternMatch…
204 …t(candidate: string, segment: Segment, stringToWordSpans: ESMap<string, TextSpan[]>): PatternMatch…
269 …rtsWith(candidate: string, candidateSpan: TextSpan, pattern: string, ignoreCase: boolean, patternS…
278 …function tryCamelCaseMatch(candidate: string, candidateParts: TextSpan[], chunk: TextChunk, ignore…
464 export function breakIntoCharacterSpans(identifier: string): TextSpan[] {
468 export function breakIntoWordSpans(identifier: string): TextSpan[] {
[all …]
/third_party/typescript/tests/baselines/reference/
DclassSideInheritance2.symbols9 interface TextSpan {}
10 >TextSpan : Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1))
16 constructor(text: IText, span: TextSpan) {
20 >TextSpan : Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1))
34 public subText(span: TextSpan): IText {
37 >TextSpan : Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1))
DclassSideInheritance2.types7 interface TextSpan {}
13 constructor(text: IText, span: TextSpan) {
15 >span : TextSpan
29 public subText(span: TextSpan): IText {
30 >subText : (span: TextSpan) => IText
31 >span : TextSpan
37 >span : TextSpan
DclassSideInheritance2.errors.txt9 interface TextSpan {}
16 constructor(text: IText, span: TextSpan) {
23 public subText(span: TextSpan): IText {
DclassSideInheritance2.js6 interface TextSpan {}
10 constructor(text: IText, span: TextSpan) { argument
17 public subText(span: TextSpan): IText {
/third_party/flutter/flutter/packages/flutter/test/rendering/
Dparagraph_test.dart19 const TextSpan(text: _kText),
38 const TextSpan(text: _kText),
55 const TextSpan(text: _kText, style: TextStyle(fontSize: 10.0)),
78 const TextSpan(text: _kText),
95 const TextSpan(
171 const TextSpan(
200 const TextSpan(
209 paragraph.text = const TextSpan(
218 paragraph.text = const TextSpan(
230 const TextSpan testSpan = TextSpan(
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/painting/
Dtext_span.dart18 /// A [TextSpan] object can be styled using its [style] property.
21 /// A [TextSpan] object can just have plain text, or it can have
22 /// children [TextSpan] objects with their own styles that (possibly
24 /// [TextSpan] has both [text] and [children], then the [text] is
25 /// treated as if it was an unstyled [TextSpan] at the start of the
26 /// [children] list. Leaving the [TextSpan.text] field null results
27 /// in the [TextSpan] acting as an empty node in the [InlineSpan]
30 /// To paint a [TextSpan] on a [Canvas], use a [TextPainter]. To display a text
39 /// TextSpan(
49 /// The [TextSpan.text] will be used as the semantics label unless overriden
[all …]
Dinline_span.dart102 /// * The subclass [TextSpan] specifies text and may contain child [InlineSpan]s.
117 /// TextSpan(
129 /// TextSpan(
153 /// of [TextSpan].
157 /// Returns the text associated with this span if this is an instance of [TextSpan],
159 @Deprecated('InlineSpan does not innately have text. Use TextSpan.text instead.')
164 /// instance of [TextSpan], otherwise returns null.
165 @Deprecated('InlineSpan does not innately have children. Use TextSpan.children instead.')
169 /// instance of [TextSpan], otherwise returns null.
170 @Deprecated('InlineSpan does not innately have a recognizer. Use TextSpan.recognizer instead.')
[all …]
/third_party/flutter/flutter/examples/flutter_gallery/lib/gallery/
Dabout.dart11 class _LinkTextSpan extends TextSpan {
20 // lifetime and call dispose() when the TextSpan was no longer being rendered.
22 // Since TextSpan itself is @immutable, this means that you would have to
23 // manage the recognizer from outside the TextSpan, e.g. in the State of a
24 // stateful widget that then hands the recognizer to the TextSpan.
49 text: TextSpan(
50 children: <TextSpan>[
51 TextSpan(
64 TextSpan(
73 TextSpan(
/third_party/typescript/tests/cases/fourslash/
Dfourslash.ts173 interface TextSpan {
363 textSpan?: TextSpan;
477 textSpan?: TextSpan;
482 textSpan?: TextSpan;
487 textSpan?: TextSpan;
492 textSpan?: TextSpan;
497 textSpan?: TextSpan;
502 textSpan?: TextSpan;
507 textSpan?: TextSpan;
512 textSpan?: TextSpan;
[all …]
/third_party/flutter/flutter/examples/layers/widgets/
Dstyled_text.dart39 text: TextSpan(
41 children: <TextSpan>[
42 TextSpan(
44 children: <TextSpan>[
45 TextSpan(
49 const TextSpan(text: ':'),
52 TextSpan(text: text),
/third_party/typescript/tests/cases/compiler/
DclassSideInheritance2.ts5 interface TextSpan {} interface
9 constructor(text: IText, span: TextSpan) {
16 public subText(span: TextSpan): IText {
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dselectable_text.dart25 _TextSpanEditingController({@required TextSpan textSpan}):
30 final TextSpan _textSpan;
33 TextSpan buildTextSpan({TextStyle style ,bool withComposing}) {
35 return TextSpan(
37 children: <TextSpan>[_textSpan],
153 /// display a paragraph with differently styled [TextSpan]s. The sample
161 /// TextSpan(
163 /// children: <TextSpan>[
164 /// TextSpan(text: ' beautiful ', style: TextStyle(fontStyle: FontStyle.italic)),
165 /// TextSpan(text: 'world', style: TextStyle(fontWeight: FontWeight.bold)),
[all …]
/third_party/typescript/lib/
Dprotocol.d.ts249 textSpan: TextSpan;
251 hintSpan: TextSpan;
691 interface TextSpan { interface
704 interface FileSpan extends TextSpan {
710 interface TextSpanWithContext extends TextSpan {
718 textSpan: TextSpan;
947 triggerSpan: TextSpan;
1165 textSpan: TextSpan;
1688 replacementSpan?: TextSpan;
1768 readonly optionalReplacementSpan?: TextSpan;
[all …]
/third_party/typescript/src/server/
Dprotocol.ts367 textSpan: TextSpan;
370 hintSpan: TextSpan;
960 export interface TextSpan { interface
975 export interface FileSpan extends TextSpan {
982 export interface TextSpanWithContext extends TextSpan {
992 textSpan: TextSpan;
1270 triggerSpan: TextSpan;
1603 textSpan: TextSpan;
2259 replacementSpan?: TextSpan;
2355 readonly optionalReplacementSpan?: TextSpan;
[all …]
/third_party/flutter/flutter/examples/layers/rendering/
Dflex_layout.dart18 TextSpan(style: style, text: '$crossAxisAlignment'),
27 TextSpan(style: style, text: 'foo foo foo'),
35 TextSpan(style: style, text: 'foo foo foo'),
44 TextSpan(style: style, text: 'foo foo foo foo'),
64 TextSpan(style: style, text: '$justify'),

12345