mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Rename certain parameters.
This commit is contained in:
@@ -2472,7 +2472,7 @@ module ts {
|
||||
|
||||
/// Classifier
|
||||
|
||||
export function createClassifier(host: Logger): Classifier {
|
||||
export function createClassifier(logger: Logger): Classifier {
|
||||
var scanner: TypeScript.Scanner.IScanner;
|
||||
var lastDiagnosticKey: string = null;
|
||||
var noRegexTable: boolean[];
|
||||
|
||||
+10
-10
@@ -734,9 +734,9 @@ module ts {
|
||||
class ClassifierShimObject extends ShimBase implements ClassifierShim {
|
||||
public classifier: Classifier;
|
||||
|
||||
constructor(factory: ShimFactory, public host: Logger) {
|
||||
constructor(factory: ShimFactory, public logger: Logger) {
|
||||
super(factory);
|
||||
this.classifier = createClassifier(this.host);
|
||||
this.classifier = createClassifier(this.logger);
|
||||
}
|
||||
|
||||
/// COLORIZATION
|
||||
@@ -754,12 +754,12 @@ module ts {
|
||||
}
|
||||
|
||||
class CoreServicesShimObject extends ShimBase implements CoreServicesShim {
|
||||
constructor(factory: ShimFactory, public host: Logger) {
|
||||
constructor(factory: ShimFactory, public logger: Logger) {
|
||||
super(factory);
|
||||
}
|
||||
|
||||
private forwardJSONCall(actionDescription: string, action: () => any): any {
|
||||
return forwardJSONCall(this.host, actionDescription, action);
|
||||
return forwardJSONCall(this.logger, actionDescription, action);
|
||||
}
|
||||
|
||||
///
|
||||
@@ -802,22 +802,22 @@ module ts {
|
||||
}
|
||||
}
|
||||
|
||||
public createClassifierShim(host: Logger): ClassifierShim {
|
||||
public createClassifierShim(logger: Logger): ClassifierShim {
|
||||
try {
|
||||
return new ClassifierShimObject(this, host);
|
||||
return new ClassifierShimObject(this, logger);
|
||||
}
|
||||
catch (err) {
|
||||
logInternalError(host, err);
|
||||
logInternalError(logger, err);
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
public createCoreServicesShim(host: Logger): CoreServicesShim {
|
||||
public createCoreServicesShim(logger: Logger): CoreServicesShim {
|
||||
try {
|
||||
return new CoreServicesShimObject(this, host);
|
||||
return new CoreServicesShimObject(this, logger);
|
||||
}
|
||||
catch (err) {
|
||||
logInternalError(host, err);
|
||||
logInternalError(logger, err);
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user