11 writes to Content
Microsoft.AspNetCore.Razor.Language.UnitTests (7)
Extensions\DesignTimeDirectiveTargetExtensionTest.cs (7)
49Content = "System.String", 90Content = "System.Collections.Generic", 131Content = "Foo", 172Content = "Value", 178Content = "\"Value\"", 230Content = "true", 270Content = "Value",
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (4)
397Content = node.GetContent(), 438Content = addTagHelperChunkGenerator.LookupText, 477Content = removeTagHelperChunkGenerator.LookupText, 516Content = tagHelperPrefixChunkGenerator.Prefix,
40 references to Content
Microsoft.AspNetCore.Razor.Language.UnitTests (3)
DefaultRazorIntermediateNodeLoweringPhaseTest.cs (3)
49Assert.Equal("\"hello\"", stringToken.Content); 87Assert.Equal("\"world\"", stringToken.Content); 126Assert.Equal("\"world\"", stringToken.Content);
Microsoft.AspNetCore.Razor.Test.Common (2)
Language\IntegrationTests\IntermediateNodeWriter.cs (1)
92WriteContentNode(node, node.Content);
Language\Intermediate\IntermediateNodeAssert.cs (1)
128Assert.Equal(expectedContent, token.Content);
Microsoft.CodeAnalysis.Razor.Compiler (35)
Language\Components\ComponentDocumentClassifierPass.cs (2)
122typeParameters.Add(new(name.Content, name.Source, constraints?.Content, constraints?.Source));
Language\Components\ComponentInjectDirectivePass.cs (4)
32var hasType = tokens.Length > 0 && !string.IsNullOrWhiteSpace(tokens[0].Content); 34var typeName = hasType ? tokens[0].Content : string.Empty; 37var hasMemberName = tokens.Length > 1 && !string.IsNullOrWhiteSpace(tokens[1].Content); 39var memberName = hasMemberName ? tokens[1].Content : null;
Language\Components\ComponentLayoutDirectivePass.cs (1)
39IntermediateNodeFactory.CSharpToken(token.Content, documentNode.Options.DesignTime ? null : token.Source),
Language\Components\ComponentPageDirectivePass.cs (2)
57if (routeToken is not { Content: ['"', '/', .., '"'] }) 64@namespace.Children.Insert(index++, new RouteAttributeExtensionNode(routeToken.Content) { Source = routeToken.Source });
Language\Components\ComponentRenderModeDirectivePass.cs (1)
71content: directiveToken.Content,
Language\Components\ComponentWhitespacePass.cs (1)
79var shouldPreserveWhitespaceContent = token?.Content;
Language\Extensions\AttributeDirectivePass.cs (1)
35node.Children.Add(IntermediateNodeFactory.CSharpToken(token.Content, token.Source));
Language\Extensions\DesignTimeDirectiveTargetExtension.cs (10)
69if (string.IsNullOrEmpty(node.Content)) 81.Write(node.Content) 97if (string.IsNullOrEmpty(node.Content)) 120.Write(node.Content) 135if (string.IsNullOrEmpty(node.Content)) 155.Write(node.Content) 185if (node.Content.StartsWith("\"", StringComparison.Ordinal)) 188context.CodeWriter.Write(node.Content); 195.Write(node.Content) 214context.CodeWriter.Write(node.Content);
Language\Extensions\ImplementsDirectivePass.cs (1)
34interfaces.Add(IntermediateNodeFactory.CSharpToken(token.Content, source));
Language\Extensions\InheritsDirectivePass.cs (1)
29@class.BaseType = new BaseTypeWithModel(token.Content, source);
Language\Extensions\SectionDirectivePass.cs (1)
25var sectionName = directive.Node.Tokens.FirstOrDefault()?.Content;
Language\Intermediate\DirectiveTokenIntermediateNode.cs (3)
25formatter.WriteContent(Content); 27formatter.WriteProperty(nameof(Content), Content);
Mvc.Version2_X\NamespaceDirective.cs (1)
87var baseNamespace = directive.Tokens.FirstOrDefault()?.Content;
Mvc\InjectDirective.cs (4)
71var hasType = tokens.Length > 0 && !string.IsNullOrWhiteSpace(tokens[0].Content); 73var typeName = hasType ? tokens[0].Content : string.Empty; 76var hasMemberName = tokens.Length > 1 && !string.IsNullOrWhiteSpace(tokens[1].Content); 78var memberName = hasMemberName ? tokens[1].Content : null;
Mvc\ModelDirective.cs (1)
59return IntermediateNodeFactory.CSharpToken(tokens[0].Content, tokens[0].Source);
Mvc\PageDirective.cs (1)
70routeTemplate = TrimQuotes(tokens[0].Content);