4 writes to Content
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (4)
397
Content
= node.GetContent(),
438
Content
= addTagHelperChunkGenerator.LookupText,
477
Content
= removeTagHelperChunkGenerator.LookupText,
516
Content
= tagHelperPrefixChunkGenerator.Prefix,
25 references to Content
Microsoft.CodeAnalysis.Razor.Compiler (25)
Language\Components\ComponentDocumentClassifierPass.cs (2)
122
typeParameters.Add(new(name.
Content
, name.Source, constraints?.
Content
, constraints?.Source));
Language\Components\ComponentInjectDirectivePass.cs (4)
32
var hasType = tokens.Length > 0 && !string.IsNullOrWhiteSpace(tokens[0].
Content
);
34
var typeName = hasType ? tokens[0].
Content
: string.Empty;
37
var hasMemberName = tokens.Length > 1 && !string.IsNullOrWhiteSpace(tokens[1].
Content
);
39
var memberName = hasMemberName ? tokens[1].
Content
: null;
Language\Components\ComponentLayoutDirectivePass.cs (1)
39
IntermediateNodeFactory.CSharpToken(token.
Content
, token.Source),
Language\Components\ComponentPageDirectivePass.cs (2)
57
if (routeToken is not {
Content
: ['"', '/', .., '"'] })
62
@namespace.Children.Insert(index++, new RouteAttributeExtensionNode(routeToken.
Content
) { Source = routeToken.Source });
Language\Components\ComponentRenderModeDirectivePass.cs (1)
71
content: directiveToken.
Content
,
Language\Components\ComponentWhitespacePass.cs (1)
73
var shouldPreserveWhitespaceContent = token?.
Content
;
Language\Extensions\AttributeDirectivePass.cs (1)
35
node.Children.Add(IntermediateNodeFactory.CSharpToken(token.
Content
, token.Source));
Language\Extensions\ImplementsDirectivePass.cs (1)
33
interfaces.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)
25
var sectionName = directive.Node.Tokens.FirstOrDefault()?.
Content
;
Language\Intermediate\DirectiveTokenIntermediateNode.cs (3)
25
formatter.WriteContent(
Content
);
27
formatter.WriteProperty(nameof(
Content
),
Content
);
Mvc.Version2_X\NamespaceDirective.cs (1)
87
var baseNamespace = directive.Tokens.FirstOrDefault()?.
Content
;
Mvc\InjectDirective.cs (4)
71
var hasType = tokens.Length > 0 && !string.IsNullOrWhiteSpace(tokens[0].
Content
);
73
var typeName = hasType ? tokens[0].
Content
: string.Empty;
76
var hasMemberName = tokens.Length > 1 && !string.IsNullOrWhiteSpace(tokens[1].
Content
);
78
var memberName = hasMemberName ? tokens[1].
Content
: null;
Mvc\ModelDirective.cs (1)
59
return IntermediateNodeFactory.CSharpToken(tokens[0].
Content
, tokens[0].Source);
Mvc\PageDirective.cs (1)
70
routeTemplate = TrimQuotes(tokens[0].
Content
);