11 writes to Content
Microsoft.AspNetCore.Razor.Language.UnitTests (7)
Extensions\DesignTimeDirectiveTargetExtensionTest.cs (7)
49
Content
= "System.String",
90
Content
= "System.Collections.Generic",
131
Content
= "Foo",
172
Content
= "Value",
178
Content
= "\"Value\"",
230
Content
= "true",
270
Content
= "Value",
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,
40 references to Content
Microsoft.AspNetCore.Razor.Language.UnitTests (3)
DefaultRazorIntermediateNodeLoweringPhaseTest.cs (3)
49
Assert.Equal("\"hello\"", stringToken.
Content
);
87
Assert.Equal("\"world\"", stringToken.
Content
);
126
Assert.Equal("\"world\"", stringToken.
Content
);
Microsoft.AspNetCore.Razor.Test.Common (2)
Language\IntegrationTests\IntermediateNodeWriter.cs (1)
92
WriteContentNode(node, node.
Content
);
Language\Intermediate\IntermediateNodeAssert.cs (1)
128
Assert.Equal(expectedContent, token.
Content
);
Microsoft.CodeAnalysis.Razor.Compiler (35)
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
, documentNode.Options.DesignTime ? null : token.Source),
Language\Components\ComponentPageDirectivePass.cs (2)
57
if (routeToken is not {
Content
: ['"', '/', .., '"'] })
64
@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)
79
var shouldPreserveWhitespaceContent = token?.
Content
;
Language\Extensions\AttributeDirectivePass.cs (1)
35
node.Children.Add(IntermediateNodeFactory.CSharpToken(token.
Content
, token.Source));
Language\Extensions\DesignTimeDirectiveTargetExtension.cs (10)
69
if (string.IsNullOrEmpty(node.
Content
))
81
.Write(node.
Content
)
97
if (string.IsNullOrEmpty(node.
Content
))
120
.Write(node.
Content
)
135
if (string.IsNullOrEmpty(node.
Content
))
155
.Write(node.
Content
)
185
if (node.
Content
.StartsWith("\"", StringComparison.Ordinal))
188
context.CodeWriter.Write(node.
Content
);
195
.Write(node.
Content
)
214
context.CodeWriter.Write(node.
Content
);
Language\Extensions\ImplementsDirectivePass.cs (1)
34
interfaces.Add(IntermediateNodeFactory.CSharpToken(token.
Content
, source));
Language\Extensions\InheritsDirectivePass.cs (1)
29
@class.BaseType = new BaseTypeWithModel(token.
Content
, 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
);