4 writes to Content
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (4)
397Content = node.GetContent(), 438Content = addTagHelperChunkGenerator.LookupText, 477Content = removeTagHelperChunkGenerator.LookupText, 516Content = tagHelperPrefixChunkGenerator.Prefix,
25 references to Content
Microsoft.CodeAnalysis.Razor.Compiler (25)
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, token.Source),
Language\Components\ComponentPageDirectivePass.cs (2)
57if (routeToken is not { Content: ['"', '/', .., '"'] }) 62@namespace.Children.Insert(index++, new RouteAttributeExtensionNode(routeToken.Content) { Source = routeToken.Source });
Language\Components\ComponentRenderModeDirectivePass.cs (1)
71content: directiveToken.Content,
Language\Components\ComponentWhitespacePass.cs (1)
73var shouldPreserveWhitespaceContent = token?.Content;
Language\Extensions\AttributeDirectivePass.cs (1)
35node.Children.Add(IntermediateNodeFactory.CSharpToken(token.Content, token.Source));
Language\Extensions\ImplementsDirectivePass.cs (1)
33interfaces.Add(IntermediateNodeFactory.CSharpToken(token.Content, token.Source));
Language\Extensions\InheritsDirectivePass.cs (1)
28@class.BaseType = new BaseTypeWithModel(token.Content, token.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);