예제 #1
0
        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);
        }
예제 #2
0
 internal void AddImport(LuaInvocationExpressionSyntax invocationExpression, string name, List <string> argumentTypeNames, bool isFromCode)
 {
     GenericUsingDeclare.AddImportTo(genericUsingDeclares_, invocationExpression, name, argumentTypeNames, isFromCode);
 }