86 references to GetContent
Microsoft.CodeAnalysis.Razor.Compiler (86)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (41)
393
Content = node.
GetContent
(),
706
Prefix = node.Prefix?.
GetContent
() ?? string.Empty,
721
Prefix = node.Prefix?.
GetContent
() ?? string.Empty,
729
Prefix = node.Prefix?.
GetContent
() ?? string.Empty,
745
Prefix = node.Prefix?.
GetContent
() ?? string.Empty,
751
contentFactory: static node => node.Value?.
GetContent
() ?? string.Empty,
760
Prefix = node.Prefix?.
GetContent
() ?? string.Empty,
766
contentFactory: static node => node.Value?.
GetContent
() ?? string.Empty,
798
contentFactory: static node => node.
GetContent
(),
900
contentFactory: static item => item.
GetContent
(),
993
attributeBlock.Name.
GetContent
(),
994
attributeBlock.Value?.
GetContent
() ?? string.Empty));
999
minimizedAttr.Name.
GetContent
(), string.Empty));
1079
isSelfClosing = lastToken.Parent?.
GetContent
().EndsWith("/>", StringComparison.Ordinal) ?? false;
1169
var name = node.Name.
GetContent
();
1185
ValueContent = node.Value?.
GetContent
(),
1220
Prefix = prefix.
GetContent
(),
1221
Suffix = node.ValueSuffix?.
GetContent
() ?? string.Empty,
1283
Prefix = prefix.
GetContent
(),
1284
Suffix = node.ValueSuffix?.
GetContent
() ?? string.Empty,
1298
Prefix = prefix.
GetContent
(),
1299
Suffix = node.ValueSuffix?.
GetContent
() ?? string.Empty,
1368
contentFactory: static node => node.
GetContent
() ?? string.Empty,
1407
contentFactory: static node => node.
GetContent
(),
1412
AttributeName = node.Name.
GetContent
(),
1424
var name = node.Name.
GetContent
();
1503
contentFactory: static node => node.
GetContent
(),
1605
contentFactory: static node => node.
GetContent
(),
1736
var name = node.Name.
GetContent
();
1750
ValueContent = node.Value?.
GetContent
(),
1766
node.ValuePrefix?.LiteralTokens)).
GetContent
(),
1767
Suffix = node.ValueSuffix?.
GetContent
() ?? string.Empty,
1809
Prefix = prefix.
GetContent
(),
1810
Suffix = node.ValueSuffix?.
GetContent
() ?? string.Empty,
1847
contentFactory: static node => node.
GetContent
() ?? string.Empty,
1879
var name = node.Name.
GetContent
();
1884
Prefix = prefix.
GetContent
(),
1940
contentFactory: static node => node.
GetContent
() ?? string.Empty,
1988
contentFactory: static node => node.
GetContent
(),
2109
contentFactory: static node => node.
GetContent
(),
2242
contentFactory: static node => node.
GetContent
(),
Language\Legacy\CodeBlockEditHandler.cs (1)
84
if (target.
GetContent
().IndexOfAny(['{', '}', '@', '<', '*',], relativePosition, change.Span.Length) >= 0)
Language\Legacy\ImplicitExpressionEditHandler.cs (8)
90
lastChar = target.
GetContent
()[changeRelativePosition - 1];
136
target.
GetContent
().Last() == '.' &&
149
!string.IsNullOrEmpty(target.
GetContent
()) &&
150
target.
GetContent
().Last() == '.' &&
244
var deletionContent = target.
GetContent
().AsSpan(relativePosition, changeLength);
440
return string.IsNullOrWhiteSpace(target.
GetContent
().Substring(offset));
446
if (!AcceptTrailingDot && target.
GetContent
().LastOrDefault() == '.')
488
if (target.
GetContent
()[changeRelativePosition] == ')')
Language\Legacy\SpanEditHandler.cs (1)
114
var endOfFirstLine = target.
GetContent
().IndexOfAny(new char[] { (char)0x000d, (char)0x000a, (char)0x2028, (char)0x2029 });
Language\Legacy\TagHelperBlockRewriter.cs (10)
25
if (childSpan?.
GetContent
().EndsWith("/>", StringComparison.Ordinal) ?? false)
123
var literalContent = contentChild.
GetContent
();
147
var content = textLiteral.
GetContent
();
231
var result = CreateTryParseResult(attributeBlock.Name.
GetContent
(), tagHelpers, processedBoundAttributeNames);
269
var result = CreateTryParseResult(attributeBlock.Name.
GetContent
(), tagHelpers, processedBoundAttributeNames);
397
parameterName?.
GetContent
(),
453
parameterName?.
GetContent
(),
544
return tagHelperAttribute.Value?.
GetContent
();
548
return directiveAttribute.Value?.
GetContent
();
552
return attribute.Value?.
GetContent
();
Language\Legacy\TagHelperParseTreeRewriter.cs (4)
419
var minimizedAttribute = new KeyValuePair<string, string>(minimizedAttributeBlock.Name.
GetContent
(), string.Empty);
442
attributeValueBuilder.Append(literalValue.
GetContent
());
451
var attributeName = attributeBlock.Name.
GetContent
();
576
var content = child.
GetContent
();
Language\NamespaceComputer.cs (1)
253
_lastNamespaceName = @namespace.
GetContent
();
Language\RazorCodeDocumentExtensions.cs (3)
108
return csharpCode.
GetContent
()?.Trim();
149
var content = usingDirective.Body?.
GetContent
()?.Trim();
172
Debug.Assert(directive is RazorUsingDirectiveSyntax || directive.DirectiveBody.Keyword.
GetContent
() == SyntaxConstants.CSharp.AddTagHelperKeyword);
Language\SourceChange.cs (2)
64
return GetEditedContent(node.
GetContent
(), offset);
111
return node.
GetContent
().Substring(offset, Span.Length);
Language\Syntax\MarkupMinimizedTagHelperDirectiveAttributeSyntax.cs (4)
13
Transition.
GetContent
(),
14
Name.
GetContent
(),
15
Colon?.
GetContent
() ?? string.Empty,
16
ParameterName?.
GetContent
() ?? string.Empty);
Language\Syntax\MarkupTagHelperDirectiveAttributeSyntax.cs (4)
13
Transition.
GetContent
(),
14
Name.
GetContent
(),
15
Colon?.
GetContent
() ?? string.Empty,
16
ParameterName?.
GetContent
() ?? string.Empty);
Language\Syntax\SyntaxExtensions.cs (6)
14
return string.Format(CultureInfo.InvariantCulture, "{0} [{1}]", base.GetDebuggerDisplay(), this.
GetContent
());
22
return string.Format(CultureInfo.InvariantCulture, "{0} [{1}]", base.GetDebuggerDisplay(), this.
GetContent
());
30
return string.Format(CultureInfo.InvariantCulture, "{0} [{1}]", base.GetDebuggerDisplay(), this.
GetContent
());
38
return string.Format(CultureInfo.InvariantCulture, "{0} [{1}]", base.GetDebuggerDisplay(), this.
GetContent
());
46
return string.Format(CultureInfo.InvariantCulture, "{0} [{1}]", base.GetDebuggerDisplay(), this.
GetContent
());
54
return string.Format(CultureInfo.InvariantCulture, "{0} [{1}]", base.GetDebuggerDisplay(), this.
GetContent
());
Language\Syntax\SyntaxSerializer.cs (1)
91
WriteValue($"[{node.
GetContent
()}]");