예제 #1
0
        //primary constructor
        private InterningExtRootModel(
            [NotNull] RdProperty <string> internedLocally,
            [NotNull] RdProperty <string> internedExternally,
            [NotNull] RdProperty <string> internedInProtocol
            )
        {
            if (internedLocally == null)
            {
                throw new ArgumentNullException("internedLocally");
            }
            if (internedExternally == null)
            {
                throw new ArgumentNullException("internedExternally");
            }
            if (internedInProtocol == null)
            {
                throw new ArgumentNullException("internedInProtocol");
            }

            _InternedLocally                   = internedLocally;
            _InternedExternally                = internedExternally;
            _InternedInProtocol                = internedInProtocol;
            _InternedLocally.OptimizeNested    = true;
            _InternedExternally.OptimizeNested = true;
            _InternedInProtocol.OptimizeNested = true;
            BindableChildren.Add(new KeyValuePair <string, object>("internedLocally", _InternedLocally));
            BindableChildren.Add(new KeyValuePair <string, object>("internedExternally", _InternedExternally));
            BindableChildren.Add(new KeyValuePair <string, object>("internedInProtocol", _InternedInProtocol));
        }
예제 #2
0
파일: Solution2.cs 프로젝트: JetBrains/rd
        //primary constructor
        private Solution2(
            [NotNull] RdCall <int, MyClass> get,
            [NotNull] RdProperty <string> version,
            [NotNull] RdProperty <RdDocumentModel> testBuffer
            )
        {
            if (get == null)
            {
                throw new ArgumentNullException("get");
            }
            if (version == null)
            {
                throw new ArgumentNullException("version");
            }
            if (testBuffer == null)
            {
                throw new ArgumentNullException("testBuffer");
            }

            _Get                    = get;
            _Version                = version;
            _TestBuffer             = testBuffer;
            _Version.OptimizeNested = true;
            _Version.ValueCanBeNull = true;
            BindableChildren.Add(new KeyValuePair <string, object>("get", _Get));
            BindableChildren.Add(new KeyValuePair <string, object>("version", _Version));
            BindableChildren.Add(new KeyValuePair <string, object>("testBuffer", _TestBuffer));
        }
        //primary constructor
        private HotReloadPluginModel(
            [NotNull] RdSignal <SavedDocument> reload,
            [NotNull] RdSignal <bool> enable,
            [NotNull] RdProperty <bool> isEnabled,
            [NotNull] RdSignal <MessageInfo> showMessage
            )
        {
            if (reload == null)
            {
                throw new ArgumentNullException("reload");
            }
            if (enable == null)
            {
                throw new ArgumentNullException("enable");
            }
            if (isEnabled == null)
            {
                throw new ArgumentNullException("isEnabled");
            }
            if (showMessage == null)
            {
                throw new ArgumentNullException("showMessage");
            }

            _Reload      = reload;
            _Enable      = enable;
            _IsEnabled   = isEnabled;
            _ShowMessage = showMessage;
            _IsEnabled.OptimizeNested = true;
            BindableChildren.Add(new KeyValuePair <string, object>("reload", _Reload));
            BindableChildren.Add(new KeyValuePair <string, object>("enable", _Enable));
            BindableChildren.Add(new KeyValuePair <string, object>("isEnabled", _IsEnabled));
            BindableChildren.Add(new KeyValuePair <string, object>("showMessage", _ShowMessage));
        }
        //primary constructor
        private UnityLogModelInitialized(
            [NotNull] RdSignal <RdLogEvent> log
            )
        {
            if (log == null)
            {
                throw new ArgumentNullException("log");
            }

            _Log = log;
            BindableChildren.Add(new KeyValuePair <string, object>("log", _Log));
        }
예제 #5
0
        //primary constructor
        private RdDocumentModel(
            [NotNull] JetBrains.Rd.Text.Impl.RdTextBuffer text
            )
        {
            if (text == null)
            {
                throw new ArgumentNullException("text");
            }

            _Text = text;
            BindableChildren.Add(new KeyValuePair <string, object>("text", _Text));
        }
