From 9d6eb5a75c9edc223a5445dc9fbed687d352275a Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 1 Feb 2016 00:26:50 -0500 Subject: [PATCH] Renamed GetReader to CreateReader I feel this better documents what is actually happening (i.e. the reader is not a cached value and is instead generated per call). --- ssc/import resolver.cs | 2 +- ssc/parser.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ssc/import resolver.cs b/ssc/import resolver.cs index f9a8ee6..b292494 100644 --- a/ssc/import resolver.cs +++ b/ssc/import resolver.cs @@ -121,7 +121,7 @@ namespace arookas { mStream.Dispose(); } - public TextReader GetReader() { + public TextReader CreateReader() { return new StreamReader(mStream); } } diff --git a/ssc/parser.cs b/ssc/parser.cs index e7579c3..8afe094 100644 --- a/ssc/parser.cs +++ b/ssc/parser.cs @@ -13,7 +13,7 @@ namespace arookas { }; public sunNode Parse(sunScriptFile file) { - using (var input = file.GetReader()) { + using (var input = file.CreateReader()) { try { var parser = new __sunParser(input); var node = parser.Parse();