Exemplo n.º 1
0
 public void IncorrectTypeArgsCount(ICodeTypeInitializer fallback)
 {
     // Add the error.
     if (fallback.GenericsCount == 0)
     {
         AddError("The type '" + fallback.Name + "' cannot be used with type arguments", _context.Identifier.Range);
     }
     else
     {
         AddError("Type type '" + fallback.Name + "' requires " + fallback.GenericsCount + " type arguments", _context.Identifier.Range);
     }
 }
 public void AddType(ICodeTypeInitializer initializer) => AllTypes.Add(initializer);