Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
b536c8f
Separating source directories
LuizZak Dec 18, 2021
f2f10a8
Moving GlobalsProviders to Objective-C frontend
LuizZak Dec 18, 2021
f157a43
Marking Objective-C-specific declarations
LuizZak Dec 19, 2021
95403e9
Moving Objective-C-related conversion code to ObjectiveCFrontend
LuizZak Dec 19, 2021
e39a822
Updating Architecture.md
LuizZak Dec 19, 2021
b24d8f9
Fixing target dependencies
LuizZak Dec 20, 2021
d39a7f9
Splitting GrammarModels target into a GrammarModelBase
LuizZak Dec 20, 2021
48a4b12
Adding JS parser files
LuizZak Dec 20, 2021
2a9b571
Splitting GrammarModels target into a GrammarModelBase
LuizZak Dec 20, 2021
989704b
Renaming GrammarModels target to ObjcGrammarModels
LuizZak Dec 20, 2021
ddb5fbc
Fixing import of ObjcGrammarModels in tests
LuizZak Dec 20, 2021
711df8e
Moving ASTNode and related declarations to GrammarModelBase
LuizZak Dec 20, 2021
a613a13
Moving CodeComment reference to ASTNode
LuizZak Dec 20, 2021
ad31c66
Adding Objc- prefix to Objective-C-related declarations
LuizZak Dec 20, 2021
5c08866
Merge branch 'frontend-split' into js-frontend
LuizZak Dec 20, 2021
d01b906
Adding base JsParser class
LuizZak Dec 20, 2021
d26dec1
Renaming Identifier -> ObjcIdentifierNode
LuizZak Dec 20, 2021
6942a7c
Separating ObjcKeywordNode and UnknownNode into distinct files
LuizZak Dec 20, 2021
701f058
Renaming more Objective-C AST symbols
LuizZak Dec 20, 2021
cbd761a
Merge branch 'frontend-split' into js-frontend
LuizZak Dec 20, 2021
d0d045c
Adding base node types for JavaScript frontend
LuizZak Dec 21, 2021
3dc442f
Regenerating .xcodeproj
LuizZak Dec 21, 2021
d8a1576
Moving Source- members to Utils
LuizZak Dec 21, 2021
86f81c9
Adding more JavaScript test fixtures
LuizZak Dec 21, 2021
0bb311b
Adding shim file to quickly switch between Antlr declaration styles
LuizZak Dec 21, 2021
462567c
Updating Antlr dependency
LuizZak Dec 21, 2021
646ba3f
Adding basic JavaScript parse listener
LuizZak Dec 21, 2021
f6483ce
Regenerating .xcodeproj
LuizZak Dec 22, 2021
82a8593
Adding JsVariableDeclaration node
LuizZak Dec 22, 2021
f2e6b84
Formatting code
LuizZak Dec 22, 2021
27ddb39
Formatting test code
LuizZak Dec 22, 2021
1f28494
Merge branch 'frontend-split' into js-frontend
LuizZak Dec 22, 2021
ecc3199
Formatting test code
LuizZak Dec 22, 2021
9d9117d
Moving CommentQuerier to GrammarModelBase
LuizZak Dec 22, 2021
263defe
Adding base JavaScriptFrontend target
LuizZak Dec 23, 2021
c370a51
Adding initial JavaScript AST creation
LuizZak Dec 24, 2021
0414330
[JavaScript] Adding support for variable declaration statements
LuizZak Dec 24, 2021
6c6c9fe
[JavaScript] Implementing statement conversion
LuizZak Dec 24, 2021
2688360
Fixing serialization of TypeCheckExpression
LuizZak Dec 24, 2021
f65fcde
Creating abstraction on top of OperationQueue for ease of debug later
LuizZak Dec 24, 2021
03e98c2
Fixing build issues in macOS
LuizZak Dec 24, 2021
86a720b
[JavaScript] Fixing crash due to JsParser not holding weak memory ref…
LuizZak Dec 25, 2021
1fbdeb9
Hooking up JavaScript frontend to CLI
LuizZak Dec 25, 2021
86a4c7e
Adding command abstract
LuizZak Dec 25, 2021
a4acf27
Fixing source of potential parsing crashes
LuizZak Dec 25, 2021
4bd1acf
Adding unit tests for StringCodeSource and InvalidSource
LuizZak Dec 25, 2021
0c456ee
Updating azure-pipelines.yml
LuizZak Dec 25, 2021
06b5da3
Updating azure-pipelines.yml
LuizZak Dec 25, 2021
44b95e0
Updating azure-pipelines.yml
LuizZak Dec 25, 2021
a4128d0
Updating azure-pipelines.yml
LuizZak Dec 25, 2021
da47dab
Updating codecov.yml
LuizZak Dec 25, 2021
4d0805b
Merge branch 'frontend-split' into js-frontend
LuizZak Dec 25, 2021
9a11c9b
Updating codecov.yml
LuizZak Dec 25, 2021
6c58682
Updating Console dependency
LuizZak Dec 25, 2021
39f5882
Merge branch 'frontend-split' into js-frontend
LuizZak Dec 25, 2021
c3ab97c
Updating Package.resolved
LuizZak Dec 25, 2021
1dd9ae0
Adding terminal color output support back
LuizZak Dec 26, 2021
5951134
[JavaScript] Making type signatures be emitted by default
LuizZak Dec 26, 2021
e05a0ab
Adding support for tuple-unrolling in ASTSimplifier
LuizZak Dec 26, 2021
da7af54
Adding support for SwiftFormat
LuizZak Dec 26, 2021
efac142
Using ConcurrentOperationQueue in SwiftWriter
LuizZak Dec 26, 2021
c3d4361
Merge branch 'master' into js-frontend
LuizZak Dec 26, 2021
ba4a1e9
[JavaScript] Adding support for global variables and class property p…
LuizZak Dec 27, 2021
76916fa
Updating azure-pipelines.yml
LuizZak Dec 27, 2021
af30378
Updating azure-pipelines.yml
LuizZak Dec 27, 2021
60da66c
Updating azure-pipelines.yml
LuizZak Dec 27, 2021
05011fa
Using URLs for representing file paths and moving CLI-related code to…
LuizZak Dec 27, 2021
0127b43
Tweaking the way unknown statement syntax is generated
LuizZak Dec 29, 2021
af3f822
Renaming CodeComment to RawCodeComment
LuizZak Dec 29, 2021
ec1bcb6
Removing OS-specific configuration from workspace
LuizZak Dec 29, 2021
f462585
Updating .code-workspace
LuizZak Dec 30, 2021
224950a
Adding support for local function declarations in function bodies
LuizZak Dec 31, 2021
41cac22
Adding chained assignment splitting to AST corrector expression pass
LuizZak Dec 31, 2021
20671f9
Allowing chained member access on lhs of chained assignment split in …
LuizZak Dec 31, 2021
96539fa
Making FunctionBodyQueue visit variable and property initializers
LuizZak Dec 31, 2021
8b2fd50
[JavaScript] Fixing static method parsing
LuizZak Dec 31, 2021
8bc5582
[JavaScript] Creating stub JavaScriptObject class intention
LuizZak Jan 1, 2022
01a0b7a
[JavaScript] Piping JavaScriptObject emission settings to AST readers
LuizZak Jan 1, 2022
dd59bbd
[JavaScript] Piping JavaScriptObject to main rewriter frontend
LuizZak Jan 2, 2022
604b0d5
Adding unit tests for DirectedGraph
LuizZak Jan 2, 2022
933a444
Adding intention pass that removes return types of functions that hav…
LuizZak Jan 2, 2022
1197287
Moving responsibility for the specification of passes to the rewriter…
LuizZak Jan 2, 2022
e3158c9
Creating a type propagator to handle __auto_type in Objective-C and J…
LuizZak Jan 3, 2022
e1b5418
Enabling type propagation in JavaScript frontend and fixing type reso…
LuizZak Jan 3, 2022
85728ef
Enabling delayed assignment type propagation in DefinitionTypePropagator
LuizZak Jan 3, 2022
1a3c719
[JavaScript] Correctly detecting <var> || <defaultValue> pattern as n…
LuizZak Jan 4, 2022
fdd4039
Using ExpressionPassTestCase from TestCommons for all expression pass…
LuizZak Jan 4, 2022
9755077
Refactoring expression pass assertion and fixing a pass notification …
LuizZak Jan 4, 2022
6208789
[JavaScript] Detecting type constructors
LuizZak Jan 4, 2022
fc85f14
Adding intention pass to detect class properties based on self. assig…
LuizZak Jan 4, 2022
926cd10
[JavaScript] Fixing JavaScriptObject declaration to include a initial…
LuizZak Jan 4, 2022
cbb4176
[JavaScript] Adding support for object literal property shorthand syntax
LuizZak Jan 4, 2022
91ba358
Adding throw statement AST representation
LuizZak Jan 4, 2022
e109dba
Fixing build issue on macOS
LuizZak Jan 4, 2022
e964be6
[JavaScript] Adding support for throw statement and fixing for-in emi…
LuizZak Jan 5, 2022
ac0c510
Refactoring expression/statement AST visiting in SwiftSyntaxProducer
LuizZak Jan 5, 2022
04ca167
Adding support for Throw statements in SyntaxNodeIterator
LuizZak Jan 5, 2022
0567372
Adding support for catch blocks in do statements
LuizZak Jan 5, 2022
4520f1d
Adding support for do-catch error flow to ControlFlowGraph
LuizZak Jan 5, 2022
51ac7b0
Ensuring catch blocks in do statements are type checked and behave co…
LuizZak Jan 5, 2022
2bf1775
Starting refactor of CFG code
LuizZak Jan 6, 2022
7010b44
Refactoring CFG code to expose expression control flow and exposing b…
LuizZak Jan 9, 2022
8376e22
Fixing unit test
LuizZak Jan 9, 2022
1e191d9
Fixing break/continue on labeled loops
LuizZak Jan 9, 2022
192f7ae
Fixing issues with break statements in CFG
LuizZak Jan 9, 2022
9d039f0
Tagging syntax nodes that can appear in a CFG with a protocol
LuizZak Jan 9, 2022
07f1c24
Exposing throw and return expressions in CFG
LuizZak Jan 9, 2022
3fd4c7d
Using ExpressionKind and StatementKind for serialization
LuizZak Jan 9, 2022
0881996
Reorganizing file structure in Sources/Analysis
LuizZak Jan 9, 2022
1536215
Using control flow analysis in DefinitionTypePropagator
LuizZak Jan 10, 2022
14ec6b8
Refactoring CFG generation once again
LuizZak Jan 13, 2022
6aa9558
Fixing CFG of unwinding defers on alternate paths
LuizZak Jan 14, 2022
18b4980
Adding support for try expressions and supporting signaling function …
LuizZak Jan 14, 2022
0b6c98a
Adding CFG creation method that returns CFG objects with optional acc…
LuizZak Jan 14, 2022
7a8afe5
Adding CompoundStatement to CFG
LuizZak Jan 14, 2022
0a05a90
[JavaScript] Making sure that reference to method names don't result …
LuizZak Jan 15, 2022
7570869
Fixing 'self' reference to 'this' in JavaScript unit tests
LuizZak Jan 15, 2022
59f8382
Adding support for parameter type propagation
LuizZak Jan 16, 2022
144ae2b
Adding caching to type propagation attempts to avoid infinite cycles …
LuizZak Jan 16, 2022
0bdad7f
[JavaScript] Making type deduction an optional step of the rewriter
LuizZak Jan 17, 2022
61d1680
Adding delegate to DefinitionTypePropagator
LuizZak Jan 17, 2022
b630237
Fixing DefinitionTypePropagator to not consider mutations of definiti…
LuizZak Jan 17, 2022
70eed61
Fixing DefinitionTypePropagator assigning entries for non-parameter l…
LuizZak Jan 17, 2022
c6e03ef
Splitting a base directed graph class for ControlFlowGraph
LuizZak Jan 18, 2022
456908e
[JavaScript] Fixing crash in AST reader
LuizZak Mar 19, 2022
266d13b
Reorganizing and adding visitor for Intention classes
LuizZak Mar 19, 2022
042e906
Implement dummy CallGraph.fromIntentions()
LuizZak Sep 25, 2022
b66dc98
Merge branch 'master' into js-frontend
LuizZak Sep 28, 2022
c6cf67f
Increasing minimum macOS version and updating code coverage range
LuizZak Sep 28, 2022
3c5bcc0
Updating azure-pipelines.yml
LuizZak Sep 28, 2022
b028df0
Attempting to fix build in macOS
LuizZak Sep 28, 2022
b151211
Rearranging folders
LuizZak Sep 29, 2022
84e6ed6
Disabling launch config auto generation for Swift
LuizZak Sep 29, 2022
5d6b7cc
Updating .code-workspace settings
LuizZak Sep 29, 2022
d941911
Updating .code-workspace settings
LuizZak Sep 29, 2022
fd9aa09
Merge branch 'master' into js-frontend
LuizZak Sep 29, 2022
40bb514
[GrammarTransformer] Splitting StringMatcher into a separate file
LuizZak Sep 29, 2022
66ae70f
Fixing DirectedGraph.depthFirstSearch
LuizZak Sep 29, 2022
8370246
Merge branch 'master' into js-frontend
LuizZak Oct 3, 2022
a48eeaf
Fixing build
LuizZak Oct 3, 2022
91ae908
Updating README.md
LuizZak Oct 3, 2022
d4b0f29
[TypeResolver] Making function overload detection properly update Ide…
LuizZak Oct 3, 2022
9765cb0
[Analysis] Adding BaseUsageAnalyzer overload for global functions
LuizZak Oct 3, 2022
16ccf26
[TypeResolver+Analysis] Improving definition tracking for subscript/f…
LuizZak Oct 4, 2022
d2923a1
Fixing unit tests
LuizZak Oct 4, 2022
b99178f
[Analysis] Adding support for subscript read/write detection in call …
LuizZak Oct 4, 2022
b8309e7
[Analysis] Adding support for property read/write detection in call g…
LuizZak Oct 4, 2022
2749ae7
Updating a doc comment
LuizZak Oct 4, 2022
bdc370e
[JavaScript] Implementing getter/setter detection in transpiler
LuizZak Oct 4, 2022
6c81ad0
Moving PropertyMergeIntentionPass to Objective-C frontend exclusively
LuizZak Oct 5, 2022
651b0d7
[JavaScript] Ensuring property synthesization from getter/setter in c…
LuizZak Oct 5, 2022
3fe3429
[JavaScript] Implementing import statement parsing
LuizZak Oct 5, 2022
118408f
Adding explicit SwiftSyntaxParser dependencies in Package.swift
LuizZak Oct 5, 2022
d937c07
Adding Graphviz target
LuizZak Oct 5, 2022
3b52ba0
Using Graphviz target for emitting test graphviz outputs of call grap…
LuizZak Oct 5, 2022
bc5904f
[Analysis] Adding CallGraph.asGraphviz()
LuizZak Oct 5, 2022
359e1d6
[Analysis] Enabling recording of CallGraph unit test results
LuizZak Oct 5, 2022
c46687a
[Analysis] Adding file/type nesting in Graphiz generated by CallGraph
LuizZak Oct 5, 2022
590a81e
[Objective-C] Adding frontend flag to enable call graph printing duri…
LuizZak Oct 5, 2022
4051d82
Fixing AnonymousSyntaxNodeVisitor not visiting variable declaration i…
LuizZak Oct 5, 2022
994060d
Moving Graphviz generation of ControlFlowGraph to Analysis target
LuizZak Oct 7, 2022
8e69cef
Updating .code-workspace
LuizZak Oct 12, 2022
5aeedc9
[JavaScript] Adding base for MultiFile tests
LuizZak Nov 20, 2022
e2b7eca
Merge branch 'master' into js-frontend
LuizZak Nov 20, 2022
b04f826
Merge branch 'master' into js-frontend
LuizZak Dec 8, 2022
55a1aba
Fixing python warning
LuizZak Dec 8, 2022
149ced6
Updating azure-pipelines.yml
LuizZak Dec 8, 2022
2b434c1
Updating azure-pipelines.yml
LuizZak Dec 8, 2022
252d293
Updating README.md
LuizZak Dec 8, 2022
62c9781
Merge branch 'master' into js-frontend
LuizZak Dec 9, 2022
a41af2e
Minor comment gardening
LuizZak Dec 9, 2022
e75ce2b
Merge branch 'master' into js-frontend
LuizZak Dec 10, 2022
c75dea6
Updating Architecture.md
LuizZak Dec 10, 2022
5beaa1e
Updating README.md
LuizZak Dec 10, 2022
f729d53
Merge branch 'master' into js-frontend
LuizZak Dec 11, 2022
3d0e4e3
Fixing runtime test warnings
LuizZak Dec 11, 2022
c930741
Adding String.asSourceLocation
LuizZak Dec 11, 2022
30cd15b
Adding --print-call-graph to javascript frontend
LuizZak Dec 11, 2022
682ffd2
Fixing CLI frontend crashing
LuizZak Dec 11, 2022
afd0443
Fixing crash in JavaScriptASTCorrectorExpressionPass
LuizZak Dec 11, 2022
79c9938
[JavaScript] Implementing function body comment transposition
LuizZak Dec 12, 2022
f39d5cc
[SwiftAST] Adding SwiftComment for specifying different Swift comment…
LuizZak Dec 12, 2022
7790ccc
Fixing duplication of global variables with initializers in call grap…
LuizZak Dec 12, 2022
fabbcaa
Making variable initializer expressions reference other declarations
LuizZak Dec 12, 2022
760a4c1
Making expressions in CallGraph be hexagon-shaped for diferentiation
LuizZak Dec 12, 2022
2ea3b52
Adding some default attributes to KnownAttribute as static variables
LuizZak Dec 12, 2022
bfcfd7a
[TypeSystem] Moving type member lookup classes to separate files
LuizZak Dec 12, 2022
1d7636e
[TypeSystem] Improving type resolution of function calls
LuizZak Dec 13, 2022
be336d6
[TypeSystem] Adding unit test for callAsFunction overload picking
LuizZak Dec 13, 2022
1528c7c
[TypeSystem] Implementing @dynamicMemberLookup support in type system
LuizZak Dec 13, 2022
5ad2ab4
[TypeSystem] Adding PatternMatcher class
LuizZak Dec 13, 2022
1a08556
[TypeSystem] Implementing pattern matching in for-in and if-let state…
LuizZak Dec 13, 2022
aa9de8b
Reverting Regex update to QuickSpecPreprocessor to ensure compiler su…
LuizZak Dec 13, 2022
1163a58
Renaming Graphviz target to GraphvizLib to avoid confusion with Graph…
LuizZak Dec 13, 2022
e5025df
Merge branch 'master' into js-frontend
LuizZak Dec 13, 2022
694faba
Updating python scripts
LuizZak Dec 13, 2022
66b7bc7
Updating azure-pipelines.yml
LuizZak Dec 13, 2022
0f103d2
Updating azure-pipelines.yml
LuizZak Dec 13, 2022
3bdc994
Updating azure-pipelines.yml
LuizZak Dec 13, 2022
026fac5
Merge branch 'master' into js-frontend
LuizZak Dec 14, 2022
f511bbf
Merge branch 'master' into js-frontend
LuizZak Dec 14, 2022
9a12291
Merge branch 'master' into js-frontend
LuizZak Dec 14, 2022
38c28e8
Adding JsParserAntlr to .codebeatignore
LuizZak Dec 14, 2022
bec7072
Merge branch 'master' into js-frontend
LuizZak Dec 14, 2022
b3669fa
Merge branch 'master' into js-frontend
LuizZak Dec 14, 2022
8241cb3
Merge branch 'master' into js-frontend
LuizZak Jul 13, 2024
000ce3a
[JavaScript] Fixing JS unit tests by modifying some code emitter sett…
LuizZak Jul 13, 2024
6d4b613
Fixing internal package target dependency issues
LuizZak Jul 13, 2024
0f648f2
Ensuring parser caches are thread-synchronized across loadParsedTree(…
LuizZak Jul 13, 2024
d90f57e
Updating azure-pipelines.yml
LuizZak Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .codebeatignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Sources/Frontend/Objective-C/ObjcParserAntlr/*
Sources/Frontend/JavaScript/JsParserAntlr/*
36 changes: 18 additions & 18 deletions AntlrGrammars/GrammarTransformer/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions AntlrGrammars/GrammarTransformer/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import PackageDescription
let package = Package(
name: "AntlrGrammars",
dependencies: [
.package(url: "https://github.com/apple/swift-syntax.git", exact: "508.0.1"),
.package(url: "https://github.com/apple/swift-format.git", exact: "508.0.1"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-syntax.git", exact: "510.0.2"),
.package(url: "https://github.com/apple/swift-format.git", exact: "510.1.0"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.4.0"),
],
targets: [
.executableTarget(
Expand Down
23 changes: 23 additions & 0 deletions AntlrGrammars/JsGrammar/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Created by https://www.gitignore.io/api/maven

### Maven ###
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties

# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
!/.mvn/wrapper/maven-wrapper.jar


# End of https://www.gitignore.io/api/maven

.antlr/
.idea/
*.iml
gen/
Loading
Loading