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