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