Git Product home page Git Product logo

polaris's People

Contributors

azurezyq avatar e7h4n avatar stepinto avatar youngapple avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

polaris's Issues

Cross reference support at UI

We may need to write a code highlight widget, since we need some special handling for context (popup) menu for identifiers. The ideal scenario is that a user clicks on a identifier, the menu shows options like "Go to defination", "Find usages".

segmentation on symbols is needed

should using segmentation technique to analyze and index long symbols
for example
ArrayList -> [array, list]
Filesystem->[file, system]

maybe a ChineseAnalyzer with a custom english dict will work

Browsing history

Provides a window like PS's undo/redo window that help user to navigate back and forth.

Handle comments in code snippet

The syntax highlight widget cannot handle a code snippet that cut from the middle of a comment block. We need to do something special to handle this.

Support UTF-8 source code

We don't support non-ASCII chars in source code yet. The reason is that all line/cols produced by JavaParser are the raw offset, but we use unicode internally when analyzing files. This creates a mismatch. Since unicode content may be shorter than UTF-8 ones, it may leads to ArrayIndexOutOfBoundsException.

The current walkaround is refusing to analyze any non-ASCII sources, since there should not be that many.

Support UTF-8 source code

We don't support non-ASCII chars in source code yet. The reason is that all line/cols produced by JavaParser are the raw offset, but we use unicode internally when analyzing files. This creates a mismatch. Since unicode content may be shorter than UTF-8 ones, it may leads to ArrayIndexOutOfBoundsException.

The current walkaround is refusing to analyze any non-ASCII sources, since there should not be that many.

Handle inner class

Parser needs to handle inner class correctly. Currently String is resolved to a private class T6722234c.String.

Refactor parser

The current parser only produces a list of token, which is going to indexed. I would like to refactor it so that it also generates a list of java types with fields/methods. Tokens are also used for annotation of the source code and does not need to indexed directly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.