Class MethodAmbiguousReport
java.lang.Object
org.ek9lang.compiler.phase3.MethodAmbiguousReport
THE one place a
METHOD_AMBIGUOUS diagnostic is emitted in phase 3, and the only place its three message
shapes are spelt. Rich messages and the MCP editors read the text after resolved:, so a new resolver
that finds an ambiguous match calls one of these; it never builds its own message.-
Method Summary
Modifier and TypeMethodDescription(package private) static voidofOperator(SemanticErrorReporter errorListener, IToken operatorUse, Object search, String symbolFriendlyName, String location, MethodSymbolSearchResult results) An operator used on a value:operator '<search>' on '<symbol>', type first established <location>, resolved: <candidates>:.(package private) static voidofSearch(SemanticErrorReporter errorListener, IToken errorLocation, String msgStart, Object search, MethodSymbolSearchResult results) A method (or operator) search on a type:<msgStart>'<search>' resolved: <candidates>.(package private) static voidofStage(SemanticErrorReporter errorListener, IToken errorLocation, String msgStart, MethodSymbolSearchResult results) A stream stage that names no search of its own:<msgStart> resolved: <candidates>.
-
Method Details
-
ofSearch
static void ofSearch(SemanticErrorReporter errorListener, IToken errorLocation, String msgStart, Object search, MethodSymbolSearchResult results) A method (or operator) search on a type:<msgStart>'<search>' resolved: <candidates>. -
ofStage
static void ofStage(SemanticErrorReporter errorListener, IToken errorLocation, String msgStart, MethodSymbolSearchResult results) A stream stage that names no search of its own:<msgStart> resolved: <candidates>. -
ofOperator
static void ofOperator(SemanticErrorReporter errorListener, IToken operatorUse, Object search, String symbolFriendlyName, String location, MethodSymbolSearchResult results) An operator used on a value:operator '<search>' on '<symbol>', type first established <location>, resolved: <candidates>:.
-