/// <summary> /// /// </summary> /// <param name="references"></param> /// <returns></returns> public static ITranslationUnit BuildReferencesGroupTranslationUnit(string[] references) { var translationUnit = ReferencesGroupTranslationUnit.Create(); foreach (var reference in references) { translationUnit.AddStatement(ReferenceTranslationUnit.Create(reference)); } return(translationUnit); }
private static ITranslationUnit CreateReferencesGroupTranslationUnit(IEnumerable <string> paths) { // TODO: Change to use a factory var statementsGroup = ReferencesGroupTranslationUnit.Create(); foreach (var path in paths) { statementsGroup.AddStatement(ReferenceTranslationUnit.Create(path)); } return(statementsGroup); }
public static ITranslationUnit BuildReferenceTranslationUnit(string path) { return(ReferenceTranslationUnit.Create(path)); }