示例#1
0
 public TypeBoundary CreateTypeBoundary(FAMIX.ParameterType type)
 {
     FAMIX.TypeBoundary boundary = this.CreateNewEntity <FAMIX.TypeBoundary>(typeof(FAMIX.TypeBoundary).FullName);
     boundary.ParameterType = type;
     type.AddBoundary(boundary);
     return(boundary);
 }
示例#2
0
        public ParameterType EnsureParametrizedTypeInto(FAMIX.ParameterizableEntity parametrizableEntity, ITypeParameterSymbol typeParameterSymbol)
        {
            FAMIX.ParameterType parameter = (FAMIX.ParameterType) this.EnsureType(typeParameterSymbol);
            parameter.name = typeParameterSymbol.Name;
            if (typeParameterSymbol.TypeParameterKind != TypeParameterKind.Type && typeParameterSymbol.TypeParameterKind != TypeParameterKind.Method)
            {
                throw new System.Exception(" Unexpectd kind of type parameter! ");
            }

            parametrizableEntity.AddParameter(parameter);


            return(parameter);
        }
 public void AddParameter(FAMIX.ParameterType one)
 {
     parameters.Add(one);
 }