/// <summary> /// Retrieves a TypeExtraInfo given a INamedTypeSymbol, instantiating a new one if necessary /// </summary> /// <param name="sym"></param> /// <param name="model"></param> /// <param name="isLibrary">true if the type is external and should not be generated into the Chunk</param> /// <returns></returns> public TypeExtraInfo AddTypeExtraInfo(INamedTypeSymbol sym, SemanticModel model, bool isLibrary) { TypeExtraInfo tei; if (TypeExtraInfo.TryGetValue(sym, out tei)) return tei; tei = new TypeExtraInfo(this, model, sym, isLibrary); TypeExtraInfo.Add(sym, tei); return tei; }
public TypeExtraInfo AddTypeExtraInfo(NamedTypeSymbol sym) { TypeExtraInfo tei; if (TypeExtraInfo.TryGetValue(sym, out tei)) return tei; tei = new TypeExtraInfo(this,sym); TypeExtraInfo.Add(sym, tei); return tei; }