Esempio n. 1
0
        internal DeclarationParser(CharReader myCharReader, DeclaredParameters myParameters)
        {
            charReader = myCharReader;
            parameters = myParameters;

            nameBuilder  = new StringBuilder();
            valueBuilder = new StringBuilder();
        }
Esempio n. 2
0
        private void WriteDeclaration()
        {
            DeclaredParameters parameters = new DeclaredParameters();

            parameters.SetVersion(VersionMajor, VersionMinor);
            parameters.SetMetaReference(settings.MetaReferenceType, settings.MetaReference);
            WriteComment(Signature + ' ' + DeclaredParametersFormatter.ToSignatureLineText(parameters), "");
            WriteComment(DeclaredParametersFormatter.ToLine2Text(parameters), DeclarationLine2BeforeCommentChars);
        }
Esempio n. 3
0
 internal SerializationReader() : base()
 {
     charReader         = new CharReader();
     declaredParameters = new DeclaredParameters();
     lineParser         = new LineParser(this, charReader);
     declarationParser  = new DeclarationParser(charReader, declaredParameters);
     embeddedMetaParser = new EmbeddedMetaParser();
     headingLineParser  = new HeadingLineRecordParser(this, charReader, true);
     recordParser       = new HeadingLineRecordParser(this, charReader, false);
     lineBuilder        = new StringBuilder(50);
 }