| Summary: | [xbase][compiler] Allow to inline static extensions (e.g. operation_plus) | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Sebastian Zarnekow <sebastian.zarnekow> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | jan, sven.efftinge |
| Version: | 2.1.0 | Flags: | sebastian.zarnekow:
juno+
|
| Target Milestone: | M6 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Pushed to master. Cool, macros in Xbase :-) Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
I think a very simple approach could be something along these lines: public class StringExtensions { @Inline("%0s + %1s") public static String operator_plus(String a, String b) { return a + b; } }