Skip to content

Latest commit

 

History

History
16 lines (16 loc) · 970 Bytes

File metadata and controls

16 lines (16 loc) · 970 Bytes

Bookmarks

src/compiler/checker.ts

  • function getFlowTypeOfReference - gets flow type for node and declared type
  • function getFlowTypeOfAccessExpresion - gets flow type for access expression given prop and propType
  • function checkSourceElementWorker - Starts checker for each statement
  • function checkVariableLikeDeclaration
  • function checkElementAccessExpression
  • function checkExpressionWorker
  • function checkBinaryLikeExpressionWorker
  • function checkTypeofExpression
  • function getUnionOrIntersectionProperty - refer to when finding out how to get properties
  • function isEmptyAnonymousObjectType
  • function getCommonSubtype
  • function getCommonSupertype
  • function checkTypeRelatedTo - lots of code on how to compare types, especially structured types (arrays, objects)
  • function getBestMatchingType - gets the best type that matches out of a union or intersection. Use for reference on property access, find super types, etc