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