Example #1
0
        public void AddAbstractClass(ClassDeclarationSyntax syntax)
        {
            string className = syntax.Identifier.Text;

            if (AbstractClasses.ContainsKey(className))
            {
                throw new ArgumentException($"Abstract Class: {className} already exist.");
            }

            AbstractClasses.Add(className, syntax);
        }
Example #2
0
 public bool IsAbstractClass(string name) => AbstractClasses.ContainsKey(name);