Beispiel #1
0
 public void Execute(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode)
 {
     if (DocumentKinds.TryGetValue(codeDocument.Source.FilePath, out var kind))
     {
         codeDocument.SetInputDocumentKind(kind);
     }
 }
Beispiel #2
0
 public void Execute(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode)
 {
     codeDocument.SetInputDocumentKind(InputDocumentKind.Component);
 }