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