Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Unified Diff: lib/facade_converter.ts

Issue 2416003003: Update package name, update and lock clang-format and tslint versions, and format all source files … (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/declaration.ts ('k') | lib/main.ts » ('j') | package.json » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/facade_converter.ts
diff --git a/lib/facade_converter.ts b/lib/facade_converter.ts
index 7076599f36f29bec94e5009367ee8ed900d37eaf..73d544862bdcc258235ae1f94d2447437905240f 100644
--- a/lib/facade_converter.ts
+++ b/lib/facade_converter.ts
@@ -82,7 +82,9 @@ class DartNameRecord {
}
export class DartLibrary {
- constructor(private fileName: string) { this.usedNames = {}; }
+ constructor(private fileName: string) {
+ this.usedNames = {};
+ }
/**
* @returns {boolean} whether the name was added.
@@ -265,7 +267,9 @@ export class FacadeConverter extends base.TranspilerBase {
}
}
- setTypeChecker(tc: ts.TypeChecker) { this.tc = tc; }
+ setTypeChecker(tc: ts.TypeChecker) {
+ this.tc = tc;
+ }
pushTypeParameterNames(n: ts.FunctionLikeDeclaration) {
if (!n.typeParameters) return;
@@ -322,7 +326,9 @@ export class FacadeConverter extends base.TranspilerBase {
generateTypeList(types: ts.TypeNode[], options: TypeDisplayOptions, seperator = ','): string {
let that = this;
return types
- .map((type) => { return that.generateDartTypeName(type, addInsideTypeArgument(options)); })
+ .map((type) => {
+ return that.generateDartTypeName(type, addInsideTypeArgument(options));
+ })
.join(seperator);
}
@@ -714,7 +720,9 @@ export class FacadeConverter extends base.TranspilerBase {
// MergedType will also follow typed aliases, etc which allows us to avoid
// including that logic here as well.
let mergedType = new MergedType(this);
- types.forEach((type) => { mergedType.merge(type); });
+ types.forEach((type) => {
+ mergedType.merge(type);
+ });
return mergedType.toSimpleTypeNode();
}
« no previous file with comments | « lib/declaration.ts ('k') | lib/main.ts » ('j') | package.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698