// ------------------------------------------------------------------- /// Builds a code context to share among all CodeBase of the same /// visual script. /// /// @param vsObjects A visual script object from which to extract the /// visual script storage. /// @return The newly created code context. /// public CodeContext(iCS_EditorObject vsObject) { // Allocate conversion tables. var iStorage = vsObject.IStorage; AllocateObjectToCodeTable(iStorage); // Clear any pending code generation error. myVisualScript = iStorage.VisualScript; myServiceKey = "C# Code Generation: " + NameUtility.ToTypeName(vsObject.CodeName); ErrorController.Clear(myServiceKey); }