예제 #6
0
        //primary constructor
        private InterningExt(
            [NotNull] RdProperty <InterningExtRootModel> root
            )
        {
            if (root == null)
            {
                throw new ArgumentNullException("root");
            }

            _Root = root;
            BindableChildren.Add(new KeyValuePair <string, object>("root", _Root));
        }
예제 #7
0
        //primary constructor
        private MyClass(
            [NotNull] RdSet <string> mySet
            )
        {
            if (mySet == null)
            {
                throw new ArgumentNullException("mySet");
            }

            _MySet = mySet;
            _MySet.OptimizeNested = true;
            BindableChildren.Add(new KeyValuePair <string, object>("mySet", _MySet));
        }
        //primary constructor
        private XamlStylerModel(
            [NotNull] RdCall <RdXamlStylerFormattingRequest, RdXamlStylerFormattingResult> performReformat
            )
        {
            if (performReformat == null)
            {
                throw new ArgumentNullException("performReformat");
            }

            _PerformReformat       = performReformat;
            _PerformReformat.Async = true;
            BindableChildren.Add(new KeyValuePair <string, object>("performReformat", _PerformReformat));
        }
        //primary constructor
        private SummonerModel(
            [NotNull] RdProperty <string> myString,
            [NotNull] RdProperty <bool> myBool,
            [NotNull] RdProperty <JetBrains.Rider.Model.MyEnum?> myEnum,
            [NotNull] RdMap <string, string> data,
            [NotNull] RdSignal <JetBrains.Rider.Model.MyStructure> myStructure
            )
        {
            if (myString == null)
            {
                throw new ArgumentNullException("myString");
            }
            if (myBool == null)
            {
                throw new ArgumentNullException("myBool");
            }
            if (myEnum == null)
            {
                throw new ArgumentNullException("myEnum");
            }
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }
            if (myStructure == null)
            {
                throw new ArgumentNullException("myStructure");
            }

            _MyString                = myString;
            _MyBool                  = myBool;
            _MyEnum                  = myEnum;
            _Data                    = data;
            _MyStructure             = myStructure;
            _MyString.OptimizeNested = true;
            _MyBool.OptimizeNested   = true;
            _MyEnum.OptimizeNested   = true;
            _Data.OptimizeNested     = true;
            _MyEnum.ValueCanBeNull   = true;
            BindableChildren.Add(new KeyValuePair <string, object>("myString", _MyString));
            BindableChildren.Add(new KeyValuePair <string, object>("myBool", _MyBool));
            BindableChildren.Add(new KeyValuePair <string, object>("myEnum", _MyEnum));
            BindableChildren.Add(new KeyValuePair <string, object>("data", _Data));
            BindableChildren.Add(new KeyValuePair <string, object>("myStructure", _MyStructure));
        }
예제 #10
0
        //primary constructor
        private InterningTestModel(
            [NotNull] string searchLabel,
            [NotNull] RdMap <int, WrappedStringModel> issues
            )
        {
            if (searchLabel == null)
            {
                throw new ArgumentNullException("searchLabel");
            }
            if (issues == null)
            {
                throw new ArgumentNullException("issues");
            }

            SearchLabel            = searchLabel;
            _Issues                = issues;
            _Issues.OptimizeNested = true;
            BindableChildren.Add(new KeyValuePair <string, object>("issues", _Issues));
        }
예제 #11
0
        //primary constructor
        private InterningMtModel(
            [NotNull] string searchLabel,
            [NotNull] RdSignal <string> signaller
            )
        {
            if (searchLabel == null)
            {
                throw new ArgumentNullException("searchLabel");
            }
            if (signaller == null)
            {
                throw new ArgumentNullException("signaller");
            }

            SearchLabel      = searchLabel;
            _Signaller       = signaller;
            _Signaller.Async = true;
            BindableChildren.Add(new KeyValuePair <string, object>("signaller", _Signaller));
        }
예제 #12
0
파일: RefExt.cs 프로젝트: vorotynsky/rd
        //primary constructor
        protected OpenClass(
            [NotNull] RdProperty <string> @string,
            [NotNull] string field
            )
        {
            if (@string == null)
            {
                throw new ArgumentNullException("string");
            }
            if (field == null)
            {
                throw new ArgumentNullException("field");
            }

            _String = @string;
            Field   = field;
            _String.OptimizeNested = true;
            BindableChildren.Add(new KeyValuePair <string, object>("string", _String));
        }
예제 #13
0
        //primary constructor
        private Solution2(
            [NotNull] RdCall <int, MyClass> get,
            [NotNull] RdProperty <RdDocumentModel> testBuffer
            )
        {
            if (get == null)
            {
                throw new ArgumentNullException("get");
            }
            if (testBuffer == null)
            {
                throw new ArgumentNullException("testBuffer");
            }

            _Get        = get;
            _TestBuffer = testBuffer;
            BindableChildren.Add(new KeyValuePair <string, object>("get", _Get));
            BindableChildren.Add(new KeyValuePair <string, object>("testBuffer", _TestBuffer));
        }
예제 #14
0
파일: RefExt.cs 프로젝트: vorotynsky/rd
        //primary constructor
        private RefExt(
            [NotNull] RdProperty <Base> @struct,
            [NotNull] RdProperty <OpenClass> openModel
            )
        {
            if (@struct == null)
            {
                throw new ArgumentNullException("struct");
            }
            if (openModel == null)
            {
                throw new ArgumentNullException("openModel");
            }

            _Struct                = @struct;
            _OpenModel             = openModel;
            _Struct.OptimizeNested = true;
            BindableChildren.Add(new KeyValuePair <string, object>("struct", _Struct));
            BindableChildren.Add(new KeyValuePair <string, object>("openModel", _OpenModel));
        }
        //primary constructor
        private BSMT_RiderModel(
            [NotNull] RdCall <Unit, ConfigSettings> getUserSettings,
            [NotNull] RdCall <Unit, string[]> foundBeatSaberLocations
            )
        {
            if (getUserSettings == null)
            {
                throw new ArgumentNullException("getUserSettings");
            }
            if (foundBeatSaberLocations == null)
            {
                throw new ArgumentNullException("foundBeatSaberLocations");
            }

            _GetUserSettings                        = getUserSettings;
            _FoundBeatSaberLocations                = foundBeatSaberLocations;
            _GetUserSettings.ValueCanBeNull         = true;
            _FoundBeatSaberLocations.ValueCanBeNull = true;
            BindableChildren.Add(new KeyValuePair <string, object>("getUserSettings", _GetUserSettings));
            BindableChildren.Add(new KeyValuePair <string, object>("foundBeatSaberLocations", _FoundBeatSaberLocations));
        }
