public static bool RequiresTypeGeneration(this Snippet snippet, string typeName) { if (snippet.HasTag(KnownTags.GenerateType) || snippet.HasTag(KnownTags.GenerateTypeTag(typeName))) { if (KnownTags.GenerateTypeTag(typeName) != KnownTags.GenerateVoidType || snippet.HasTag(KnownTags.GenerateVoidType)) { return(true); } } return(false); }
public static bool RequiresModifierGeneration(this Snippet snippet, string modifierName) { return(snippet.HasTag(KnownTags.GenerateAccessModifier) || snippet.HasTag(KnownTags.GenerateModifierTag(modifierName))); }