Removed parentheses around arrow function parameters.
As per feedback in pull request #147.
This commit is contained in:
parent
c8fc26a20a
commit
0e10fc76b8
|
@ -4038,7 +4038,7 @@ module ts {
|
||||||
function checkAndAggregateReturnExpressionTypes(body: Block, contextualType?: Type, contextualMapper?: TypeMapper): Type[] {
|
function checkAndAggregateReturnExpressionTypes(body: Block, contextualType?: Type, contextualMapper?: TypeMapper): Type[] {
|
||||||
var aggregatedTypes: Type[] = [];
|
var aggregatedTypes: Type[] = [];
|
||||||
|
|
||||||
forEachReturnStatement(body, (returnStatement) => {
|
forEachReturnStatement(body, returnStatement => {
|
||||||
var expr = returnStatement.expression;
|
var expr = returnStatement.expression;
|
||||||
if (expr) {
|
if (expr) {
|
||||||
var type = checkAndMarkExpression(expr, contextualType, contextualMapper);
|
var type = checkAndMarkExpression(expr, contextualType, contextualMapper);
|
||||||
|
@ -4052,7 +4052,7 @@ module ts {
|
||||||
}
|
}
|
||||||
|
|
||||||
function bodyContainsAReturnStatement(funcBody: Block) {
|
function bodyContainsAReturnStatement(funcBody: Block) {
|
||||||
return forEachReturnStatement(funcBody, (returnStatement) => {
|
return forEachReturnStatement(funcBody, returnStatement => {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -5343,7 +5343,7 @@ module ts {
|
||||||
// for interfaces property and indexer might be inherited from different bases
|
// for interfaces property and indexer might be inherited from different bases
|
||||||
// check if any base class already has both property and indexer.
|
// check if any base class already has both property and indexer.
|
||||||
// check should be performed only if 'type' is the first type that brings property\indexer together
|
// check should be performed only if 'type' is the first type that brings property\indexer together
|
||||||
var someBaseClassHasBothPropertyAndIndexer = forEach((<InterfaceType>type).baseTypes, (base) => getPropertyOfType(base, prop.name) && getIndexTypeOfType(base, indexKind));
|
var someBaseClassHasBothPropertyAndIndexer = forEach((<InterfaceType>type).baseTypes, base => getPropertyOfType(base, prop.name) && getIndexTypeOfType(base, indexKind));
|
||||||
errorNode = someBaseClassHasBothPropertyAndIndexer ? undefined : type.symbol.declarations[0];
|
errorNode = someBaseClassHasBothPropertyAndIndexer ? undefined : type.symbol.declarations[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue