コード例 #1
0
 public ESSymbol getMethodProtocol(ESObjectSpace objectSpace)
 {
     return(SpecifiesMethodProtocol ?
            objectSpace.symbolFor(MethodProtocol) :
            objectSpace.symbolFor("unspecified"));
 }
コード例 #2
0
 public NamespaceObject getEnvironment(ESObjectSpace objectSpace)
 {
     return(SpecifiesEnvironmentName ?
            objectSpace.findOrCreateNamespace(EnvironmentName) :
            objectSpace.SmalltalkNamespace);
 }
コード例 #3
0
 public ESCompiler(ESObjectSpace objectSpace, TextReader sourceStream, ParsingOptions parsingOptions)
     : this(objectSpace, new ESParser(sourceStream, parsingOptions))
 {
 }
コード例 #4
0
 public ESCompiler(ESObjectSpace objectSpace, ESParser parser)
 {
     this.objectSpace = objectSpace;
     Parser           = parser;
 }
コード例 #5
0
 public ESCompiler(ESObjectSpace objectSpace, TextReader sourceStream)
     : this(objectSpace, sourceStream, SyntaxProfile.Essence)
 {
 }
コード例 #6
0
 public ESCompiler(ESObjectSpace objectSpace, TextReader sourceStream, SyntaxProfile syntaxProfile)
     : this(objectSpace, new ESParser(sourceStream, syntaxProfile))
 {
 }
コード例 #7
0
 public ESLibraryLoader(ESObjectSpace objectSpace, NamespaceObject baseEnvironment, DirectoryInfo baseDirectory, bool recurseIntoNestedNamespaces) : this(objectSpace, baseDirectory, recurseIntoNestedNamespaces)
 {
     this.baseEnvironment = baseEnvironment ?? objectSpace.RootNamespace;
 }
コード例 #8
0
 public ESMethodScriptCode(SourceUnit sourceUnit, ESObjectSpace objectSpace, ESCompilerOptions esCompilerOptions, ErrorSink errorSink) : base(sourceUnit, objectSpace, esCompilerOptions, errorSink)
 {
     messageReceiver = esCompilerOptions.Receiver;
 }
コード例 #9
0
 public ESLibraryLoader(ESObjectSpace objectSpace, DirectoryInfo baseDirectory) : this(objectSpace) {
     this.baseDirectory = baseDirectory;
 }
コード例 #10
0
 public ESLibraryLoader(ESObjectSpace objectSpace, DirectoryInfo baseDirectory, bool recurseIntoNestedNamespaces) : this(objectSpace, baseDirectory)
 {
     this.baseDirectory = baseDirectory;
     this.recurseIntoNestedNamespaces = recurseIntoNestedNamespaces;
 }
コード例 #11
0
 public ESLibraryLoader(ESObjectSpace objectSpace)
 {
     this.objectSpace = objectSpace;
     baseEnvironment  = objectSpace.RootNamespace;
 }
コード例 #12
0
 public ClassFactory(ESObjectSpace objectSpace, NamespaceObject baseEnvironment, ESSymbol name, IDictionary <String, List <ESCompilationError> > compilationErrors) : base(objectSpace, baseEnvironment, name, compilationErrors)
 {
 }
コード例 #13
0
 public CodeGenerationContext(ESCompiler compiler)
 {
     identityExpression = Expression.Constant(identity);
     objectSpace        = compiler.ObjectSpace;
     bindToKernel();
 }
コード例 #14
0
 public EssenceSharpContext(ScriptDomainManager manager, Dictionary <String, Object> optionsDictionary) : base(manager)
 {
     objectSpace = new ESObjectSpace();
     bindToLanguageOptions(optionsDictionary ?? new  Dictionary <String, Object>());
     librariesLoaded = ObjectSpace.ensureStartUp(options.LibraryNames, options.LoadLibrariesVerbosely, options.ReportTimings);
 }
コード例 #15
0
 protected BehavioralObjectFactory(ESObjectSpace objectSpace, NamespaceObject baseEnvironment, ESSymbol name, IDictionary <String, List <ESCompilationError> > compilationErrors) : base(objectSpace, baseEnvironment, name, compilationErrors)
 {
 }
コード例 #16
0
 public override void Shutdown()
 {
     base.Shutdown();
     objectSpace = null;
 }
コード例 #17
0
 public ESBlockScriptCode(SourceUnit sourceUnit, ESObjectSpace objectSpace, ESCompilerOptions esCompilerOptions, ErrorSink errorSink) : base(sourceUnit, objectSpace, esCompilerOptions, errorSink)
 {
 }