示例#1
0
        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);
        }
示例#2
0
 public static bool RequiresModifierGeneration(this Snippet snippet, string modifierName)
 {
     return(snippet.HasTag(KnownTags.GenerateAccessModifier) ||
            snippet.HasTag(KnownTags.GenerateModifierTag(modifierName)));
 }