/// <nodoc /> public static bool IsTemplateDeclaration(this IDeclaration node) { var variableDeclaration = node.As <IVariableDeclaration>(); if (variableDeclaration == null) { return(false); } var id = variableDeclaration.Name.As <IIdentifier>(); return(id != null && id.Text == Names.Template); }