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).
This commit is contained in:
arookas 2016-02-01 00:26:50 -05:00
parent ebfa60f9ba
commit 9d6eb5a75c
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ namespace arookas {
mStream.Dispose(); mStream.Dispose();
} }
public TextReader GetReader() { public TextReader CreateReader() {
return new StreamReader(mStream); return new StreamReader(mStream);
} }
} }

View file

@ -13,7 +13,7 @@ namespace arookas {
}; };
public sunNode Parse(sunScriptFile file) { public sunNode Parse(sunScriptFile file) {
using (var input = file.GetReader()) { using (var input = file.CreateReader()) {
try { try {
var parser = new __sunParser(input); var parser = new __sunParser(input);
var node = parser.Parse(); var node = parser.Parse();