Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • compiler
  • translator
  • ParseContext.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Simplify code related to variable declaration · 2935c581
    Olli Etuaho authored Apr 08, 2015
    Rename nonInitErrorCheck to declareVariable to clarify that it declares
    variables. Merge arrayErrorCheck with that so that logic that is common
    between array and non-array declarations is only in one place. This
    will simplify adding array initializer handling. This also enables
    redeclaring gl_LastFragData using ESSL3 array type syntax.
    
    Comments in executeInitializer claimed that the TVariable object was
    needed for error recovery, but that was not actually true, so it can also
    use the new declareVariable method. Make "variable" a local variable
    instead of a parameter to executeInitializer, since the parameter was
    never used by callers of the function.
    
    TEST=angle_unittests, WebGL conformance tests
    BUG=angleproject:941
    
    Change-Id: Ie133be62afc3e1f997370803cf21cada4e738935
    Reviewed-on: https://chromium-review.googlesource.com/264674Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    2935c581
ParseContext.cpp 102 KB
EditWeb IDE
×

Replace ParseContext.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.