<commit_before>/*
 * Copyright 2005-2008 LAMP/EPFL
 * @author <NAME>
 */
// $Id$
  
package scala.tools.editor

import scala.tools.nsc
import nsc.{util,io} 
import scala.collection.jcl._
 
trait Typers extends Parsers with lampion.compiler.Typers {
  final override type TypeInfo = List[compiler.Tree]

  import scala.tools.nsc.reporters.Reporter
  class CompilerReporter extends Reporter { // to use with global
    protected def info0(pos : util.Position, msg : String, severity : Severity, force : Boolean) : Unit = pos match {
    case pos : IdentifierPositionImpl if pos.isValid && pos.owner != null => 
      pos.owner.typeError(pos, msg, severity == WARNING)
    case pos => 
      logError("error with bad pos(" + pos + "): " + msg, null)
    }
   
  }
  override val compiler : Compiler
  trait Compiler extends scala.tools.nsc.IdeSupport with super.Compiler {self : compiler.type =>
    override def finishTyping = {
      super.finishTyping
      analyzer0.finishTyping
    }
    override def currentClient : ScopeClient = 
      (currentTyped).getOrElse(super.currentClient)
    override def check(condition : Boolean, msg : =>String) = {
      if (!condition) { 
        Typers.this.logError(msg, null)
      }<commit_msg>piping errors with no positions in presentation compiler from error log to console  <commit_after>/*
 * Copyright 2005-2008 LAMP/EPFL
 * @author <NAME>
 */
// $Id$
  
package scala.tools.editor

import scala.tools.nsc
import nsc.{util,io} 
import scala.collection.jcl._
 
trait Typers extends Parsers with lampion.compiler.Typers {
  final override type TypeInfo = List[compiler.Tree]

  import scala.tools.nsc.reporters.Reporter
  class CompilerReporter extends Reporter { // to use with global
    protected def info0(pos : util.Position, msg : String, severity : Severity, force : Boolean) : Unit = pos match {
    case pos : IdentifierPositionImpl if pos.isValid && pos.owner != null => 
      pos.owner.typeError(pos, msg, severity == WARNING)
    case pos => 
      Console.println("error with bad pos(" + pos + "): " + msg)
    }
   
  }
  override val compiler : Compiler
  trait Compiler extends scala.tools.nsc.IdeSupport with super.Compiler {self : compiler.type =>
    override def finishTyping = {
      super.finishTyping
      analyzer0.finishTyping
    }
    override def currentClient : ScopeClient = 
      (currentTyped).getOrElse(super.currentClient)
    override def check(condition : Boolean, msg : =>String) = {
      if (!condition) { 
        Typers.this.logError(msg, null)
      }
{'fraction_non_alphanumeric': 0.1038552321007081, 'fraction_numerical': 0.007867820613690008, 'mean_word_length': 3.217247097844113, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6942221', 'n_tokens_mistral': 795, 'n_tokens_neox': 762, 'n_words': 214}