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); }
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); }