1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36:01 +02:00

Deferred typeid reference list creation until absolutely necessary.

This commit is contained in:
John Camelon 2004-06-18 19:58:21 +00:00
parent 57bc1229ab
commit ef4eaa9e09

View file

@ -43,7 +43,7 @@ public class ASTTypeId implements IASTTypeId
private final String typeName;
private final List pointerOps;
private final Type kind;
private List references = new ArrayList();
private List references = null;
private ISymbol symbol;
/**
@ -218,6 +218,8 @@ public class ASTTypeId implements IASTTypeId
*/
public void addReferences(List list, ReferenceCache cache)
{
if( references == null )
references = new ArrayList( list.size() );
for( int i = 0; i < list.size(); ++i )
references.add( list.get(i) );
}