This is the factory for Name objects which resolve names within this namespace (e.g. toObject(), toClass(), toLHS()). This was intended to support name resolver caching, allowing Name objects to cache info about the resolution of names for performance reasons. However this not prov
( String ambigname )
| 1379 | Use get() instead. |
| 1380 | */ |
| 1381 | Name getNameResolver( String ambigname ) |
| 1382 | { |
| 1383 | if ( names == null ) |
| 1384 | names = new HashMap<String,Name>(); |
| 1385 | |
| 1386 | Name name = names.get( ambigname ); |
| 1387 | |
| 1388 | if ( name == null ) { |
| 1389 | name = new Name( this, ambigname ); |
| 1390 | names.put( ambigname, name ); |
| 1391 | } |
| 1392 | |
| 1393 | return name; |
| 1394 | } |
| 1395 | |
| 1396 | public int getInvocationLine() { |
| 1397 | SimpleNode node = getNode(); |
no test coverage detected