예제 #16
0
        //primary constructor
        private RdTextBufferState(
            [NotNull] RdProperty <RdTextBufferChange> changes,
            [NotNull] RdProperty <TextBufferVersion> versionBeforeTypingSession,
            [NotNull] RdProperty <RdAssertion> assertedMasterText,
            [NotNull] RdProperty <RdAssertion> assertedSlaveText
            )
        {
            if (changes == null)
            {
                throw new ArgumentNullException("changes");
            }
            if (versionBeforeTypingSession == null)
            {
                throw new ArgumentNullException("versionBeforeTypingSession");
            }
            if (assertedMasterText == null)
            {
                throw new ArgumentNullException("assertedMasterText");
            }
            if (assertedSlaveText == null)
            {
                throw new ArgumentNullException("assertedSlaveText");
            }

            _Changes = changes;
            _VersionBeforeTypingSession = versionBeforeTypingSession;
            _AssertedMasterText         = assertedMasterText;
            _AssertedSlaveText          = assertedSlaveText;
            _Changes.OptimizeNested     = true;
            _VersionBeforeTypingSession.OptimizeNested = true;
            _AssertedMasterText.OptimizeNested         = true;
            _AssertedSlaveText.OptimizeNested          = true;
            _Changes.ValueCanBeNull = true;
            BindableChildren.Add(new KeyValuePair <string, object>("changes", _Changes));
            BindableChildren.Add(new KeyValuePair <string, object>("versionBeforeTypingSession", _VersionBeforeTypingSession));
            BindableChildren.Add(new KeyValuePair <string, object>("assertedMasterText", _AssertedMasterText));
            BindableChildren.Add(new KeyValuePair <string, object>("assertedSlaveText", _AssertedSlaveText));
        }
        //primary constructor
        private UnitTestLaunch(
            [NotNull] List <string> testNames,
            [NotNull] List <string> testGroups,
            [NotNull] List <string> testCategories,
            [NotNull] RdSignal <JetBrains.Platform.Unity.Model.TestResult> testResult,
            [NotNull] RdSignal <JetBrains.Platform.Unity.Model.RunResult> runResult
            )
        {
            if (testNames == null)
            {
                throw new ArgumentNullException("testNames");
            }
            if (testGroups == null)
            {
                throw new ArgumentNullException("testGroups");
            }
            if (testCategories == null)
            {
                throw new ArgumentNullException("testCategories");
            }
            if (testResult == null)
            {
                throw new ArgumentNullException("testResult");
            }
            if (runResult == null)
            {
                throw new ArgumentNullException("runResult");
            }

            TestNames      = testNames;
            TestGroups     = testGroups;
            TestCategories = testCategories;
            _TestResult    = testResult;
            _RunResult     = runResult;
            BindableChildren.Add(new KeyValuePair <string, object>("testResult", _TestResult));
            BindableChildren.Add(new KeyValuePair <string, object>("runResult", _RunResult));
        }
