File tree Expand file tree Collapse file tree 3 files changed +124
-126
lines changed
Expand file tree Collapse file tree 3 files changed +124
-126
lines changed Original file line number Diff line number Diff line change @@ -401,16 +401,14 @@ export class TSHelper {
401401 return thisParameter . type && thisParameter . type . kind === ts . SyntaxKind . VoidKeyword
402402 ? ContextType . Void : ContextType . NonVoid ;
403403 }
404- if ( ( ts . isMethodDeclaration ( signatureDeclaration ) || ts . isMethodSignature ( signatureDeclaration ) )
405- && ! ( ts . getCombinedModifierFlags ( signatureDeclaration ) & ts . ModifierFlags . Static ) ) {
406- // Non-static method
404+ if ( ts . isMethodDeclaration ( signatureDeclaration ) || ts . isMethodSignature ( signatureDeclaration ) ) {
405+ // Method
407406 return ContextType . NonVoid ;
408407 }
409- if ( ( ts . isPropertySignature ( signatureDeclaration . parent )
410- || ts . isPropertyDeclaration ( signatureDeclaration . parent )
411- || ts . isPropertyAssignment ( signatureDeclaration . parent ) )
412- && ! ( ts . getCombinedModifierFlags ( signatureDeclaration . parent ) & ts . ModifierFlags . Static ) ) {
413- // Non-static lambda property
408+ if ( ts . isPropertySignature ( signatureDeclaration . parent )
409+ || ts . isPropertyDeclaration ( signatureDeclaration . parent )
410+ || ts . isPropertyAssignment ( signatureDeclaration . parent ) ) {
411+ // Lambda property
414412 return ContextType . NonVoid ;
415413 }
416414 if ( ts . isBinaryExpression ( signatureDeclaration . parent ) ) {
Original file line number Diff line number Diff line change 99end
1010function MergedClass .constructor (self )
1111end
12- function MergedClass .staticMethodA ()
12+ function MergedClass .staticMethodA (self )
1313end
14- function MergedClass .staticMethodB ()
15- self . staticMethodA ();
14+ function MergedClass .staticMethodB (self )
15+ self : staticMethodA ();
1616end
1717function MergedClass .methodA (self )
1818end
2929local mergedClass = MergedClass .new (true );
3030mergedClass :methodB ();
3131mergedClass :propertyFunc ();
32- MergedClass . staticMethodB ();
32+ MergedClass : staticMethodB ();
3333MergedClass .namespaceFunc ();
You can’t perform that action at this time.
0 commit comments