internal CompilationState(RoslynIntrospector introspector, HandlebarsTemplate template)
{
Introspector = introspector;
Template = template;
if (!(template is StaticHandlebarsTemplate))
{
INamedTypeSymbol modelSymbol = Template.ModelFullyQualifiedName.Evaluate(Introspector);
if (modelSymbol == null)
Errors.Add(new HandlebarsTypeError($"Could not find Type in ModelToken '{Template.ModelFullyQualifiedName}'!", HandlebarsTypeErrorKind.UnknownViewModel, 1, 1));
ContextStack.Push(new Context("viewModel", modelSymbol));
}
resultStack.Push(new List<StatementSyntax>());
}