aboutsummaryrefslogblamecommitdiff
path: root/src/dotty/tools/dotc/config/Config.scala
blob: 906d173804e7bee65ca5d296679559f36474d823 (plain) (tree)
1
2
3
4
5
6
7
8
9



                               
                                    
                                  
                                  
                                   
                                      
 
                                          
 

                                            
                                              
 




                                                                          
                                        
 




                                                                   
 
                                         
 




                                                                                                


                                                            





                                                                           




                                                        
 
package dotty.tools.dotc.config

object Config {

  final val cacheMembersNamed = true
  final val cacheAsSeenFrom = true
  final val useFingerPrints = true
  final val cacheMemberNames = true
  final val cacheImplicitScopes = true

  final val checkCacheMembersNamed = false

  final val checkConstraintsNonCyclic = true

  final val flagInstantiationToNothing = false

  /** Enable noDoubleDef checking if option "-YnoDoubleDefs" is set.
    * The reason to have an option as well as the present global switch is
    * that the noDoubleDef checking is done in a hotspot, and we do not
    * want to incur the overhead of checking an option each time.
    */
  final val checkNoDoubleBindings = true

  /** Throw an exception if a deep subtype recursion is detected */
  final val flagDeepSubTypeRecursions = true

  /** Show subtype traces for all deep subtype recursions */
  final val traceDeepSubTypeRecursions = false

  final val verboseExplainSubtype = false

  /** When set, use new signature-based matching.
   *  Advantantage of doing so: It's supposed to be faster
   *  Disadvantage: It might hide inconsistencies, so while debugging it's better to turn it off
   */
  final val newMatch = false

  /** The recursion depth for showing a summarized string */
  final val summarizeDepth = 2

  /** Track dependencies for constraint propagation satisfiability checking
   *  If turned off, constraint checking is simpler but potentially slower
   *  for large constraints.
   */
  final val trackConstrDeps = true

  /** Check that variances of lambda arguments match the
   *  variance of the underlying lambda class.
   */
  final val checkLambdaVariance = false
}