87 references to GetContent
Microsoft.CodeAnalysis.Razor.Compiler (87)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (42)
385Content = content?.GetContent() ?? string.Empty, 411Content = node.GetContent(), 724Prefix = node.Prefix?.GetContent() ?? string.Empty, 739Prefix = node.Prefix?.GetContent() ?? string.Empty, 747Prefix = node.Prefix?.GetContent() ?? string.Empty, 763Prefix = node.Prefix?.GetContent() ?? string.Empty, 769contentFactory: static node => node.Value?.GetContent() ?? string.Empty, 778Prefix = node.Prefix?.GetContent() ?? string.Empty, 784contentFactory: static node => node.Value?.GetContent() ?? string.Empty, 816contentFactory: static node => node.GetContent(), 918contentFactory: static item => item.GetContent(), 1011attributeBlock.Name.GetContent(), 1012attributeBlock.Value?.GetContent() ?? string.Empty)); 1017minimizedAttr.Name.GetContent(), string.Empty)); 1097isSelfClosing = lastToken.Parent?.GetContent().EndsWith("/>", StringComparison.Ordinal) ?? false; 1187var name = node.Name.GetContent(); 1203ValueContent = node.Value?.GetContent(), 1238Prefix = prefix.GetContent(), 1239Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1301Prefix = prefix.GetContent(), 1302Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1316Prefix = prefix.GetContent(), 1317Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1386contentFactory: static node => node.GetContent() ?? string.Empty, 1425contentFactory: static node => node.GetContent(), 1430AttributeName = node.Name.GetContent(), 1442var name = node.Name.GetContent(); 1521contentFactory: static node => node.GetContent(), 1623contentFactory: static node => node.GetContent(), 1754var name = node.Name.GetContent(); 1768ValueContent = node.Value?.GetContent(), 1784node.ValuePrefix?.LiteralTokens)).GetContent(), 1785Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1827Prefix = prefix.GetContent(), 1828Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1865contentFactory: static node => node.GetContent() ?? string.Empty, 1897var name = node.Name.GetContent(); 1902Prefix = prefix.GetContent(), 1958contentFactory: static node => node.GetContent() ?? string.Empty, 2006contentFactory: static node => node.GetContent(), 2127contentFactory: static node => node.GetContent(), 2260contentFactory: 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)
95WriteValue($"[{node.GetContent()}]");