Skip to content
This repository has been archived by the owner on Jan 28, 2019. It is now read-only.

Single arity deprecation support #136

Merged
merged 5 commits into from
Apr 15, 2016
Merged

Conversation

arrdem
Copy link
Collaborator

@arrdem arrdem commented Apr 13, 2016

Fixes #134

This patch adds compiler support for `^:deprecated` metadata on single
function arities. When compiling with deprecation warnings, static
invocations analyzing to deprecated arities will generate appropriate
warnings.

This is implemented using a simple linear scan arglist matcher which
supports variable arities and could in future be extended for typed
invocation matching.
@arrdem arrdem force-pushed the feature/deprecated-arities branch from 18c07b6 to aaaaf00 Compare April 13, 2016 01:49
@arrdem arrdem force-pushed the feature/deprecated-arities branch from dc39f39 to 7e0eed8 Compare April 15, 2016 17:53
@arrdem arrdem force-pushed the feature/deprecated-arities branch from 7e0eed8 to 1b94d04 Compare April 15, 2016 18:03
@@ -3205,7 +3205,7 @@ public static Expr parse(Var v, ISeq args, Object tag) {
java.lang.reflect.Method[] allmethods = c.getMethods();

IPersistentVector theargs = null;
if(arglists != null) {
if (arglists != null) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SPACES FOR THE SPACES THRONE

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

danks bobrt

@arrdem arrdem merged commit 420830b into develop Apr 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants