NamespaceAwareLookup.st
author convert-repo
Thu, 05 Jul 2018 03:33:35 +0000
changeset 23197 823c765c176d
parent 22310 7c2de8ff3d04
child 23386 e7d124bf6282
permissions -rw-r--r--
update tags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22310
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
     1
"{ Encoding: utf8 }"
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
     2
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
     3
"
13478
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     4
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
     5
	      All Rights Reserved
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
     6
13478
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     7
Permission is hereby granted, free of charge, to any person
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     8
obtaining a copy of this software and associated documentation
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     9
files (the 'Software'), to deal in the Software without
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    10
restriction, including without limitation the rights to use,
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    11
copy, modify, merge, publish, distribute, sublicense, and/or sell
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    12
copies of the Software, and to permit persons to whom the
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    13
Software is furnished to do so, subject to the following
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    14
conditions:
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    15
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    16
The above copyright notice and this permission notice shall be
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    17
included in all copies or substantial portions of the Software.
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    18
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    19
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    20
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    21
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    22
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    23
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    24
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    25
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    26
OTHER DEALINGS IN THE SOFTWARE.
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    27
"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    28
"{ Package: 'stx:libbasic' }"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    29
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
    30
"{ NameSpace: Smalltalk }"
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
    31
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    32
Lookup subclass:#NamespaceAwareLookup
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    33
	instanceVariableNames:''
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    34
	classVariableNames:'Instance'
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    35
	poolDictionaries:''
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    36
	category:'Kernel-Extensions'
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    37
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    38
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    39
!NamespaceAwareLookup class methodsFor:'documentation'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    40
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    41
copyright
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    42
"
13478
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    43
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
    44
	      All Rights Reserved
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    45
13478
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    46
Permission is hereby granted, free of charge, to any person
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    47
obtaining a copy of this software and associated documentation
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    48
files (the 'Software'), to deal in the Software without
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    49
restriction, including without limitation the rights to use,
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    50
copy, modify, merge, publish, distribute, sublicense, and/or sell
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    51
copies of the Software, and to permit persons to whom the
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    52
Software is furnished to do so, subject to the following
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    53
conditions:
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    54
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    55
The above copyright notice and this permission notice shall be
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    56
included in all copies or substantial portions of the Software.
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    57
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    58
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    59
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    60
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    61
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    62
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    63
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    64
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    65
OTHER DEALINGS IN THE SOFTWARE.
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    66
"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    67
! !
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    68
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    69
!NamespaceAwareLookup class methodsFor:'initialization'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    70
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    71
initialize
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    72
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    73
    Instance := self basicNew
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    74
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    75
    "Created: / 10-07-2010 / 21:12:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    76
! !
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    77
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    78
!NamespaceAwareLookup class methodsFor:'accessing'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    79
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    80
instance
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    81
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    82
    ^Instance
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    83
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    84
    "Created: / 20-05-2010 / 11:18:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    85
    "Modified: / 10-07-2010 / 21:12:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    86
! !
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    87
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    88
!NamespaceAwareLookup class methodsFor:'lookup'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    89
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
    90
lookupMethodForSelector: selector directedTo: initialSearchClass for: receiver withArguments: argArrayOrNil from: sendingContext
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    91
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    92
    "JV @ 2010-07-24
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    93
     Following C code is just a performance optimization.
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
    94
     It is not necessary, however it speeds things in most
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    95
     cases. Such optimization significantly speeds up the IDE
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    96
     since class browser involves dozens of super-polymorphic
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
    97
     sends (> 1000 receiver classes per send-site).
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
    98
        "
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    99
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   100
%{
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   101
    OBJ sendingMthd = __ContextInstPtr(sendingContext)->c_method;
22310
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   102
    if (__Class(sendingMthd) == Method && __MethodInstPtr(sendingMthd)->m_annotation == nil) {
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   103
        OBJ m = __lookup(initialSearchClass, selector);
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   104
        if (m != nil) RETURN ( m );
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   105
    }
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   106
%}.
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   107
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   108
    ^Instance lookupMethodForSelector: selector directedTo: initialSearchClass
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   109
                          for: receiver withArguments: argArrayOrNil
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   110
                          from: sendingContext
22310
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   111
!
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   112
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   113
lookupMethodForSelector: selector directedTo: initialSearchClass for: receiver withArguments: argArrayOrNil from: sendingContext ilc:ilc
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   114
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   115
    "JV @ 2010-07-24
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   116
     Following C code is just a performance optimization.
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   117
     It is not necessary, however it speeds things in most
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   118
     cases. Such optimization significantly speeds up the IDE
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   119
     since class browser involves dozens of super-polymorphic
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   120
     sends (> 1000 receiver classes per send-site).
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   121
        "
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   122
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   123
%{
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   124
    OBJ sendingMthd = __ContextInstPtr(sendingContext)->c_method;
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   125
    if (__Class(sendingMthd) == Method && __MethodInstPtr(sendingMthd)->m_annotation == nil) {
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   126
        OBJ m = __lookup(initialSearchClass, selector);
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   127
        if (m != nil) RETURN ( m );
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   128
    }
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   129
%}.
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   130
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   131
    ^Instance lookupMethodForSelector: selector directedTo: initialSearchClass
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   132
                          for: receiver withArguments: argArrayOrNil
7c2de8ff3d04 #BUGFIX by sr
sr
parents: 22296
diff changeset
   133
                          from: sendingContext ilc:ilc
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   134
! !
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   135
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   136
!NamespaceAwareLookup methodsFor:'lookup'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   137
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   138
lookupMethodForSelector: selector directedTo: initialSearchClass for: receiver withArguments: argArrayOrNil from: sendingContext ilc: ilcCache
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   139
    "Invoked by the VM to ask me for a method to fire.
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   140
     For details, see comment inLookup>>lookupMethodForSelector:directedTo:for:withArguments:from:"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   141
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   142
    | sendingNs sendingMthd queue seen namespaces methods imports numMethods|
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   143
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   144
    "JV @ 2010-07-24
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   145
     Following C code is just a performance optimization.
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   146
     It is not necessary, however it speeds things in most
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   147
     cases. Such optimization significantly speeds up the IDE
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   148
     since class browser involves dozens of super-polymorphic
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   149
     sends (> 1000 receiver classes per send-site).
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   150
    "
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   151
%{
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   152
    sendingMthd = __ContextInstPtr(sendingContext)->c_method;
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   153
    if (__Class(sendingMthd) == Method &&
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   154
            __MethodInstPtr(sendingMthd)->m_annotation == nil) {
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   155
            OBJ m = __lookup(initialSearchClass, selector);
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   156
            if (m != nil) {
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   157
                if (ilcCache != nil) __ilcBind(ilcCache, initialSearchClass, m, selector);
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   158
                RETURN ( m );
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   159
            }
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   160
    }
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   161
%}.
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   162
    "If you remove C code above, uncomment the line below."
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   163
    "sendingMthd := sendingContext method."
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   164
    sendingNs := sendingMthd isNil
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   165
            ifTrue:[nil]
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   166
            ifFalse:[sendingMthd nameSpace].
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   167
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   168
        "Second chance to speed up things (in case sending method
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   169
         has resource or so)"
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   170
%{
16080
e12fe7f621a8 class: NamespaceAwareLookup
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13478
diff changeset
   171
    if (sendingNs == nil) {
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   172
        OBJ m = __lookup(initialSearchClass, selector);
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   173
        if (m != nil) {
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   174
            if (ilcCache != nil) __ilcBind(ilcCache, initialSearchClass, m, selector);
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   175
            RETURN ( m );
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   176
        }
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   177
    }
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   178
%}.
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   179
    "
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   180
    Stderr
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   181
            show: 'sel='; show: selector; show: ' ns='; show: sendingNs printString;
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   182
            show: ' method=', sendingMthd printString; cr.
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   183
        "
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   184
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   185
    sendingNs notNil ifTrue: [
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   186
        seen := Set new.
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   187
        namespaces := Array with: sendingNs.
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   188
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   189
        [namespaces notEmpty] whileTrue:[
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   190
            methods := self
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   191
                        lookupMethodsForSelector: selector
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   192
                        directedTo: initialSearchClass
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   193
                        inNamespaces: namespaces.
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   194
            numMethods := methods size.
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   195
            numMethods == 1 ifTrue:[
22296
5abec1c29d53 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21100
diff changeset
   196
                ^ methods anElement
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   197
            ].
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   198
            numMethods > 1 ifTrue:[
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   199
                ^self ambiguousMessageSend: selector withArgs: argArrayOrNil
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   200
            ].
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   201
            "No method found"
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   202
            seen addAll: namespaces.
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   203
            imports := Set new.
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   204
            namespaces do:[:namespace|
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   205
                namespace notNil ifTrue:[
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   206
                    namespace imports do:[:import|
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   207
                        (seen includes: import) ifFalse: [
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   208
                            imports add: import
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   209
                        ]
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   210
                    ]
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   211
                ]
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   212
            ].
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   213
            namespaces := imports
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   214
        ].
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   215
    ].
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   216
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   217
    methods := self lookupMethodsForSelector: selector
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   218
                        directedTo: initialSearchClass.
16080
e12fe7f621a8 class: NamespaceAwareLookup
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13478
diff changeset
   219
    methods size == 1 ifTrue:[
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   220
        | m |
16080
e12fe7f621a8 class: NamespaceAwareLookup
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13478
diff changeset
   221
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   222
        m := methods anyOne.
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   223
        ilcCache notNil ifTrue:[ ilcCache bindTo: m forClass: initialSearchClass ].
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   224
        ^ m
16080
e12fe7f621a8 class: NamespaceAwareLookup
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13478
diff changeset
   225
    ].
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   226
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   227
    ^nil
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   228
16080
e12fe7f621a8 class: NamespaceAwareLookup
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13478
diff changeset
   229
    "Created: / 19-02-2014 / 21:49:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
22296
5abec1c29d53 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21100
diff changeset
   230
    "Modified: / 09-10-2017 / 17:19:51 / stefan"
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   231
! !
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   232
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   233
!NamespaceAwareLookup methodsFor:'lookup - helpers'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   234
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   235
lookupMethodsForSelector: selector directedTo: initialSearchClass
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   236
    "Searches initialSearchClass for a methods with in any namespace"
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   237
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   238
    ^self
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   239
	lookupMethodsForSelector: selector
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   240
	directedTo: initialSearchClass
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   241
	suchThat:[:sel :mthd|true].
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   242
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   243
    "Created: / 19-07-2010 / 15:37:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   244
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   245
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   246
lookupMethodsForSelector: selector directedTo: initialSearchClass inNamespaces: namespaces
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   247
    "Searches initialSearchClass for a methods with given selector in given namespaces."
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   248
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   249
    ^self
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   250
	lookupMethodsForSelector: selector
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   251
	directedTo: initialSearchClass
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   252
	suchThat:[:sel :mthd|namespaces includes: mthd nameSpace].
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   253
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   254
    "Created: / 19-07-2010 / 15:13:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   255
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   256
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   257
lookupMethodsForSelector: selector directedTo: initialSearchClass suchThat: block
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   258
    "Searches initialSearchClass for a method with given selector in given nameSpace.
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   259
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   260
     if no method in given namespace is found, returns nil"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   261
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   262
    | searchClass methods seen |
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   263
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   264
    searchClass := initialSearchClass.
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   265
    methods := Set new.
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   266
    seen := OrderedCollection new.
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   267
    [ searchClass notNil ] whileTrue:[
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   268
	searchClass selectorsAndMethodsDo:[:sel :mthd|
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   269
	    (sel selector = selector
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   270
	      and:[ (seen includes: mthd nameSpace) not
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   271
	      and:[ block value: sel value: mthd]]
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   272
	    ) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   273
		methods add: mthd.
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   274
		seen add: mthd nameSpace
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   275
	    ]
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   276
	].
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   277
	searchClass := searchClass superclass
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   278
    ].
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   279
    ^methods
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   280
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   281
    "Created: / 19-07-2010 / 15:34:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   282
    "Modified: / 20-07-2010 / 10:42:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   283
! !
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   284
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   285
!NamespaceAwareLookup methodsFor:'trampolines'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   286
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   287
ambiguousMessageSend
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   288
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   289
    ^self ambiguousMessage:
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   290
	(Message
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   291
	    selector: #__placeholder__
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   292
	    arguments: #()
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   293
	)
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   294
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   295
    "Created: / 19-08-2010 / 22:05:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   296
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   297
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   298
ambiguousMessageSend: selector withArgs: argArrayOrNil
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   299
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   300
    | trampoline |
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   301
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   302
    trampoline := self class methodDictionary at:
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   303
		     (#(" 0"ambiguousMessageSend
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   304
			" 1"ambiguousMessageSendWith:
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   305
			" 2"ambiguousMessageSendWith:with:
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   306
			" 3"ambiguousMessageSendWith:with:with:
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   307
			" 4"ambiguousMessageSendWith:with:with:with:
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   308
			" 5"ambiguousMessageSendWith:with:with:with:with:
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   309
			" 6"ambiguousMessageSendWith:with:with:with:with:with:
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   310
			" 7"ambiguousMessageSendWith:with:with:with:with:with:with:
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   311
			" 8"ambiguousMessageSendWith:with:with:with:with:with:with:with:
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   312
			)
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   313
			at: argArrayOrNil size + 1).
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   314
    trampoline := trampoline asByteCodeMethod.
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   315
    1 to: trampoline numLiterals do: [:litNr|
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   316
	(trampoline literalAt: litNr) == #__placeholder__ ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   317
	    (trampoline literalAt: litNr put: selector)
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   318
	]
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   319
    ].
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   320
    ^trampoline
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   321
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   322
    "Created: / 19-08-2010 / 22:09:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   323
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   324
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   325
ambiguousMessageSendWith: a1
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   326
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   327
    ^self ambiguousMessage:
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   328
	(Message
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   329
	    selector: #__placeholder__
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   330
	    arguments: (Array with: a1)
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   331
	)
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   332
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   333
    "Created: / 19-08-2010 / 22:06:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   334
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   335
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   336
ambiguousMessageSendWith: a1 with: a2
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   337
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   338
    ^self ambiguousMessage:
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   339
	(Message
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   340
	    selector: #__placeholder__
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   341
	    arguments: (Array with: a1 with: a2)
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   342
	)
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   343
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   344
    "Created: / 19-08-2010 / 22:06:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   345
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   346
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   347
ambiguousMessageSendWith: a1 with: a2 with: a3
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   348
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   349
    ^self ambiguousMessage:
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   350
	(Message
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   351
	    selector: #__placeholder__
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   352
	    arguments: (Array with: a1 with: a2 with: a3)
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   353
	)
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   354
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   355
    "Created: / 19-08-2010 / 22:06:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   356
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   357
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   358
ambiguousMessageSendWith: a1 with: a2 with: a3 with: a4
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   359
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   360
    ^self ambiguousMessage:
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   361
	(Message
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   362
	    selector: #__placeholder__
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   363
	    arguments: (Array with: a1 with: a2 with: a3 with: a4)
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   364
	)
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   365
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   366
    "Created: / 19-08-2010 / 22:06:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   367
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   368
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   369
ambiguousMessageSendWith: a1 with: a2 with: a3 with: a4
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   370
		    with: a5
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   371
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   372
    ^self ambiguousMessage:
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   373
	(Message
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   374
	    selector: #__placeholder__
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   375
	    arguments: (Array with: a1 with: a2 with: a3 with: a4
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   376
			      with: a5)
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   377
	)
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   378
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   379
    "Created: / 19-08-2010 / 22:07:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   380
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   381
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   382
ambiguousMessageSendWith: a1 with: a2 with: a3 with: a4
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   383
		    with: a5 with: a6
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   384
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   385
    ^self ambiguousMessage:
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   386
	(Message
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   387
	    selector: #__placeholder__
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   388
	    arguments: (Array with: a1 with: a2 with: a3 with: a4
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   389
			      with: a5 with: a6)
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   390
	)
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   391
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   392
    "Created: / 19-08-2010 / 22:07:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   393
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   394
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   395
ambiguousMessageSendWith: a1 with: a2 with: a3 with: a4
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   396
		    with: a5 with: a6 with: a7
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   397
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   398
    ^self ambiguousMessage:
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   399
	(Message
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   400
	    selector: #__placeholder__
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   401
	    arguments: (Array with: a1 with: a2 with: a3 with: a4
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   402
			      with: a5 with: a6 with: a7)
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   403
	)
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   404
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   405
    "Created: / 19-08-2010 / 22:07:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   406
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   407
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   408
ambiguousMessageSendWith: a1 with: a2 with: a3 with: a4
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   409
		    with: a5 with: a6 with: a7 with: a8
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   410
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   411
    ^self ambiguousMessage:
18359
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   412
	(Message
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   413
	    selector: #__placeholder__
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   414
	    arguments: (Array with: a1 with: a2 with: a3 with: a4
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   415
			      with: a5 with: a6 with: a7 with: a8)
Claus Gittinger <cg@exept.de>
parents: 16080
diff changeset
   416
	)
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   417
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   418
    "Created: / 19-08-2010 / 22:08:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   419
! !
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   420
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   421
!NamespaceAwareLookup class methodsFor:'documentation'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   422
13478
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
   423
version_CVS
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   424
    ^ '$Header$'
13478
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
   425
!
0212bdc3f19c changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
   426
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   427
version_SVN
21100
6cd737df7462 #OTHER by mawalch
mawalch
parents: 18359
diff changeset
   428
    ^ '$Id$'
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   429
! !
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   430
16080
e12fe7f621a8 class: NamespaceAwareLookup
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13478
diff changeset
   431
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
   432
NamespaceAwareLookup initialize!