Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[*]
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true

[*.{md,json}]
max_line_length = null

[Makefile]
indent_style = tab
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ TypeScript AST parser is ready. [mizchi/dts-parser](https://github.com/mizchi/dt
- module system
- robust namespace resolver
- splats argument such as `( args...: T[] ) -> `
- this scope in bound function
- this scope in bound function

#### Wip

Expand Down
2 changes: 1 addition & 1 deletion examples/function.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ nullableFunc = (n) ->
else
return null
3
nullableFunc 5
nullableFunc 5
1 change: 0 additions & 1 deletion examples/require-extension/baz.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ console.log 'baz'
2
# struct A
# a :: Int

2 changes: 1 addition & 1 deletion src/reporter.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ class Reporter
for next in node.nodes
@dump next, prefix + ' '

module.exports = new Reporter
module.exports = new Reporter
2 changes: 1 addition & 1 deletion src/type-scope.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,4 @@ class FunctionScope extends Scope

module.exports = {
Scope, ClassScope, FunctionScope, ModuleScope
}
}
2 changes: 1 addition & 1 deletion src/types.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ initializeGlobalTypes = (node) ->

module.exports = {
initializeGlobalTypes, primitives, ImplicitAny
}
}
2 changes: 1 addition & 1 deletion test/ranges.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ suite 'Range Literals', ->
eq [3..1].toString(), "3,2,1"
eq [1..4].toString(), "1,2,3,4"
eq [4..1].toString(), "4,3,2,1"

eq [1...3].toString(), "1,2"
eq [3...1].toString(), "3,2"
eq [1...4].toString(), "1,2,3"
Expand Down