Exemplo n.º 1
0
 public AccessViolationException(
     BCake.Parser.Token token,
     BCake.Parser.Syntax.Types.Type member,
     BCake.Parser.Syntax.Scopes.Scope sourceScope
     )
     : base($"Cannot access {member.Access} symbol \"{member.FullName}\" from current scope due to it's protection level", token)
 {
 }
 public DuplicateDeclarationException(
     BCake.Parser.Token token,
     BCake.Parser.Syntax.Types.Type member
     ) : base($"Duplicate declaration - the symbol \"{member.FullName}\" is already defined at {member.DefiningToken.FilePath}({member.DefiningToken.Line},{member.DefiningToken.Column})", token)
 {
 }
 public MissingTypeArgumentsException(Token token, Type symbol) : base(
         $"Illegal use of generic symbol - the symbol {symbol.FullName} was used without providing type arguments",
         token)
 {
 }