Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta issue on things to parse #15

Open
jecisc opened this issue Sep 11, 2024 · 0 comments
Open

Meta issue on things to parse #15

jecisc opened this issue Sep 11, 2024 · 0 comments

Comments

@jecisc
Copy link
Member

jecisc commented Sep 11, 2024

I'll use this issue as a todo list. Was is checked are things with a test in project1

  • Split visitor into two. One to create entities and one to do the resolution
  • Error handling to not stop the import
  • Skippable #tryToResolveInScope
  • Manage private entities
  • Heritage multiple
  • Model
    • Name
    • Root folder
    • Source language
  • Source anchor
    • Start/end
    • Complete text
    • Root folder
  • Packages
    • Name
    • Source anchor
    • Root
    • Subpackages
    • Stubs (from imports)
    • Two stubs of the same name
  • Namespace packages
  • Modules
    • Name
    • Module at Root
    • Module in package
    • Source anchor
    • 2 modules of the same name in different packages
  • Comments
    • In modules
    • In packages
    • In classes
    • In methods
    • In functions
    • In lambdas
    • Before classes
    • Before functions
    • Before methods
    • Before variables
    • Source anchor
  • Imports
    • Ensure we have no nil source/target
    • Imports that are not at the beginning of the container
    • Clean duplication between the two import resolution classes
    • Refactor visit code of the imports that is currently not so clean
    • Have two imports identical should still produce two imports
    • Source anchor
    • Test import of a sub package that has the same name as a class contained in the same package
    • See if stub packages should be UnkownImportedEntities
    • Import shadowing other entities with aliases
    • Classic import
      • Manage absolute paths
      • Import packages
      • Import modules
      • From package
      • From Module
      • From methods
      • From classes
      • From functions
      • Stubs
      • Two stubs of the same name produce only one stub
      • Spaces in the middle of the imports
      • Alias
    • Import from
      • Test import two entities with the same name (the last one declared win)
      • Test with space after the dot
      • Manage relative paths
      • Manage absolute paths
      • Import packages
      • Import modules
      • Import Class
      • Import functions
      • Import variables
      • From package
      • From Module
      • From methods
      • From classes
      • From functions
      • Stubs
      • Multiple Items
      • Subs with relative imports (. and ..)
      • Alias
    • ImportLib/__import__
      • Manage relative paths
      • Manage absolute paths
      • Import packages
      • Import modules
      • Import Class
      • Import functions
      • Import variables
      • From package
      • From Module
      • From methods
      • From classes
      • From functions
      • Stubs
  • Functions
    • Name
    • Stub
    • In module
    • In Package
    • In Function
    • Source anchor
    • Singature
    • Two functions with the same name but different parameters
    • Two functions with the same name but different parents
    • A function shadowing another function in the same parent of the same name
    • Two stubs of the same name
  • Local variables in Functions
    • Name
    • Source Anchor
    • Multiple assignations creates only one var
    • Two local variables with the same name but different parents
    • Assignation of multiple variables
    • Tuple assignations
  • Methods
    • Name
    • Parent
    • Signature
    • Constructor
    • Getters and Setters
    • Getters and Setters using @Property
    • Anchor
    • Stub
    • CC
    • Two methods with the same name but different parameters
    • Two methods with the same name but different parents
    • Two stubs of the same name
    • Shadowed methods
  • Local variables in Methods
    • Name
    • Source Anchor
    • Multiple assignations creates only one var
    • Two local variables with the same name but different parents
    • Assignation of multiple variables
    • Tuple assignations
  • Classes
    • Name
    • In package
    • In module
    • In function
    • In method?
    • In class?
    • Stub
    • Exceptions
    • Superclasses
    • Superclass when not defined
    • Metaclasses
    • Classes in functions
    • Two classes with the same name but different parents
    • Shadowed classes
    • Two stubs of the same name
  • Instance variables
    • In init
    • Not in init
    • Defined outside the class ?? Question for Anne and Nicolas
    • Only first assignation creates ivar
    • stub
    • Two stubs of the same name
    • source anchor
    • name
    • Two instance variables with the same name but different parents
    • Multiple assignations creates only one var
    • Assignation of multiple variables
    • Tuple assignations
  • Class variables
    • stub
    • Two stubs of the same name
    • At the beginning
    • In the middle
    • Defined outside the class ?? Question for Anne and Nicolas
    • Only first assignation creates cvar
    • source anchor
    • name
    • Two class variables with the same name but different parents
    • Multiple assignations creates only one var
    • Assignation of multiple variables
    • Tuple assignations
  • Parameters
    • Two parameters with the same name but different parents
    • default value
    • Manage * (tagging parameters after that like to be explicitly named)
    • Manage / or \ (to check)
    • Manage variadic parameters
    • Manage *_
  • Global Variables
    • Name
    • Source anchor
    • Two global variables with the same name but different parents
    • Assignation of multiple variables
    • Multiple assignations creates only one var
    • Tuple assignations
    • Test that if a global get shadowed, we create a new one if we assign it again
  • Decorators
  • Accesses
    • Simple
    • Source anchor
    • In inner functions
    • Check if we can have embeded assignations (x = y = 2)
    • Entity that got shadowed
    • From import
    • From import with Alias
    • With a shadowed entity checking the right one is selected
    • Do not take into account shadowed imports
    • Stub
    • Ensure we have no nil source/target
    • Default values of parameters?
    • Write access with a tuple in the assignation
    • Write access that is not the first writing
    • Read
      • From package
      • From module
      • From function
      • From lambda
      • From Class
      • From method
      • To global
      • To ivar
      • To cvar
      • To local var
    • Write
      • From package
      • From module
      • From function
      • From lambda
      • From Class
      • From method
      • To global
      • To ivar
      • To cvar
      • To local var
  • Invocations
    • Entity that got shadowed
    • From import
    • From import with Alias
    • With a shadowed entity checking the right one is selected
    • Do not take into account shadowed imports
    • Stub
    • Ensure we have no nil source/target
  • References
    • Entity that got shadowed
    • From import
    • From import with Alias
    • With a shadowed entity checking the right one is selected
    • Do not take into account shadowed imports
    • Stub
    • Ensure we have no nil source/target
  • Inheritance
    • Entity that got shadowed
    • Subclass
    • Superclass
    • From import
    • From import with Alias
    • With a shadowed entity checking the right one is selected
    • Do not take into account shadowed imports
    • Stub
    • Ensure we have no nil source/target
  • Primitive types
  • Manage "global" keyword
  • Manage "nonlocal" keyword
  • Structures
  • Variables with a star? Pointer? Please no
  • Tuples assignations
  • Lambdas
    • Lambda in lambda
    • Signature
    • Parameters
    • Lambda in classes
    • Lambda in Modules
    • Lambda in Packages
    • Lambda in functions
    • Lambda in methods
    • Lambda in lambdas
    • Source anchor
  • Generic types
  • Shadowing
    • Function shadowing function
    • Class shadowing class
    • Import shadowing import
    • Import alias shadowing import alias
    • Method shadowing method
    • Temporary shadowing temporary
    • Class variable shadowing class variable
    • Function shadowing class
    • Function shadowing global
    • Function shadowing import
    • Function shadowing import alias
    • Function shadowing method
    • Function shadowing temporary
    • Function shadowing class variable
    • Class shadowing function
    • Class shadowing global
    • Class shadowing import
    • Class shadowing import alias
    • Class shadowing method
    • Class shadowing temporary
    • Class shadowing class variable
    • Global shadowing import
    • Global shadowing import alias
    • Global shadowing method
    • Global shadowing temporary
    • Global shadowing class variable
    • Import shadowing import alias
    • Import shadowing method
    • Import shadowing temporary
    • Import shadowing class variable
    • Import alias shadowing method
    • Import alias shadowing temporary
    • Import alias shadowing class variable
    • Method shadowing temporary
    • Method shadowing class variable
    • Temporary shadowing class variable
  • Manage Assignment expression

I'll add thing little by little

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant