Commit Graph
1569 Commits
Author SHA1 Message Date
José Valim 9904bdce9d Warn on undefined module attributes, closes #963 2013-06-18 12:19:15 +02:00
José Valim 754418493f Merge pull request #1275 from ericmj/elixir-in-warning
Emit warning for 'x in []' in guards
2013-06-18 03:04:05 -07:00
Eric Meadows-Jonsson 27000ea1b4 Emit warning for 'x in []' in guards 2013-06-18 11:57:27 +02:00
José Valim 620ee4298c Raise proper warnings when default clauses from different definitions collide, closes #1244 2013-06-18 11:36:57 +02:00
rnowling 441547d8e4 Fixed grammar and wrong word (exit, not exist) in Process.exit/2 documentation. 2013-06-17 23:25:23 -03:00
Yurii Rashkovskii 5e123e6519 Make sure we don't receive an EXIT message from the dependency tracker
It pollutes IEx and scripts execution

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2013-06-17 20:37:44 +02:00
José Valim 91c0fa71fa Avoid clash in between modules 2013-06-17 13:19:07 +02:00
José Valim 87da4e91bb Clean up error messages, move defaults warning to an error 2013-06-17 13:05:57 +02:00
José Valim f88ee1c23a Do not check in utf8 directories into source control 2013-06-17 08:57:53 +02:00
Rafael Mendonça França cca430522d Follow the bullet point standard on this file 2013-06-16 13:11:51 -03:00
Rafael Mendonça França db417110e7 Use the proper code highlight for functions 2013-06-16 13:11:28 -03:00
José Valim 67896b56c5 Ensure errors point to the proper -> clauses
This commit changes the -> clauses representation from:

    { :->, meta, list({ list(expr), expr }) }

To:

    { :->, meta, list({ list(expr), meta, expr }) }

Now clauses can store metadata, which allows us to provide
accurate reporting information.

Closes #1215
2013-06-16 17:27:14 +02:00
José Valim d21d603617 Avoid race condition on CLI tests 2013-06-16 13:57:52 +02:00
José Valim 19ff7a03f9 Ensure imports inside quotes are properly registered, closes #1225 2013-06-16 13:18:47 +02:00
José Valim 7f5744bde7 Ensure defmodule :atom does not define an alias 2013-06-16 13:10:59 +02:00
José Valim b87797f788 Return Foo for __MODULE__.Foo outside of a module 2013-06-16 13:10:59 +02:00
Alexei Sholik a541f53dd1 Don't assume terminal availability in ANSI doctests 2013-06-16 12:15:00 +03:00
José Valim 5222c7737f Update docs for Macro.expand 2013-06-16 10:07:35 +02:00
Rafael Mendonça França 7cdc25538e Uniform use of whitespace after commas on codebase
This make easier to read and also follow some standard in the code
2013-06-15 16:52:48 -03:00
Rafael Mendonça França 7b4e0915b1 Remove documentation of .split, .drop and .take on HashDict and ListDict
They are already documented on Dict
2013-06-15 12:55:07 -03:00
Rafael Mendonça França 2ea7de7361 Fix Dict.drop documentation 2013-06-15 12:54:34 -03:00
Yuki Ito c97dc3bd15 Fix typo in doc 2013-06-15 20:35:15 +09:00
Samuel Tonini 46b6f82473 fix typo in doc 2013-06-15 12:37:52 +02:00
José Valim c80e43ca42 Go to :binary.match(left, right) directly instead of hoping through String.contains? 2013-06-15 10:51:10 +02:00
José Valim 80e41f8b4b Allow +, -, and friends to be called dynamically
Our compiler still inline those calls. This commit simply
allows one to write:

    mod = Kernel
    mod.+(1, 2)
2013-06-15 10:45:12 +02:00
José Valim 9e16cf36ed There is no need for =~ to be a macro 2013-06-15 09:46:19 +02:00
José Valim 1d8e39a2df Only change compilation status if warnings_as_errors 2013-06-15 09:46:10 +02:00
José Valim 21db352039 Always print warnings to stderr 2013-06-15 09:32:53 +02:00
José Valim 45f033d15a Add a test for warnings_as_errors option 2013-06-15 08:41:27 +02:00
José Valim 8eba2fcba0 Merge pull request #1214 from baldmountain/feature/898-warnings-as-errors
Feature/898 warnings as errors
2013-06-14 23:20:25 -07:00
Nicd 0b6b7ea0e4 Fix compiler_options docblock formatting errors 2013-06-15 01:39:21 +03:00
José Valim e62ef92a4b Ensure Enum.take/2 doesn't peek ahead 2013-06-14 18:43:05 +02:00
josephwilk 7c639f9252 document equal? 2013-06-14 11:49:16 +02:00
josephwilk f03e707e8e Bug: equal? on HashDict was not comparing the two dicts 2013-06-14 11:49:10 +02:00
James Fish 582e814422 Improve efficiency of HashDict contract
When contracting in size the HashDict does not need to relocate
(re-hash) key-value pairs. It is not required because each of the
deepest nodes in a trie become a bucket on contraction. This bucket
contains all the key-value pairs in that node.
2013-06-13 18:11:51 +01:00
José Valim bff8a6ae75 Remove deprecated code branches 2013-06-13 16:48:31 +02:00
José Valim a03639fe1a Deprecate Regex.index/2 2013-06-13 15:23:03 +02:00
José Valim e7b1242e98 Fix a bug on Path.split/1 2013-06-13 15:13:56 +02:00
José Valim d3d83b17f4 Merge pull request #1199 from alco/1148-match-tilde-op
Reimplement =~ to use Regex.match? or String.contains?
2013-06-13 06:13:32 -07:00
José Valim 78eb14edae Merge pull request #1187 from alco/pipeline-op
Pipeline op fix + additional assertion
2013-06-13 06:12:25 -07:00
Eduardo Gurgel b1cd1ee7e9 Fix typo on List documentation 2013-06-12 22:30:12 -03:00
Yuki Ito 016480bdcc Update docs for defoverridable and super 2013-06-13 02:35:13 +09:00
Yuki Ito 961099746e Implicit super arguments is deprecated 2013-06-13 00:42:34 +09:00
Alexei Sholik b19c389cee Replace @export_type with @typep in the docs
Elixir automatically generates corresponding @export_type attributes for
public types
2013-06-12 12:58:40 +03:00
Alexei Sholik 3f3e86d7f4 Document __info__/1 2013-06-11 20:14:14 +03:00
Alexei Sholik 15bf0fb16e Provide reference documentation for module attributes 2013-06-11 16:46:55 +03:00
José Valim fed406a2e6 Rename test/doctest.exs file to test/doc_test.exs to follow file name convention 2013-06-10 14:27:38 +08:00
Geoffrey Clements 0e2752f7c2 print compiled even if compilation_status is not :ok it may have been from another file. Halt on an :error 2013-06-09 07:49:38 -04:00
Geoffrey Clements 76b2255d7b Don't pass warnings-as-errors to module since it isn't needed 2013-06-09 07:49:38 -04:00
Geoffrey Clements 93d5128db3 Implement José's suggestions.
1. Detect all places in elixir_errors:handle_file_warning/3 where we
output something with io
2. Change those places to go through an internal function that will
call elixir_compiler:get_opt and figure out if we should print to
stdout or stderr and act accordingly
3. In the same function above, whenever we print a warning as an error,
we should store somewhere that a warning as an error happened. I
recommend storing that in the elixir_code_server gen server
4. Provide a Code.compilation_status that would return it
2013-06-09 07:49:38 -04:00