예제 #18
0
파일: RdOtState.cs 프로젝트: epeshk/rd
        //primary constructor
        private RdOtState(
            [NotNull] RdProperty <OtOperation> operation,
            [NotNull] RdSignal <RdAck> ack,
            [NotNull] RdProperty <RdAssertion> assertedMasterText,
            [NotNull] RdProperty <RdAssertion> assertedSlaveText
            )
        {
            if (operation == null)
            {
                throw new ArgumentNullException("operation");
            }
            if (ack == null)
            {
                throw new ArgumentNullException("ack");
            }
            if (assertedMasterText == null)
            {
                throw new ArgumentNullException("assertedMasterText");
            }
            if (assertedSlaveText == null)
            {
                throw new ArgumentNullException("assertedSlaveText");
            }

            _Operation                         = operation;
            _Ack                               = ack;
            _AssertedMasterText                = assertedMasterText;
            _AssertedSlaveText                 = assertedSlaveText;
            _Operation.OptimizeNested          = true;
            _AssertedMasterText.OptimizeNested = true;
            _AssertedSlaveText.OptimizeNested  = true;
            _Operation.ValueCanBeNull          = true;
            BindableChildren.Add(new KeyValuePair <string, object>("operation", _Operation));
            BindableChildren.Add(new KeyValuePair <string, object>("ack", _Ack));
            BindableChildren.Add(new KeyValuePair <string, object>("assertedMasterText", _AssertedMasterText));
            BindableChildren.Add(new KeyValuePair <string, object>("assertedSlaveText", _AssertedSlaveText));
        }
        //primary constructor
        private UnityModel(
            [NotNull] RdProperty <bool> play,
            [NotNull] RdProperty <bool> pause,
            [NotNull] RdEndpoint <RdVoid, RdVoid> step,
            [NotNull] RdProperty <string> unityPluginVersion,
            [NotNull] RdProperty <int> riderProcessId,
            [NotNull] RdProperty <string> applicationPath,
            [NotNull] RdProperty <string> applicationVersion,
            [NotNull] RdProperty <UnityLogModelInitialized> logModelInitialized,
            [NotNull] RdCall <RdVoid, bool> isBackendConnected,
            [NotNull] RdEndpoint <RdVoid, UnityEditorState> getUnityEditorState,
            [NotNull] RdCall <RdOpenFileArgs, bool> openFileLineCol,
            [NotNull] RdEndpoint <string, bool> updateUnityPlugin,
            [NotNull] RdEndpoint <bool, RdVoid> refresh,
            [NotNull] RdProperty <JetBrains.Platform.Unity.Model.UnitTestLaunch> unitTestLaunch
            )
        {
            if (play == null)
            {
                throw new ArgumentNullException("play");
            }
            if (pause == null)
            {
                throw new ArgumentNullException("pause");
            }
            if (step == null)
            {
                throw new ArgumentNullException("step");
            }
            if (unityPluginVersion == null)
            {
                throw new ArgumentNullException("unityPluginVersion");
            }
            if (riderProcessId == null)
            {
                throw new ArgumentNullException("riderProcessId");
            }
            if (applicationPath == null)
            {
                throw new ArgumentNullException("applicationPath");
            }
            if (applicationVersion == null)
            {
                throw new ArgumentNullException("applicationVersion");
            }
            if (logModelInitialized == null)
            {
                throw new ArgumentNullException("logModelInitialized");
            }
            if (isBackendConnected == null)
            {
                throw new ArgumentNullException("isBackendConnected");
            }
            if (getUnityEditorState == null)
            {
                throw new ArgumentNullException("getUnityEditorState");
            }
            if (openFileLineCol == null)
            {
                throw new ArgumentNullException("openFileLineCol");
            }
            if (updateUnityPlugin == null)
            {
                throw new ArgumentNullException("updateUnityPlugin");
            }
            if (refresh == null)
            {
                throw new ArgumentNullException("refresh");
            }
            if (unitTestLaunch == null)
            {
                throw new ArgumentNullException("unitTestLaunch");
            }

            _Play  = play;
            _Pause = pause;
            _Step  = step;
            _UnityPluginVersion   = unityPluginVersion;
            _RiderProcessId       = riderProcessId;
            _ApplicationPath      = applicationPath;
            _ApplicationVersion   = applicationVersion;
            _LogModelInitialized  = logModelInitialized;
            _IsBackendConnected   = isBackendConnected;
            _GetUnityEditorState  = getUnityEditorState;
            _OpenFileLineCol      = openFileLineCol;
            _UpdateUnityPlugin    = updateUnityPlugin;
            _Refresh              = refresh;
            _UnitTestLaunch       = unitTestLaunch;
            _Play.OptimizeNested  = true;
            _Pause.OptimizeNested = true;
            _UnityPluginVersion.OptimizeNested = true;
            _RiderProcessId.OptimizeNested     = true;
            _ApplicationPath.OptimizeNested    = true;
            _ApplicationVersion.OptimizeNested = true;
            BindableChildren.Add(new KeyValuePair <string, object>("play", _Play));
            BindableChildren.Add(new KeyValuePair <string, object>("pause", _Pause));
            BindableChildren.Add(new KeyValuePair <string, object>("step", _Step));
            BindableChildren.Add(new KeyValuePair <string, object>("unityPluginVersion", _UnityPluginVersion));
            BindableChildren.Add(new KeyValuePair <string, object>("riderProcessId", _RiderProcessId));
            BindableChildren.Add(new KeyValuePair <string, object>("applicationPath", _ApplicationPath));
            BindableChildren.Add(new KeyValuePair <string, object>("applicationVersion", _ApplicationVersion));
            BindableChildren.Add(new KeyValuePair <string, object>("logModelInitialized", _LogModelInitialized));
            BindableChildren.Add(new KeyValuePair <string, object>("isBackendConnected", _IsBackendConnected));
            BindableChildren.Add(new KeyValuePair <string, object>("getUnityEditorState", _GetUnityEditorState));
            BindableChildren.Add(new KeyValuePair <string, object>("openFileLineCol", _OpenFileLineCol));
            BindableChildren.Add(new KeyValuePair <string, object>("updateUnityPlugin", _UpdateUnityPlugin));
            BindableChildren.Add(new KeyValuePair <string, object>("refresh", _Refresh));
            BindableChildren.Add(new KeyValuePair <string, object>("unitTestLaunch", _UnitTestLaunch));
        }