Commit Graph
782 Commits
Author SHA1 Message Date
José Valim 3a1857c5ba Add comments to dialyzer work around 2014-04-28 20:47:11 +02:00
James Fish 93182b53cf Fix remote calls to work with dialyzer in 17.0
In 17.0 dialyzer will crash on an empty map case pattern when its is
known that pattern will not match. The is_map guard is used instead of
the empty map pattern.
2014-04-28 17:46:15 +01:00
Eric Meadows-Jönsson d868b4d066 Do not wrap single lists in :__block__ 2014-04-27 22:26:14 +02:00
José Valim 32b8371759 Merge pull request #2199 from fishcakez/fix_abstract
Fix compiler abstract code
2014-04-27 20:57:52 +02:00
James Fish 29e0fadec1 Fix compiler abstract code
Previously the source filename of a module was sometimes a binary, this
change ensures it is always an erlang string.

Previously dialyzer did not know not to auto import bifs as it does not
read the compile options from a beam. This change uses an attribute in
the abstract code rather than a compile option so that dialyzer does not
auto import bifs.
2014-04-27 13:49:35 +01:00
José Valim c91723b444 Remove deprecated code, enable previous soft deprecations 2014-04-27 13:39:32 +02:00
José Valim 31c34dc04e Ensure we only allow horizontal space in heredocs 2014-04-24 20:57:06 +02:00
José Valim 4df91f14ee Fix bug in for comprehensions 2014-04-24 11:27:49 +02:00
Eric Meadows-Jönsson c6dc65c418 Fix compiler crash for some map literals 2014-04-22 18:29:54 +02:00
José Valim ca2ea6c0bd Inline some map calls 2014-04-22 15:43:13 +02:00
José Valim 56f15d9f4e Do not add spaces after { and before }
This makes the source code consistent with the result
returned by inspect/2.
2014-04-21 19:06:35 +02:00
José Valim ea9b686b28 Emit a warning if running on latin1 2014-04-21 12:15:27 +02:00
José Valim 6624f31472 Merge branch 'jv-char-data'
Conflicts:
	lib/eex/lib/eex/tokenizer.ex
	lib/elixir/lib/file.ex
	lib/elixir/lib/kernel.ex
	lib/elixir/lib/record/extractor.ex
	lib/elixir/lib/string.ex
	lib/ex_unit/lib/ex_unit/doc_test.ex
	lib/mix/lib/mix/archive.ex
	lib/mix/lib/mix/dep/fetcher.ex
	lib/mix/lib/mix/dep/umbrella.ex
2014-04-21 08:38:48 +02:00
José Valim 03189d05b3 Properly set standard_error to unicode 2014-04-10 19:54:34 +02:00
José Valim 9595fb18dd Raise KeyError for now in map.bad_field 2014-04-10 16:58:34 +02:00
José Valim 9e96966622 Add a deprecation note to records, split deprecated modules 2014-04-10 12:43:49 +02:00
José Valim 845a3d1fea Make defstruct work on quoted expressions, closes #2156 2014-04-10 11:41:11 +02:00
José Valim 238eda25e3 Update to Erlang 17.0 2014-04-09 18:32:09 +02:00
José Valim 4e93dab9a8 Exception.normalize/1 is deprecated in favor of Exception.normalize/2 2014-04-08 15:13:46 +02:00
José Valim 4847214766 Do not fill in stacktraces on protocol dispatch 2014-04-07 19:05:02 +02:00
José Valim d33463dcd5 Unify precedence of when, :: and | 2014-03-31 12:28:33 +02:00
José Valim c37a244d66 Add Code.eval_file/2 2014-03-27 12:31:00 +01:00
José Valim d73c108b89 Revert "Use 17.0-rc2" 2014-03-21 16:53:10 +01:00
José Valim 580b9292d6 Use 17.0-rc2 no_auto_import compiler option 2014-03-21 16:47:24 +01:00
José Valim 14d2ce460e Also raise proper error on keywords followed by numbers, closes #2091 2014-03-18 12:07:39 +01:00
José Valim ecd5b3d8ef Ensure do can be at the start of its own line, closes #2053 2014-03-13 09:44:01 -07:00
Eric Meadows-Jönsson c7c5d3af24 Allow splicing of binaries with specified size 2014-03-11 00:46:43 +01:00
José Valim 3d6dd50866 Remove native checks and improve typespecs 2014-03-08 12:46:16 -08:00
José Valim e73fce96d1 Support :into with Collectable in comprehensions 2014-03-07 06:11:38 -08:00
José Valim cbc03036cb Merge pull request #2093 from elixir-lang/jv-into
Add support for Collectables
2014-03-06 10:50:39 -08:00
José Valim a05d0d3b26 Rename Traversable to Collectable 2014-03-06 10:43:11 -08:00
José Valim 866acc4f82 Ensure an after clause is generated only if required 2014-03-06 07:00:37 -08:00
José Valim 012256791d Add traversable to bootstrap 2014-03-05 16:03:40 -08:00
Eric Meadows-Jönsson 04e774a4ba Support interpolation in keyword list atoms
key = "foo"
    ["#{key}": :value]
2014-03-05 16:43:26 +01:00
José Valim 6268dc3d22 Inline System.stacktrace/0 2014-03-05 03:05:18 -08:00
José Valim 75de306c46 Make the ParallelCompiler aware of missing structs
This allows modules that have recursive dependencies on structs
to be defined by having a fine grained control on the struct
definition besides the module one.
2014-03-02 16:24:45 +01:00
José Valim 17b4dbbdbb Ensure struct fields are properly escaped when injected into AST 2014-03-01 23:41:14 +01:00
José Valim 59ca4728d1 Improve error message for illegal use of variable in map key, closes #2083 2014-03-01 08:46:35 +01:00
José Valim 00b1aadd76 Add a __struct__ field on defstruct and ensure proper message on struct body access 2014-02-28 17:30:24 +01:00
José Valim 10b1f56ad9 Ensure structs can be used on pattern matching 2014-02-27 16:30:11 +01:00
José Valim 9e9583c29c Remove unecessary return checks from comprehensions 2014-02-27 13:21:00 +01:00
José Valim c9402713c9 Ensure undefined modules are reserved for future usage 2014-02-24 17:00:29 +01:00
José Valim 024edf3d40 Rename iolist_* to iodata_* 2014-02-23 11:32:03 +01:00
José Valim 6a725ab91f Provide List.from_char_data! and String.from_char_data! 2014-02-23 11:04:24 +01:00
José Valim 233a3ed4ec Change the Path module to work only with char_data and always return binaries 2014-02-22 19:33:37 +01:00
José Valim 128d82fde6 Add defstruct and allow unquoting inside maps/structs 2014-02-19 22:35:09 +01:00
José Valim 2e8c53c85b Add _ = EXPR to the list of expressions that can handle no return 2014-02-19 12:48:08 +01:00
José Valim 933834aedd Add try/case/receive to list of constructs that can handle returns 2014-02-19 12:45:15 +01:00
Yuki Ito 013303a44e Support end-of-line backslash in quoted expressions
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2014-02-19 12:23:30 +01:00
José Valim bab252f1e8 Do not accumulate results in comprehensions if they won't be used 2014-02-19 12:17:36 +01:00