internal bool AddGenericImport(LuaInvocationExpressionSyntax invocationExpression, string name, List <string> argumentTypeNames, bool isFromCode, out GenericUsingDeclare genericUsingDeclare) { if (genericUsingDeclares_.Exists(i => i.NewName == name)) { genericUsingDeclare = null; return(true); } genericUsingDeclare = new GenericUsingDeclare() { InvocationExpression = invocationExpression, ArgumentTypeNames = argumentTypeNames, NewName = name, IsFromCode = isFromCode }; genericUsingDeclares_.Add(genericUsingDeclare); return(true); }
internal void AddImport(LuaInvocationExpressionSyntax invocationExpression, string name, List <string> argumentTypeNames, bool isFromCode) { GenericUsingDeclare.AddImportTo(genericUsingDeclares_, invocationExpression, name, argumentTypeNames, isFromCode); }