86 references to GetContent
Microsoft.CodeAnalysis.Razor.Compiler (86)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (41)
393
Content = node.
GetContent
(),
697
Prefix = node.Prefix?.
GetContent
() ?? string.Empty,
712
Prefix = node.Prefix?.
GetContent
() ?? string.Empty,
720
Prefix = node.Prefix?.
GetContent
() ?? string.Empty,
736
Prefix = node.Prefix?.
GetContent
() ?? string.Empty,
742
contentFactory: static node => node.Value?.
GetContent
() ?? string.Empty,
751
Prefix = node.Prefix?.
GetContent
() ?? string.Empty,
757
contentFactory: static node => node.Value?.
GetContent
() ?? string.Empty,
789
contentFactory: static node => node.
GetContent
(),
891
contentFactory: static item => item.
GetContent
(),
984
attributeBlock.Name.
GetContent
(),
985
attributeBlock.Value?.
GetContent
() ?? string.Empty));
990
minimizedAttr.Name.
GetContent
(), string.Empty));
1070
isSelfClosing = lastToken.Parent?.
GetContent
().EndsWith("/>", StringComparison.Ordinal) ?? false;
1160
var name = node.Name.
GetContent
();
1176
ValueContent = node.Value?.
GetContent
(),
1211
Prefix = prefix.
GetContent
(),
1212
Suffix = node.ValueSuffix?.
GetContent
() ?? string.Empty,
1274
Prefix = prefix.
GetContent
(),
1275
Suffix = node.ValueSuffix?.
GetContent
() ?? string.Empty,
1289
Prefix = prefix.
GetContent
(),
1290
Suffix = node.ValueSuffix?.
GetContent
() ?? string.Empty,
1359
contentFactory: static node => node.
GetContent
() ?? string.Empty,
1398
contentFactory: static node => node.
GetContent
(),
1403
AttributeName = node.Name.
GetContent
(),
1415
var name = node.Name.
GetContent
();
1494
contentFactory: static node => node.
GetContent
(),
1596
contentFactory: static node => node.
GetContent
(),
1718
var name = node.Name.
GetContent
();
1731
ValueContent = node.Value?.
GetContent
(),
1747
node.ValuePrefix?.LiteralTokens)).
GetContent
(),
1748
Suffix = node.ValueSuffix?.
GetContent
() ?? string.Empty,
1790
Prefix = prefix.
GetContent
(),
1791
Suffix = node.ValueSuffix?.
GetContent
() ?? string.Empty,
1828
contentFactory: static node => node.
GetContent
() ?? string.Empty,
1860
var name = node.Name.
GetContent
();
1865
Prefix = prefix.
GetContent
(),
1912
contentFactory: static node => node.
GetContent
() ?? string.Empty,
1960
contentFactory: static node => node.
GetContent
(),
2062
contentFactory: static node => node.
GetContent
(),
2169
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)
99
return csharpCode.
GetContent
()?.Trim();
140
var content = usingDirective.Body?.
GetContent
()?.Trim();
163
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
()}]");