示例#1
0
        /// <summary>
        /// Adds a type as a Visited type in order to track all the types that a class may include
        /// </summary>
        /// <param name="type"></param>
        /// <param name="name"></param>
        public static void AddVistedType(Ast.AstType type, string name)
        {
            if (!visitedTypes.ContainsValue(name) && !visitedTypes.ContainsKey(type))
            {
                visitedTypes.Add(type, name);
            }

            AddInclude(name);
        }
示例#2
0
 public static void AddPrivateImplementation(Ast.AstType type, MethodDeclaration method)
 {
     if (privateImplementations.ContainsKey(type))
     {
         privateImplementations[type].Add(method);
     }
     else
     {
         privateImplementations.Add(type, new List <MethodDeclaration>()
         {
             method
         });
     }
 }
 public InterfaceMemberSpecifier(AstType target, string member)
 {
     Target = new TypeReferenceExpression(target);
     Member = new Identifier(member, TextLocation.Empty);
 }